Skip to content

Commit

Permalink
linterfix4
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-pcyrek committed Dec 18, 2024
1 parent 4959876 commit b1073b1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions auth_with_oauth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,14 @@ func getOauthTestToken(t *testing.T, cfg *Config) (string, error) {

client := &http.Client{}

authURL, _ := GetFromEnv("SNOWFLAKE_AUTH_TEST_OAUTH_URL", true)
oauthClientID, _ := GetFromEnv("SNOWFLAKE_AUTH_TEST_OAUTH_CLIENT_ID", true)
oauthClientSecret, _ := GetFromEnv("SNOWFLAKE_AUTH_TEST_OAUTH_CLIENT_SECRET", true)
authURL, err := GetFromEnv("SNOWFLAKE_AUTH_TEST_OAUTH_URL", true)
assertEqualF(t, err, nil, "SNOWFLAKE_AUTH_TEST_OAUTH_URL is not set")

oauthClientID, err := GetFromEnv("SNOWFLAKE_AUTH_TEST_OAUTH_CLIENT_ID", true)
assertEqualF(t, err, nil, "SNOWFLAKE_AUTH_TEST_OAUTH_CLIENT_ID is not set")

oauthClientSecret, err := GetFromEnv("SNOWFLAKE_AUTH_TEST_OAUTH_CLIENT_SECRET", true)
assertEqualF(t, err, nil, "SNOWFLAKE_AUTH_TEST_OAUTH_CLIENT_SECRET is not set")

inputData := formData(cfg)

Expand Down

0 comments on commit b1073b1

Please sign in to comment.