Skip to content

Commit f871a43

Browse files
authored
test: rbac role test assertion to handle site wide roles (#385)
Site wide roles have empty string org_ids
1 parent c86bb5c commit f871a43

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy