diff --git a/tests/e2e/affinity_toleration_test.go b/tests/e2e/affinity_toleration_test.go index 8ab08029ee..6a7518c0ad 100644 --- a/tests/e2e/affinity_toleration_test.go +++ b/tests/e2e/affinity_toleration_test.go @@ -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) + vmcRes := kubectl.Apply(kc.ApplyOptions{ + Filename: []string{vmClassFilePath}, + FilenameOption: kc.Filename, + }) + Expect(vmcRes.Error()).NotTo(HaveOccurred(), "failed to apply virtual class resource") + res := kubectl.Apply(kc.ApplyOptions{ Filename: []string{conf.TestData.AffinityToleration}, FilenameOption: kc.Kustomize, diff --git a/tests/e2e/complex_test.go b/tests/e2e/complex_test.go index e125a8d280..5926e94045 100644 --- a/tests/e2e/complex_test.go +++ b/tests/e2e/complex_test.go @@ -69,6 +69,13 @@ var _ = Describe("ComplexTest", Serial, ginkgoutil.CommonE2ETestDecorators(), fu } } + vmClassFilePath := fmt.Sprintf("%s/vmc.yaml", conf.TestData.ComplexTest) + vmcRes := kubectl.Apply(kc.ApplyOptions{ + Filename: []string{vmClassFilePath}, + FilenameOption: kc.Filename, + }) + Expect(vmcRes.Error()).NotTo(HaveOccurred(), "failed to apply virtual class resource") + res := kubectl.Apply(kc.ApplyOptions{ Filename: []string{conf.TestData.ComplexTest}, FilenameOption: kc.Kustomize, diff --git a/tests/e2e/sizing_policy_test.go b/tests/e2e/sizing_policy_test.go index d9e8c2e8a4..0b4cd430a8 100644 --- a/tests/e2e/sizing_policy_test.go +++ b/tests/e2e/sizing_policy_test.go @@ -77,6 +77,13 @@ var _ = Describe("SizingPolicy", ginkgoutil.CommonE2ETestDecorators(), func() { Context("When resources are applied", func() { It("result should be succeeded", func() { + vmClassFilePath := fmt.Sprintf("%s/vmc.yaml", conf.TestData.SizingPolicy) + vmcRes := kubectl.Apply(kc.ApplyOptions{ + Filename: []string{vmClassFilePath}, + FilenameOption: kc.Filename, + }) + Expect(vmcRes.Error()).NotTo(HaveOccurred(), "failed to apply virtual class resource") + res := kubectl.Apply(kc.ApplyOptions{ Filename: []string{conf.TestData.SizingPolicy}, FilenameOption: kc.Kustomize,