Skip to content

test(e2e): add vm version test using new framework#2287

Merged
hardcoretime merged 4 commits into
mainfrom
test/e2e-vm-version-framework
Apr 28, 2026
Merged

test(e2e): add vm version test using new framework#2287
hardcoretime merged 4 commits into
mainfrom
test/e2e-vm-version-framework

Conversation

@hardcoretime
Copy link
Copy Markdown
Contributor

@hardcoretime hardcoretime commented Apr 27, 2026

Description

Migrating e2e test VirtualMachineVersions from legacy approach to the new framework.

The test verifies that qemu and libvirt versions are present in the VirtualMachine status.

Technical changes:

  • Uses framework.NewFramework() instead of kustomize + kubectl
  • Resources are created programmatically via builders (vdbuilder, vmbuilder)
  • State waiting via util.UntilObjectPhase() instead of WaitPhaseByLabel
  • Automatic cleanup via CreateWithDeferredDeletion()

Why do we need it, and what problem does it solve?

According to the roadmap, all legacy e2e tests need to be gradually migrated to the new framework. This simplifies test code, makes them more declarative, and faster by using direct API calls instead of kubectl.

What is the expected result?

The VirtualMachineVersions test passes successfully and verifies that qemu and libvirt versions are present in VM status.

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.

Changelog entries

section: test
type: chore
summary: "Migrate e2e test VirtualMachineVersions to new framework."
impact_level: low

@hardcoretime hardcoretime requested a review from Isteb4k as a code owner April 27, 2026 15:50
@hardcoretime hardcoretime requested a review from eofff April 27, 2026 15:50
@hardcoretime hardcoretime added this to the v1.9.0 milestone Apr 27, 2026
@hardcoretime hardcoretime force-pushed the test/e2e-vm-version-framework branch from 0410a90 to 6036057 Compare April 27, 2026 16:01
Signed-off-by: Roman Sysoev <roman.sysoev@flant.com>
@hardcoretime hardcoretime force-pushed the test/e2e-vm-version-framework branch from 6036057 to acf8acd Compare April 27, 2026 22:44
Roman Sysoev added 2 commits April 28, 2026 10:59
Signed-off-by: Roman Sysoev <roman.sysoev@flant.com>
Signed-off-by: Roman Sysoev <roman.sysoev@flant.com>
eofff
eofff previously approved these changes Apr 28, 2026
Signed-off-by: Roman Sysoev <roman.sysoev@flant.com>
@hardcoretime hardcoretime merged commit 13f07ac into main Apr 28, 2026
27 of 28 checks passed
@hardcoretime hardcoretime deleted the test/e2e-vm-version-framework branch April 28, 2026 08:42
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