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

Commitf871a43

Browse files
authored
test: rbac role test assertion to handle site wide roles (#385)
Site wide roles have empty string org_ids
1 parentc86bb5c commitf871a43

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎integration/integration_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ func TestIntegration(t *testing.T) {
181181
"workspace_owner.ssh_private_key":`(?s)^.+?BEGIN OPENSSH PRIVATE KEY.+?END OPENSSH PRIVATE KEY.+?$`,
182182
"workspace_owner.ssh_public_key":`(?s)^ssh-ed25519.+$`,
183183
"workspace_owner.login_type":`password`,
184-
"workspace_owner.rbac_roles":`(?is)\[(\{"name":"[a-z0-9-:]+","org_id":"[a-f0-9-]+"\},?)+\]`,
184+
// org_id will either be a uuid or an empty string for site wide roles.
185+
"workspace_owner.rbac_roles":`(?is)\[(\{"name":"[a-z0-9-:]+","org_id":"[a-f0-9-]*"\},?)+\]`,
185186
},
186187
},
187188
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp