Skip to content

Commit

Permalink
linter fix2
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-pcyrek committed Dec 10, 2024
1 parent c77b081 commit 3053d2d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions auth_with_okta_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ func TestOktaWrongCredentials(t *testing.T) {

func TestOktaWrongAuthenticator(t *testing.T) {
cfg := setupOktaTest(t)
invalid_address, err := url.Parse("https://fake-account-0000.okta.com")
invalidAddress, err := url.Parse("https://fake-account-0000.okta.com")
if err != nil {
t.Fatalf("failed to parse: %v", err)
}

cfg.OktaURL = invalid_address
cfg.OktaURL = invalidAddress
errMsg := "390139 (08004): The specified authenticator is not accepted by your Snowflake account configuration. " +
"Please contact your local system administrator to get the correct URL to use."

Expand All @@ -48,12 +48,12 @@ func TestOktaWrongAuthenticator(t *testing.T) {

func TestOktaWrongURL(t *testing.T) {
cfg := setupOktaTest(t)
invalid_address, err := url.Parse("https://fake-account-0000.okta.com")
invalidAddress, err := url.Parse("https://fake-account-0000.okta.com")
if err != nil {
t.Fatalf("failed to parse: %v", err)
}

cfg.OktaURL = invalid_address
cfg.OktaURL = invalidAddress
errMsg := "390139 (08004): The specified authenticator is not accepted by your Snowflake account configuration. " +
"Please contact your local system administrator to get the correct URL to use."

Expand All @@ -70,7 +70,7 @@ func setupOktaTest(t *testing.T) *Config {
}
skipOnJenkins(t, "Running only on Docker container")

url_env, err := GetFromEnv("SNOWFLAKE_AUTH_TEST_OKTA_AUTH", true)
urlEnv, err := GetFromEnv("SNOWFLAKE_AUTH_TEST_OKTA_AUTH", true)
if err != nil {
return nil
}
Expand All @@ -80,7 +80,7 @@ func setupOktaTest(t *testing.T) *Config {
t.Fatalf("failed to get config: %v", err)
}

cfg.OktaURL, err = url.Parse(url_env)
cfg.OktaURL, err = url.Parse(urlEnv)
if err != nil {
t.Fatalf("failed to parse: %v", err)
}
Expand Down

0 comments on commit 3053d2d

Please sign in to comment.