control-service: ability to deploy a data job before all it tests #539
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently the integration tests that need deployed data job are combined
into a one test or they use mocked objects. Since the data job
deployment is a time consuming operation and we cannot do it before each test.
This change aims to deploy one data job before all tests. Then the tests
that need already deployed data job will reuse it.
Each test should extend the
BaseDataJobDeploymentIT
class.The
BaseDataJobDeploymentIT
uses Spring Extension(https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/test/context/junit/jupiter/SpringExtension.html)
to hook up to the
beforeAll/Each
phase and deploy a data job justonce.
Testing: ran integration tests locally
Signed-off-by: Miroslav Ivanov [email protected]