We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent8f9bee6 commitd37594fCopy 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"),