From 2b152f87973e006fe4195648786845017c4d301e Mon Sep 17 00:00:00 2001 From: Nicolas Ontiveros Date: Thu, 13 Jul 2023 06:03:03 -0700 Subject: [PATCH] unit test --- pkg/frontend/openshiftcluster_putorpatch_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/frontend/openshiftcluster_putorpatch_test.go b/pkg/frontend/openshiftcluster_putorpatch_test.go index 690df742dd2..89b10718cd7 100644 --- a/pkg/frontend/openshiftcluster_putorpatch_test.go +++ b/pkg/frontend/openshiftcluster_putorpatch_test.go @@ -589,7 +589,7 @@ func TestPutOrPatchOpenShiftClusterAdminAPI(t *testing.T) { c.AddAsyncOperationDocuments(&api.AsyncOperationDocument{ OpenShiftClusterKey: strings.ToLower(testdatabase.GetResourcePath(mockSubID, "resourceName")), AsyncOperation: &api.AsyncOperation{ - InitialProvisioningState: api.ProvisioningStateSucceeded, + InitialProvisioningState: api.ProvisioningStateUpdating, ProvisioningState: api.ProvisioningStateUpdating, }, }) @@ -605,7 +605,7 @@ func TestPutOrPatchOpenShiftClusterAdminAPI(t *testing.T) { ClusterProfile: api.ClusterProfile{ FipsValidatedModules: api.FipsValidatedModulesDisabled, }, - MaintenanceTask: "", + MaintenanceTask: api.MaintenanceTaskPucmPending, NetworkProfile: api.NetworkProfile{ OutboundType: api.OutboundTypeLoadbalancer, PreconfiguredNSG: api.PreconfiguredNSGDisabled, @@ -614,6 +614,7 @@ func TestPutOrPatchOpenShiftClusterAdminAPI(t *testing.T) { EncryptionAtHost: api.EncryptionAtHostDisabled, }, PucmPending: true, + OperatorFlags: api.DefaultOperatorFlags(), }, }, })