Comments (4)
@eamtalu the following appears when I try to run locally, could you check on your side too. Thanks!
from banking-kata-java.
Thanks @eamtalu for the fix.
from banking-kata-java.
@eamtalu, it was previously working when I tested it, but I now had another issue after docker-compose down....
docker-compose down -v
. .\env\env.ps1
docker-compose up -d
Then I called the tests:
.\gradlew adapter-persistence-jpa:test
Then I get this error:
PS C:\GitHub\valentinacupac\banking-kata-java> .\gradlew adapter-persistence-jpa:test
> Task :adapter-persistence-jpa:flywayMigrate FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':adapter-persistence-jpa:flywayMigrate'.
> Error occurred while executing flywayMigrate
Unable to obtain connection from database (jdbc:postgresql://localhost:5400/banking_kata_db) for user 'postgres': FATAL: database "banking_kata_db" does not exist
------------------------------------------------------------------------------------------------------------------------------------------------------------------
SQL State : 3D000
Error Code : 0
Message : FATAL: database "banking_kata_db" does not exist
FATAL: database "banking_kata_db" does not exist
Could you try the above steps too?
from banking-kata-java.
Hi @valentinacupac
I am using mac and seems you are using windows, so unable to test it properly.
In my mac, it is working for docker-compose down and docker-compose up -d.
But just on a hindsight - could you see the database is created after docker-compose up -d which should be created by this script ./startup/src/main/resources/postgres which is a shell script?
Seems in CI it is running perfectly in ubuntu machine where it creates database everytime, I believe somehow in windows the database is not being created at the first place, would you confirm ?
Thanks Amin
from banking-kata-java.
Related Issues (20)
- Adapter - Persistence - JDBC - Stored Procedures HOT 2
- GitHub - Run tests before merge to main HOT 1
- Refactoring Tests - Base Adapter Tests - Test Structure
- Event Sourcing - EventStoreDB
- BankAccount - Event Sourcing
- Bank Account - Domain Events
- SonarQube - Configuration - Rule Exclusion HOT 1
- MongoDB - Error when run locally HOT 8
- Centralize environment variables
- Adapter - Messaging - RabbitMQ - receiveAndConvert HOT 2
- Adapter - Messaging - RabbitMQ - Pattern Matching for instanceof HOT 1
- SonarQube Metrics Review
- Failure on Project Setup
- Local Testing - RabbitMQ
- GitHub - Fix SonarQube HOT 6
- GitHub - Component Test
- CQRS and Event Sourcing
- Adapter - Persistence - JDBC - SQL HOT 2
- Adapter - Persistence - File
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from banking-kata-java.