-
Notifications
You must be signed in to change notification settings - Fork 427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: add username_password auth test #2184
Conversation
Integration tests failure for 08d90a987d5592dec8e52a2a6e1dca69c868b1b7 |
Integration tests failure for f57cb9edd742d69f4068bfcc371e9da20f0bad38 |
t.Helper() | ||
return func(s *terraform.State) error { | ||
rs, ok := s.RootModule().Resources[n] | ||
if !ok { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use testify/assert
or testify/require
instead?
func TestAcc_ProviderUsernameAndPasswordAuth(t *testing.T) { | ||
user := os.Getenv("SNOWFLAKE_USER") | ||
if user == "" { | ||
t.Skip("SNOWFLAKE_USER must be set") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Skip means this test will be treated as a success (currently). Should it be skipped or failed in such a case?
|
||
var testAccProvider *schema.Provider | ||
|
||
var testAccProtoV6ProviderFactories = map[string]func() (tfprotov6.ProviderServer, error){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this (+ testAccProvider variable and init function) be placed in some test_helper file? It seems like a variable that will be used in all new tests.
Superseded by #2551 |
adds a test case for username and password acceptance test, more tests to follow.