Test environment deployed on AWS: Difference between revisions

From Izara Wiki
Jump to navigation Jump to search
(Created page with "= Overview = All services that are part of the multi-service workflow being tested are deployed to AWS, normally with seeded data ready for tests. = Integration tests = Int...")
 
Line 4: Line 4:


= Integration tests =
= Integration tests =
Integration tests use the same system as [[Test environment deployed on AWS]] however are limited to tests that do not change state such as records in databases.


We configure the tests with the [[Service - Integration Test Config|Integration Test Config]] service, invoke and monitor them in the [[Service - Integration Testing|Integration Testing]] service.
We configure the tests with the [[Service - Integration Test Config|Integration Test Config]] service, invoke and monitor them in the [[Service - Integration Testing|Integration Testing]] service.


Requests initiated by testing service set the [[NPM module - izara-middleware|izara-middleware] module's LOG_LEVEL to DEBUG, this will trigger a message added to MsgOut whenever an external service is invoked, that message is received by [[Service - Integration Test Config|Integration Test Config]] service which checks if the request matches expected inputs/outputs.
Requests initiated by testing service set the [[NPM module - izara-middleware|izara-middleware] module's LOG_LEVEL to DEBUG, this will trigger a message sent to [[Service - Integration Test Config|Integration Test Config]] whenever an external service is invoked/returns, that message is checked to see if matches expected inputs/outputs.

Revision as of 14:01, 3 May 2021

Overview

All services that are part of the multi-service workflow being tested are deployed to AWS, normally with seeded data ready for tests.

Integration tests

We configure the tests with the Integration Test Config service, invoke and monitor them in the Integration Testing service.

Requests initiated by testing service set the [[NPM module - izara-middleware|izara-middleware] module's LOG_LEVEL to DEBUG, this will trigger a message sent to Integration Test Config whenever an external service is invoked/returns, that message is checked to see if matches expected inputs/outputs.