Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd37594f

Browse files
committed
set checking
1 parent8f9bee6 commitd37594f

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","example@coder.com"),
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)

[8]ページ先頭

©2009-2025 Movatter.jp