-
Notifications
You must be signed in to change notification settings - Fork 3
chore: add acceptance tests to user data source #23
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
Conversation
resource.TestCheckResourceAttr("coderd_user.test", "password", "SomeSecurePassword!"), | ||
resource.TestCheckResourceAttr("coderd_user.test", "suspended", "false"), | ||
), | ||
if os.Getenv("TF_ACC") == "" { |
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.
This is what resource.Test
does when it's run, so we should skip the setup if there's nothing to run.
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.
You can write all these tests a bit nicer as several steps inside a resource.TestCase
, but we're not really doing seperate steps, so subtests are fine.
No description provided.