Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkowl committed Jun 12, 2024
1 parent 7473f5f commit 93d224a
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 43 deletions.
80 changes: 40 additions & 40 deletions pkg/cluster/adminupdate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,60 +33,60 @@ func TestAdminUpdateSteps(t *testing.T) {
}

zerothSteps := []string{
"[Action initializeKubernetesClients-fm]",
"[Action ensureBillingRecord-fm]",
"[Action ensureDefaults-fm]",
"[AuthorizationRetryingAction fixupClusterSPObjectID-fm]",
"[Action fixInfraID-fm]",
"[Action initializeKubernetesClients]",
"[Action ensureBillingRecord]",
"[Action ensureDefaults]",
"[AuthorizationRetryingAction fixupClusterSPObjectID]",
"[Action fixInfraID]",
}

generalFixesSteps := []string{
"[Action ensureResourceGroup-fm]",
"[Action createOrUpdateDenyAssignment-fm]",
"[Action ensureServiceEndpoints-fm]",
"[Action populateRegistryStorageAccountName-fm]",
"[Action migrateStorageAccounts-fm]",
"[Action fixSSH-fm]",
"[Action startVMs-fm]",
"[Condition apiServersReady-fm, timeout 30m0s]",
"[Action fixSREKubeconfig-fm]",
"[Action fixUserAdminKubeconfig-fm]",
"[Action createOrUpdateRouterIPFromCluster-fm]",
"[Action ensureGatewayUpgrade-fm]",
"[Action rotateACRTokenPassword-fm]",
"[Action populateRegistryStorageAccountName-fm]",
"[Action ensureMTUSize-fm]",
"[Action ensureResourceGroup]",
"[Action createOrUpdateDenyAssignment]",
"[Action ensureServiceEndpoints]",
"[Action populateRegistryStorageAccountName]",
"[Action migrateStorageAccounts]",
"[Action fixSSH]",
"[Action startVMs]",
"[Condition apiServersReady, timeout 30m0s]",
"[Action fixSREKubeconfig]",
"[Action fixUserAdminKubeconfig]",
"[Action createOrUpdateRouterIPFromCluster]",
"[Action ensureGatewayUpgrade]",
"[Action rotateACRTokenPassword]",
"[Action populateRegistryStorageAccountName]",
"[Action ensureMTUSize]",
}

certificateRenewalSteps := []string{
"[Action startVMs-fm]",
"[Condition apiServersReady-fm, timeout 30m0s]",
"[Action populateDatabaseIntIP-fm]",
"[Action fixMCSCert-fm]",
"[Action fixMCSUserData-fm]",
"[Action configureAPIServerCertificate-fm]",
"[Action configureIngressCertificate-fm]",
"[Action initializeOperatorDeployer-fm]",
"[Action renewMDSDCertificate-fm]",
"[Action startVMs]",
"[Condition apiServersReady, timeout 30m0s]",
"[Action populateDatabaseIntIP]",
"[Action fixMCSCert]",
"[Action fixMCSUserData]",
"[Action configureAPIServerCertificate]",
"[Action configureIngressCertificate]",
"[Action initializeOperatorDeployer]",
"[Action renewMDSDCertificate]",
}

operatorUpdateSteps := []string{
"[Action startVMs-fm]",
"[Condition apiServersReady-fm, timeout 30m0s]",
"[Action initializeOperatorDeployer-fm]",
"[Action ensureAROOperator-fm]",
"[Condition aroDeploymentReady-fm, timeout 20m0s]",
"[Condition ensureAROOperatorRunningDesiredVersion-fm, timeout 5m0s]",
"[Action startVMs]",
"[Condition apiServersReady, timeout 30m0s]",
"[Action initializeOperatorDeployer]",
"[Action ensureAROOperator]",
"[Condition aroDeploymentReady, timeout 20m0s]",
"[Condition ensureAROOperatorRunningDesiredVersion, timeout 5m0s]",
}

hiveSteps := []string{
"[Action hiveCreateNamespace-fm]",
"[Action hiveEnsureResources-fm]",
"[Condition hiveClusterDeploymentReady-fm, timeout 5m0s]",
"[Action hiveResetCorrelationData-fm]",
"[Action hiveCreateNamespace]",
"[Action hiveEnsureResources]",
"[Condition hiveClusterDeploymentReady, timeout 5m0s]",
"[Action hiveResetCorrelationData]",
}

updateProvisionedBySteps := []string{"[Action updateProvisionedBy-fm]"}
updateProvisionedBySteps := []string{"[Action updateProvisionedBy]"}

for _, tt := range []struct {
name string
Expand Down
6 changes: 3 additions & 3 deletions pkg/util/steps/runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ func TestStepRunner(t *testing.T) {
},
wantEntries: []map[string]types.GomegaMatcher{
{
"msg": gomega.Equal("running step [Action github.com/Azure/ARO-RP/pkg/util/steps.successfulFunc]"),
"msg": gomega.Equal("running step [Action pkg/util/steps.successfulFunc]"),
"level": gomega.Equal(logrus.InfoLevel),
},
{
"msg": gomega.Equal("running step [Action github.com/Azure/ARO-RP/pkg/util/steps.failingAzureError]"),
"msg": gomega.Equal("running step [Action pkg/util/steps.failingAzureError]"),
"level": gomega.Equal(logrus.InfoLevel),
},
{
"msg": gomega.Equal("step [Action github.com/Azure/ARO-RP/pkg/util/steps.failingAzureError] encountered error: Status=403 Code=\"AuthorizationFailed\""),
"msg": gomega.Equal("step [Action pkg/util/steps.failingAzureError] encountered error: Status=403 Code=\"AuthorizationFailed\""),
"level": gomega.Equal(logrus.ErrorLevel),
},
},
Expand Down

0 comments on commit 93d224a

Please sign in to comment.