Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1e4b8fb

Browse files
committedSep 11, 2024·
feat: update integration test
1 parent fb69196 commit 1e4b8fb

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
 

‎integration/integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func TestIntegration(t *testing.T) {
112112
"workspace_owner.session_token": `.+`,
113113
"workspace_owner.ssh_private_key": `(?s)^.+?BEGIN OPENSSH PRIVATE KEY.+?END OPENSSH PRIVATE KEY.+?$`,
114114
"workspace_owner.ssh_public_key": `(?s)^ssh-ed25519.+$`,
115-
"workspace_owner.login_type": `none`,
115+
"workspace_owner.login_type": ``,
116116
},
117117
},
118118
{

‎provider/workspace_owner.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ func workspaceOwnerDataSource() *schema.Resource {
5353
_ = rd.Set("session_token", os.Getenv("CODER_WORKSPACE_OWNER_SESSION_TOKEN"))
5454
_ = rd.Set("oidc_access_token", os.Getenv("CODER_WORKSPACE_OWNER_OIDC_ACCESS_TOKEN"))
5555

56+
if os.Getenv("CODER_WORKSPACE_OWNER_LOGIN_TYPE") == "" {
57+
diag.Warn("The CODER_WORKSPACE_OWNER_LOGIN_TYPE env variable is not set")
58+
}
5659
_ = rd.Set("login_type", os.Getenv("CODER_WORKSPACE_OWNER_LOGIN_TYPE"))
5760

5861
return nil

0 commit comments

Comments
 (0)
Please sign in to comment.