Skip to content
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

Closed
wants to merge 2 commits into from

Conversation

sfc-gh-swinkler
Copy link
Collaborator

adds a test case for username and password acceptance test, more tests to follow.

Copy link

github-actions bot commented Nov 9, 2023

Integration tests failure for 08d90a987d5592dec8e52a2a6e1dca69c868b1b7

Copy link

github-actions bot commented Nov 9, 2023

Integration tests failure for f57cb9edd742d69f4068bfcc371e9da20f0bad38

t.Helper()
return func(s *terraform.State) error {
rs, ok := s.RootModule().Resources[n]
if !ok {
Copy link
Collaborator

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")
Copy link
Collaborator

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){
Copy link
Collaborator

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.

@sfc-gh-asawicki
Copy link
Collaborator

Superseded by #2551

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants