We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f9bee6 commit d37594fCopy full SHA for d37594f
internal/provider/user_resource_test.go
@@ -46,8 +46,8 @@ func TestAccUserResource(t *testing.T) {
46
resource.TestCheckResourceAttr("coderd_user.test", "name", "Example User"),
47
resource.TestCheckResourceAttr("coderd_user.test", "email", "example@coder.com"),
48
resource.TestCheckResourceAttr("coderd_user.test", "roles.#", "2"),
49
- resource.TestCheckResourceAttr("coderd_user.test", "roles.0", "auditor"),
50
- resource.TestCheckResourceAttr("coderd_user.test", "roles.1", "owner"),
+ resource.TestCheckTypeSetElemAttr("coderd_user.test", "roles.*", "auditor"),
+ resource.TestCheckTypeSetElemAttr("coderd_user.test", "roles.*", "owner"),
51
resource.TestCheckResourceAttr("coderd_user.test", "login_type", "password"),
52
resource.TestCheckResourceAttr("coderd_user.test", "password", "SomeSecurePassword!"),
53
resource.TestCheckResourceAttr("coderd_user.test", "suspended", "false"),
0 commit comments