Skip to content

Commit

Permalink
test/e2e: Fixed typo
Browse files Browse the repository at this point in the history
Fix shoudlInstallCAA typo I spotted when creating the namespace

Signed-off-by: stevenhorsman <steven@uk.ibm.com>
  • Loading branch information
stevenhorsman committed Jan 9, 2024
1 parent defb3f1 commit 7ba7e16
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/e2e/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ func TestMain(m *testing.M) {
// Cloud API Adaptor is installed by default during e2e test.
// In case TEST_INSTALL_CAA is exported as "no", it will skip the installation of
// Cloud API Adaptor.
// In scenario of teardown, CAA will be cleanup when shouldTeardown is true and shoudlInstallCAA is true.
shoudlInstallCAA := true
// In scenario of teardown, CAA will be cleanup when shouldTeardown is true and shouldInstallCAA is true.
shouldInstallCAA := true
if os.Getenv("TEST_INSTALL_CAA") == "no" {
shoudlInstallCAA = false
shouldInstallCAA = false
}

// The TEST_PODVM_IMAGE is an option variable which specifies the path
Expand Down Expand Up @@ -127,7 +127,7 @@ func TestMain(m *testing.M) {
}
}

if shoudlInstallCAA {
if shouldInstallCAA {
log.Info("Install Cloud API Adaptor")
relativeInstallDirectory := "../../install"
if cloudAPIAdaptor, err = pv.NewCloudAPIAdaptor(cloudProvider, relativeInstallDirectory); err != nil {
Expand Down Expand Up @@ -156,7 +156,7 @@ func TestMain(m *testing.M) {
return ctx, nil
}
}
if shoudlInstallCAA {
if shouldInstallCAA {
log.Info("Delete the Cloud API Adaptor installation")
if err = cloudAPIAdaptor.Delete(ctx, cfg); err != nil {
return ctx, err
Expand Down

0 comments on commit 7ba7e16

Please sign in to comment.