Skip to content

michalkrzyz/TWljaGFsIEdvZ29BcHBzIE5BU0E-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published