added file cleanup for multihost tests #765
Merged
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.
Relates to: #662
In order to run all tests on a set of provisioned hosts, the state of the host needs to be restored after each test run. This includes:
By keeping track of these operations, the test class is able to execute respective cleanup tasks on the hosts. Therefore, the cleanup from machine class has been moved to the ssh test class. The container test class still only removes the created containers.
Also, added a tag on the root main.fmf to mark all tests by default to be able to run in a multihost setting. Certain tests that exceed the available number of hosts (>3) are disabled for now. And fixed/improved some of the integration tests.
Testing this change:
In order to test this on testing farm (GH CI with containers is automatic), a dedicated branch has been created:
https://github.com/engelmi/bluechi/tree/added-cleanup-to-integration-test-experiment
It changes the plan
tier0.fmf
to use a multihost setup and filters only for tests with thetag: multihost
- which is set for all tests except some few that exceed the maximum number of nodes (>3).Request to start on testing farm: (an exported API token is required)
And here are the results:
http://artifacts.osci.redhat.com/testing-farm/57eb8333-a3d6-4239-8df8-fce66840f4ad/