Skip to content

Commit 0c3001a

Browse files
committed
feat: Add rbac_roles to coder_workspace_owner data source
1 parent 7414a32 commit 0c3001a

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

integration/integration_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func TestIntegration(t *testing.T) {
113113
"workspace_owner.ssh_private_key": `(?s)^.+?BEGIN OPENSSH PRIVATE KEY.+?END OPENSSH PRIVATE KEY.+?$`,
114114
"workspace_owner.ssh_public_key": `(?s)^ssh-ed25519.+$`,
115115
"workspace_owner.login_type": ``,
116-
"workspace_owner.rbac_roles": `\[(\"member\")?\]`,
116+
"workspace_owner.rbac_roles": `\[\]`,
117117
},
118118
},
119119
{
@@ -142,6 +142,7 @@ func TestIntegration(t *testing.T) {
142142
"workspace_owner.ssh_private_key": `(?s)^.+?BEGIN OPENSSH PRIVATE KEY.+?END OPENSSH PRIVATE KEY.+?$`,
143143
"workspace_owner.ssh_public_key": `(?s)^ssh-ed25519.+$`,
144144
"workspace_owner.login_type": `password`,
145+
"workspace_owner.rbac_roles": `\[\]`,
145146
},
146147
},
147148
{

integration/workspace-owner-filled/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ locals {
4040
"workspace_owner.ssh_private_key" : data.coder_workspace_owner.me.ssh_private_key,
4141
"workspace_owner.ssh_public_key" : data.coder_workspace_owner.me.ssh_public_key,
4242
"workspace_owner.login_type" : data.coder_workspace_owner.me.login_type,
43+
"workspace_owner.rbac_roles" : jsonencode(data.coder_workspace_owner.me.rbac_roles),
4344
}
4445
}
4546

integration/workspace-owner/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ locals {
4040
"workspace_owner.ssh_private_key" : data.coder_workspace_owner.me.ssh_private_key,
4141
"workspace_owner.ssh_public_key" : data.coder_workspace_owner.me.ssh_public_key,
4242
"workspace_owner.login_type" : data.coder_workspace_owner.me.login_type,
43-
"workspace_owner.rbac_roles" : data.coder_workspace_owner.me.rbac_roles,
43+
"workspace_owner.rbac_roles" : jsonencode(data.coder_workspace_owner.me.rbac_roles),
4444
}
4545
}
4646

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