Skip to content

Commit

Permalink
dummy
Browse files Browse the repository at this point in the history
  • Loading branch information
SrinivasAtmakuri committed Jul 20, 2023
1 parent 6ad1a93 commit fc3f09a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pkg/util/steps/condition.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ var timeoutConditionErrors = map[string]string{
"ingressControllerReady": "Ingress Cluster Operator has not started successfully.",
"aroDeploymentReady": "ARO Cluster Operator has failed to initialize successfully.",
"ensureAROOperatorRunningDesiredVersion": "ARO Cluster Operator is not running desired version.",
"hiveClusterDeploymentReady": "Timed out waiting for the condition to be ready",
"hiveClusterInstallationComplete": "Timed out waiting for the condition to complete",
"hiveClusterDeploymentReady": "Timed out waiting for the condition to be ready.",
"hiveClusterInstallationComplete": "Timed out waiting for the condition to complete.",
}

// conditionFunction is a function that takes a context and returns whether the
Expand Down
6 changes: 3 additions & 3 deletions pkg/util/steps/condition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,17 @@ func TestEnrichConditionTimeoutError(t *testing.T) {
{
desc: "test conditionfail for func - hiveClusterDeploymentReady",
function: hiveClusterDeploymentReady,
wantErr: "500: DeploymentFailed: : Timed out waiting for a condition, cluster Installation is unsuccessful.Please retry, if issue persists: raise azure support ticket",
wantErr: "500: DeploymentFailed: : Timed out waiting for the condition to be ready.Please retry, if issue persists: raise azure support ticket",
},
{
desc: "test conditionfail for func - hiveClusterInstallationComplete",
function: hiveClusterInstallationComplete,
wantErr: "500: DeploymentFailed: : Timed out waiting for a condition, cluster Installation is unsuccessful.Please retry, if issue persists: raise azure support ticket",
wantErr: "500: DeploymentFailed: : Timed out waiting for the condition to complete.Please retry, if issue persists: raise azure support ticket",
},
} {
t.Run(tt.desc, func(t *testing.T) {
if got := enrichConditionTimeoutError(tt.function, errors.New(tt.originalErr)); got.Error() != tt.wantErr {
t.Errorf("invlaid enrichConditionTimeoutError: %s, got: %s", tt.wantErr, got)
t.Errorf("invalid enrichConditionTimeoutError: %s, got: %s", tt.wantErr, got)
}
})
}
Expand Down

0 comments on commit fc3f09a

Please sign in to comment.