Skip to content

Conversation

eofff
Copy link
Contributor

@eofff eofff commented Sep 4, 2025

Description

When applying a VirtualMachine whose VirtualMachineClass hasn’t been created, a warning is emitted about it, which the test treats as an error. We create the VirtualMachineClass beforehand to avoid false positives.

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

impact_level: low

Signed-off-by: Valeriy Khorunzhin <[email protected]>
@eofff eofff self-assigned this Sep 4, 2025
@eofff eofff added this to the v1.0.0 milestone Sep 4, 2025
@@ -77,6 +77,13 @@ var _ = Describe("VirtualMachineAffinityAndToleration", ginkgoutil.CommonE2ETest

Context("When the virtualization resources are applied:", func() {
It("result should be succeeded", func() {
vmClassFilePath := fmt.Sprintf("%s/vmc.yaml", conf.TestData.AffinityToleration)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you apply this file, the name of the virtual machine class will not be "kustomized".

Filename: []string{vmClassFilePath},
FilenameOption: kc.Filename,
})
Expect(vmcRes.Error()).NotTo(HaveOccurred(), "failed to apply virtual class resource")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Expect(vmcRes.Error()).NotTo(HaveOccurred(), "failed to apply virtual class resource")
Expect(vmcRes.Error()).NotTo(HaveOccurred(), "failed to apply virtual machine class resource")

@eofff eofff marked this pull request as draft September 5, 2025 07:35
@nevermarine nevermarine modified the milestones: v1.0.0, v1.1.0 Sep 11, 2025
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.

3 participants