Skip to content

Commit

Permalink
get correct standalone for readiness checks
Browse files Browse the repository at this point in the history
  • Loading branch information
rlieberman-splunk committed Dec 12, 2024
1 parent 2bee1d0 commit 68cf212
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/appframework_aws/s1/appframework_aws_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ var _ = Describe("s1appfw test", func() {
})

Context("Standalone deployment (S1) with App Framework", func() {
It("integration, s1, appframeworkhang, appframework: can deploy Several standalone CRs in the same namespace with App Framework enabled", func() {
It("integration, s1, appframeworksS1, appframework: can deploy Several standalone CRs in the same namespace with App Framework enabled", func() {

/* Test Steps
################## SETUP ####################
Expand Down
4 changes: 2 additions & 2 deletions test/testenv/verificationutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func VerifyMonitoringConsoleReady(ctx context.Context, deployment *Deployment, m
// StandaloneReady verify Standalone is in ReadyStatus and does not flip-flop
func StandaloneReady(ctx context.Context, deployment *Deployment, deploymentName string, standalone *enterpriseApi.Standalone, testenvInstance *TestCaseEnv) {
gomega.Eventually(func() enterpriseApi.Phase {
err := deployment.GetInstance(ctx, deploymentName, standalone)
err := deployment.GetInstance(ctx, standalone.Name, standalone)
if err != nil {
return enterpriseApi.PhaseError
}
Expand All @@ -99,7 +99,7 @@ func StandaloneReady(ctx context.Context, deployment *Deployment, deploymentName

// In a steady state, we should stay in Ready and not flip-flop around
gomega.Consistently(func() enterpriseApi.Phase {
_ = deployment.GetInstance(ctx, deployment.GetName(), standalone)
_ = deployment.GetInstance(ctx, standalone.Name, standalone)
DumpGetSplunkVersion(ctx, testenvInstance.GetName(), deployment, "standalone")
return standalone.Status.Phase
}, ConsistentDuration, ConsistentPollInterval).Should(gomega.Equal(enterpriseApi.PhaseReady))
Expand Down

0 comments on commit 68cf212

Please sign in to comment.