There is account-svc microservice. It configured throw config.yml. It persists state to the PostgreSQL. It implements four API methods:
- create
- credit
- debit
- getBalance
The objective of this task is to build a framework that achieves the following:
- Launches the microservice for testing purposes within a Docker container.
- Sets up the testing environment by:
- Configuring the 'config.yml' file.
- Preparing the database by running and applying migrations.
- Executing the tests.
The key requirement is to run the tests using a single command. There should be no need for manual steps or additional preparations beyond installing the framework itself. Please focus on the framework itself rather than on test cases.