From 18e49ca3a2215a36f305d4d8e44880a436fb4398 Mon Sep 17 00:00:00 2001 From: rkishner Date: Wed, 27 Nov 2024 11:17:26 +0200 Subject: [PATCH] Added dry run to preference requirement test Signed-off-by: Roni Kishner --- tests/functests/instancetype_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/functests/instancetype_test.go b/tests/functests/instancetype_test.go index 2600b40b..34ccc293 100644 --- a/tests/functests/instancetype_test.go +++ b/tests/functests/instancetype_test.go @@ -117,7 +117,11 @@ var _ = Describe("Common instance types func tests", func() { } vm = randomVM(&instanceTypeMatcher, &v1.PreferenceMatcher{Name: preference.Name}, v1.RunStrategyHalted) - vm, err = virtClient.VirtualMachine(testNamespace).Create(context.Background(), vm, metav1.CreateOptions{}) + vm, err = virtClient.VirtualMachine(testNamespace).Create( + context.Background(), + vm, + metav1.CreateOptions{DryRun: []string{metav1.DryRunAll}}, + ) Expect(err).ToNot(HaveOccurred()) } })