Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(vm): add reusable mode to use previously created virtual machines for e2e tests #641

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Isteb4k
Copy link
Contributor

@Isteb4k Isteb4k commented Jan 16, 2025

Description

The environment variable REUSABLE used to retain all resources created during e2e test after its completion (no cleanup).
When a test starts, it will reuse existing virtual machines created earlier, if they exist.
If no virtual machines were found, they will be created.

For example, run test in reusable mode:

REUSABLE=yes task run

! Only the following e2e tests are supported in REUSABLE mode. All other tests will be skipped.

  • "Virtual machine configuration"
  • "Virtual machine migration"
  • "VM connectivity"
  • "Complex test"

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

@Isteb4k Isteb4k requested a review from hardcoretime January 16, 2025 17:15
@Isteb4k Isteb4k requested a review from dmitrpopkov January 16, 2025 17:15
@Isteb4k Isteb4k marked this pull request as ready for review January 16, 2025 17:16
@Isteb4k Isteb4k force-pushed the test/vm/reusable-mode branch from 21c9031 to b615548 Compare January 16, 2025 17:17
@Isteb4k Isteb4k changed the title test(vm): add reusable mode to previously created virtual machines fo… test(vm): add reusable mode to use previously created virtual machines for e2e tests Jan 16, 2025
@Isteb4k Isteb4k force-pushed the test/vm/reusable-mode branch from b615548 to 761d876 Compare January 16, 2025 21:38
hardcoretime
hardcoretime previously approved these changes Jan 17, 2025
@hardcoretime hardcoretime force-pushed the test/vm/reusable-mode branch from 25dd69b to c162761 Compare January 17, 2025 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants