- Notifications
You must be signed in to change notification settings - Fork4
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
resource.TestCheckResourceAttr("coderd_user.test", "password", "SomeSecurePassword!"), | ||
resource.TestCheckResourceAttr("coderd_user.test", "suspended", "false"), | ||
), | ||
ifos.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 whatresource.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 aresource.TestCase
, but we're not really doing seperate steps, so subtests are fine.
Uh oh!
There was an error while loading.Please reload this page.
No description provided.