Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 2.3 KB

File metadata and controls

28 lines (20 loc) · 2.3 KB

Integration tests

Since the endpoint-auth-service consists of multiple components working together, a dedicated integration-test suite is used. In order to provide readability, cucumber with the gherkin-syntax was choosen. The test-files can be found here:

Run the tests

Precondition: The tests require docker-compose and maven to be installed. See https://maven.apache.org/install.html and https://docs.docker.com/compose/install/ for instructions

The tests expect an already running system, configured according to the provided docker-compose. Please read the documentation of the compose-setup before starting. The tests make use of echo-servers as endpoints to mock the actual request-endpoints and to inspect the request. The code for the echo-server is here: echo-server.

To execute the test, run mvn clean verify. The test will check if an endpoint-configuration-service is running in the background-step. Test-results will be printed out on the commandline aned can be found after the test under /target/surefire-reports/.

Extend the tests

Every change should be tested via unit-test. Integration-tests are close to the top of the testing-pyramid and therefor hard to write and expensive to run. However, if a new feature, especially one the includes multiple components, is added, an integration-test should be created.

Execution in the test-pipeline will happen automatically.