Skip to content

Commit

Permalink
Local update test
Browse files Browse the repository at this point in the history
  • Loading branch information
l0kix2 committed Apr 15, 2024
1 parent 305b07a commit 069eeb6
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion controllers/ytsaurus_local_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func TestYtsaurusUpdateStatelessComponent(t *testing.T) {
"cluster state is updating",
func(obj client.Object) bool {
state := obj.(*ytv1.Ytsaurus).Status.State
return state == ytv1.ClusterStateUpdating
return state == ytv1.ClusterStateRunning
},
)

Expand All @@ -124,6 +124,17 @@ func TestYtsaurusUpdateStatelessComponent(t *testing.T) {
ytsaurusResource.Spec.EnableFullUpdate = false
testutil.UpdateObject(h, &ytv1.Ytsaurus{}, &ytsaurusResource)

t.Log("[ Wait for YTsaurus Updating status ]")
testutil.FetchAndCheckEventually(
h,
ytsaurusName,
&ytv1.Ytsaurus{},
"cluster state is running",
func(obj client.Object) bool {
state := obj.(*ytv1.Ytsaurus).Status.State
return state == ytv1.ClusterStateRunning
},
)
t.Log("[ Wait for YTsaurus Running status ]")
testutil.FetchAndCheckEventually(
h,
Expand Down

0 comments on commit 069eeb6

Please sign in to comment.