https://github.com/scorum/test-task
https://github.com/scorum/test-task
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/scorum/test-task
- Owner: scorum
- Created: 2023-11-20T07:17:56.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-11-23T16:00:21.000Z (over 2 years ago)
- Last Synced: 2024-05-19T00:33:52.928Z (about 2 years ago)
- Language: Go
- Size: 17.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
There is account-svc microservice. It configured throw [config.yml](configs/config.yml).
It persists [state](migrations/1.init.sql) to the PostgreSQL. It implements four [API](account.http) methods:
* create
* credit
* debit
* getBalance
The objective of this task is to build a framework that achieves the following:
1. Launches the microservice for testing purposes within a Docker container.
2. Sets up the testing environment by:
1. Configuring the 'config.yml' file.
2. Preparing the database by running and applying migrations.
3. 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.