@@ -71,18 +71,25 @@ func TestIntegration(t *testing.T) {
71
71
name : "test-data-source" ,
72
72
minVersion : "v0.0.0" ,
73
73
expectedOutput : map [string ]string {
74
- "provisioner.arch" : runtime .GOARCH ,
75
- "provisioner.id" : `[a-zA-Z0-9-]+` ,
76
- "provisioner.os" : runtime .GOOS ,
77
- "workspace.access_port" : `\d+` ,
78
- "workspace.access_url" : `https?://\D+:\d+` ,
79
- "workspace.id" : `[a-zA-z0-9-]+` ,
80
- "workspace.name" : `test-data-source` ,
81
- "workspace.start_count" : `1` ,
82
- "workspace.template_id" : `[a-zA-Z0-9-]+` ,
83
- "workspace.template_name" : `test-data-source` ,
84
- "workspace.template_version" : `.+` ,
85
- "workspace.transition" : `start` ,
74
+ "provisioner.arch" : runtime .GOARCH ,
75
+ "provisioner.id" : `[a-zA-Z0-9-]+` ,
76
+ "provisioner.os" : runtime .GOOS ,
77
+ "workspace.access_port" : `\d+` ,
78
+ "workspace.access_url" : `https?://\D+:\d+` ,
79
+ "workspace.id" : `[a-zA-z0-9-]+` ,
80
+ "workspace.name" : `test-data-source` ,
81
+ "workspace.owner" : `testing` ,
82
+ "workspace.owner_email" : `testing@coder\.com` ,
83
+ "workspace.owner_groups" : `\[\]` ,
84
+ "workspace.owner_id" : `[a-zA-Z0-9]+` ,
85
+ "workspace.owner_name" : `default` ,
86
+ "workspace.owner_oidc_access_token" : `^$` , // TODO: need a test OIDC integration
87
+ "workspace.owner_session_token" : `[a-zA-Z0-9-]+` ,
88
+ "workspace.start_count" : `1` ,
89
+ "workspace.template_id" : `[a-zA-Z0-9-]+` ,
90
+ "workspace.template_name" : `test-data-source` ,
91
+ "workspace.template_version" : `.+` ,
92
+ "workspace.transition" : `start` ,
86
93
},
87
94
},
88
95
{
@@ -96,6 +103,13 @@ func TestIntegration(t *testing.T) {
96
103
"workspace.access_url" : `https?://\D+:\d+` ,
97
104
"workspace.id" : `[a-zA-z0-9-]+` ,
98
105
"workspace.name" : `` ,
106
+ "workspace.owner" : `testing` ,
107
+ "workspace.owner_email" : `testing@coder\.com` ,
108
+ "workspace.owner_groups" : `\[\]` ,
109
+ "workspace.owner_id" : `[a-zA-Z0-9]+` ,
110
+ "workspace.owner_name" : `default` ,
111
+ "workspace.owner_oidc_access_token" : `^$` , // TODO: need a test OIDC integration
112
+ "workspace.owner_session_token" : `[a-zA-Z0-9-]+` ,
99
113
"workspace.start_count" : `1` ,
100
114
"workspace.template_id" : `[a-zA-Z0-9-]+` ,
101
115
"workspace.template_name" : `workspace-owner` ,
0 commit comments