Skip to content

Commit

Permalink
Added dry run to preference requirement test
Browse files Browse the repository at this point in the history
Signed-off-by: Roni Kishner<[email protected]>
  • Loading branch information
RoniKishner committed Nov 27, 2024
1 parent 7cbf97e commit 18e49ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/functests/instancetype_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
})
Expand Down

0 comments on commit 18e49ca

Please sign in to comment.