diff --git a/test/integration/suite_test.go b/test/integration/suite_test.go index 4eb39fa0876..fa9c39ba6da 100644 --- a/test/integration/suite_test.go +++ b/test/integration/suite_test.go @@ -22,7 +22,6 @@ import ( "github.com/kong/kubernetes-testing-framework/pkg/clusters/types/kind" "github.com/kong/kubernetes-testing-framework/pkg/environments" "github.com/kong/kubernetes-testing-framework/pkg/utils/kubernetes/generators" - "github.com/sethvargo/go-password/password" testutils "github.com/kong/kubernetes-ingress-controller/test/utils" ) @@ -44,17 +43,10 @@ func TestMain(m *testing.M) { if licenseJSON == "" { exitOnErr(fmt.Errorf(("KONG_LICENSE_DATA must be set for Enterprise tests"))) } - password, err := password.Generate(10, 5, 0, false, false) - if err != nil { - kongAdminPwd = KongTestPassword - } else { - kongAdminPwd = password - } extraControllerArgs = append(extraControllerArgs, fmt.Sprintf("--kong-admin-token=%s", kongAdminPwd)) extraControllerArgs = append(extraControllerArgs, "--kong-workspace=notdefault") - fmt.Printf("INFO: using Kong admin password %s\n", kongAdminPwd) kongbuilder = kongbuilder.WithProxyEnterpriseEnabled(licenseJSON). - WithProxyEnterpriseSuperAdminPassword(kongAdminPwd). + WithProxyEnterpriseSuperAdminPassword(kongTestPassword). WithProxyAdminServiceTypeLoadBalancer() } diff --git a/test/integration/utils_test.go b/test/integration/utils_test.go index 3d6971fd63b..28a75d51120 100644 --- a/test/integration/utils_test.go +++ b/test/integration/utils_test.go @@ -148,8 +148,9 @@ const ( // problems setting up the testing environment and/or cluster. ExitCodeEnvSetupFailed = 104 - // Kong Admin test password - KongTestPassword = "password" + // kongTestPassword is used as a password only within the context of transient integration test runs + // and is left static to help developers debug failures in those testing environments. + kongTestPassword = "password" ) // -----------------------------------------------------------------------------