Skip to content

Latest commit

 

History

History
62 lines (28 loc) · 1 KB

README.md

File metadata and controls

62 lines (28 loc) · 1 KB

url-collector

STARTING APP

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

UTs

To run UTs suite go to app directory and issue following command:

~$ go test -v ./...

INTEGRATION TESTS

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