Skip to content

Commit 432e7e7

Browse files
committed
Fix api validation tests after rebase
1 parent 5dfe156 commit 432e7e7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/apivalidations/server_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@ var _ = Describe("ORC Server API validations", func() {
112112
WithPorts(applyconfigv1alpha1.ServerPortSpec().WithPortRef("my-port")))
113113
Expect(applyObj(ctx, server, patch)).To(MatchError(ContainSubstring("spec.resource.flavorRef")))
114114

115-
// Missing imageRef
115+
// Missing imageRef or bootVolume
116116
patch.Spec.WithResource(applyconfigv1alpha1.ServerResourceSpec().
117117
WithFlavorRef("my-flavor").
118118
WithPorts(applyconfigv1alpha1.ServerPortSpec().WithPortRef("my-port")))
119-
Expect(applyObj(ctx, server, patch)).To(MatchError(ContainSubstring("spec.resource.imageRef")))
119+
Expect(applyObj(ctx, server, patch)).To(MatchError(ContainSubstring("either imageRef or bootVolume must be specified")))
120120

121121
// Missing ports
122122
patch.Spec.WithResource(applyconfigv1alpha1.ServerResourceSpec().

0 commit comments

Comments
 (0)