To start application locally go to app dir and use:
~$ go run .
To start docker application, build it and run in following steps:
~$ docker-compose build
...
~$ docker-compose up
Aplication has following configuration environment variables:
URL_COLLECTOR_PORT: PORT number for collector
NASA_API_KEY: API_KEY for nasa api service (default DEMO_KEY)
CONCURRENT_REQUESTS: number of maximum requests served in parallel
To run UTs suite go to app directory and issue following command:
~$ go test -v ./...
To run integration tests, go to integration_test directory, start your application (either in docker or locally) and issue following command:
~$ robot test.robot
URL_COLLECTOR_PORT variable from test can be easily changed, use following example:
~$ robot -v URL_COLLECTOR_PORT:8092 test.robot
Dependency of integration tests: python3, python3-robotframework, python3-robotframework-requests