@@ -157,22 +157,22 @@ var _ = Describe("ORC Server API validations", func() {
157157 Expect (applyObj (ctx , server , patch )).To (MatchError (ContainSubstring ("flavorRef is immutable" )))
158158 })
159159
160- It ("should have immutable serverGroupRef " , func (ctx context.Context ) {
160+ It ("should have immutable schedulerHints " , func (ctx context.Context ) {
161161 server := serverStub (namespace )
162162 patch := baseServerPatch (server )
163163 patch .Spec .WithResource (applyconfigv1alpha1 .ServerResourceSpec ().
164164 WithImageRef ("my-image" ).
165165 WithFlavorRef ("my-flavor" ).
166166 WithPorts (applyconfigv1alpha1 .ServerPortSpec ().WithPortRef ("my-port" )).
167- WithServerGroupRef ("sg-a" ))
167+ WithSchedulerHints ( applyconfigv1alpha1 . ServerSchedulerHints (). WithServerGroupRef ("sg-a" ) ))
168168 Expect (applyObj (ctx , server , patch )).To (Succeed ())
169169
170170 patch .Spec .WithResource (applyconfigv1alpha1 .ServerResourceSpec ().
171171 WithImageRef ("my-image" ).
172172 WithFlavorRef ("my-flavor" ).
173173 WithPorts (applyconfigv1alpha1 .ServerPortSpec ().WithPortRef ("my-port" )).
174- WithServerGroupRef ("sg-b" ))
175- Expect (applyObj (ctx , server , patch )).To (MatchError (ContainSubstring ("serverGroupRef is immutable" )))
174+ WithSchedulerHints ( applyconfigv1alpha1 . ServerSchedulerHints (). WithServerGroupRef ("sg-b" ) ))
175+ Expect (applyObj (ctx , server , patch )).To (MatchError (ContainSubstring ("schedulerHints is immutable" )))
176176 })
177177
178178 It ("should have immutable keypairRef" , func (ctx context.Context ) {
0 commit comments