Skip to content

Commit d37594f

Browse files
committed
set checking
1 parent 8f9bee6 commit d37594f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/provider/user_resource_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ func TestAccUserResource(t *testing.T) {
4646
resource.TestCheckResourceAttr("coderd_user.test", "name", "Example User"),
4747
resource.TestCheckResourceAttr("coderd_user.test", "email", "[email protected]"),
4848
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"),
49+
resource.TestCheckTypeSetElemAttr("coderd_user.test", "roles.*", "auditor"),
50+
resource.TestCheckTypeSetElemAttr("coderd_user.test", "roles.*", "owner"),
5151
resource.TestCheckResourceAttr("coderd_user.test", "login_type", "password"),
5252
resource.TestCheckResourceAttr("coderd_user.test", "password", "SomeSecurePassword!"),
5353
resource.TestCheckResourceAttr("coderd_user.test", "suspended", "false"),

0 commit comments

Comments
 (0)