Skip to content

Conversation

@ethanndickson
Copy link
Member

No description provided.

resource.TestCheckResourceAttr("coderd_user.test", "password", "SomeSecurePassword!"),
resource.TestCheckResourceAttr("coderd_user.test", "suspended", "false"),
),
if os.Getenv("TF_ACC") == "" {
Copy link
Member Author

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.

Copy link
Member Author

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.

@ethanndickson ethanndickson merged commit 375a205 into main Jul 16, 2024
@ethanndickson ethanndickson deleted the ethan/user-data-acc branch July 16, 2024 03:08
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