@@ -37,7 +37,7 @@ func TestResolveDevWorkspaceKubernetesReference(t *testing.T) {
37
37
WorkspaceNamespace : "test-ignored" ,
38
38
K8sClient : testClient ,
39
39
}
40
- outputWorkspace , err := ResolveDevWorkspace (tt .Input .DevWorkspace , testResolverTools )
40
+ outputWorkspace , _ , err := ResolveDevWorkspace (tt .Input .DevWorkspace , testResolverTools )
41
41
if tt .Output .ErrRegexp != nil && assert .Error (t , err ) {
42
42
assert .Regexp (t , * tt .Output .ErrRegexp , err .Error (), "Error message should match" )
43
43
} else {
@@ -67,7 +67,7 @@ func TestResolveDevWorkspaceInternalRegistry(t *testing.T) {
67
67
Context : context .Background (),
68
68
InternalRegistry : testRegistry ,
69
69
}
70
- outputWorkspace , err := ResolveDevWorkspace (tt .Input .DevWorkspace , testResolverTools )
70
+ outputWorkspace , _ , err := ResolveDevWorkspace (tt .Input .DevWorkspace , testResolverTools )
71
71
if tt .Output .ErrRegexp != nil && assert .Error (t , err ) {
72
72
assert .Regexp (t , * tt .Output .ErrRegexp , err .Error (), "Error message should match" )
73
73
} else {
@@ -98,7 +98,7 @@ func TestResolveDevWorkspacePluginRegistry(t *testing.T) {
98
98
Context : context .Background (),
99
99
HttpClient : testHttpGetter ,
100
100
}
101
- outputWorkspace , err := ResolveDevWorkspace (tt .Input .DevWorkspace , testResolverTools )
101
+ outputWorkspace , _ , err := ResolveDevWorkspace (tt .Input .DevWorkspace , testResolverTools )
102
102
if tt .Output .ErrRegexp != nil && assert .Error (t , err ) {
103
103
assert .Regexp (t , * tt .Output .ErrRegexp , err .Error (), "Error message should match" )
104
104
} else {
@@ -129,7 +129,7 @@ func TestResolveDevWorkspacePluginURI(t *testing.T) {
129
129
Context : context .Background (),
130
130
HttpClient : testHttpGetter ,
131
131
}
132
- outputWorkspace , err := ResolveDevWorkspace (tt .Input .DevWorkspace , testResolverTools )
132
+ outputWorkspace , _ , err := ResolveDevWorkspace (tt .Input .DevWorkspace , testResolverTools )
133
133
if tt .Output .ErrRegexp != nil && assert .Error (t , err ) {
134
134
assert .Regexp (t , * tt .Output .ErrRegexp , err .Error (), "Error message should match" )
135
135
} else {
@@ -165,7 +165,7 @@ func TestResolveDevWorkspaceParents(t *testing.T) {
165
165
K8sClient : testK8sClient ,
166
166
HttpClient : testHttpGetter ,
167
167
}
168
- outputWorkspace , err := ResolveDevWorkspace (tt .Input .DevWorkspace , testResolverTools )
168
+ outputWorkspace , _ , err := ResolveDevWorkspace (tt .Input .DevWorkspace , testResolverTools )
169
169
if tt .Output .ErrRegexp != nil && assert .Error (t , err ) {
170
170
assert .Regexp (t , * tt .Output .ErrRegexp , err .Error (), "Error message should match" )
171
171
} else {
@@ -203,7 +203,7 @@ func TestResolveDevWorkspaceMissingDefaults(t *testing.T) {
203
203
K8sClient : testK8sClient ,
204
204
HttpClient : testHttpGetter ,
205
205
}
206
- outputWorkspace , err := ResolveDevWorkspace (tt .Input .DevWorkspace , testResolverTools )
206
+ outputWorkspace , _ , err := ResolveDevWorkspace (tt .Input .DevWorkspace , testResolverTools )
207
207
if tt .Output .ErrRegexp != nil && assert .Error (t , err ) {
208
208
assert .Regexp (t , * tt .Output .ErrRegexp , err .Error (), "Error message should match" )
209
209
} else {
@@ -239,7 +239,7 @@ func TestResolveDevWorkspaceAnnotations(t *testing.T) {
239
239
HttpClient : testHttpGetter ,
240
240
WorkspaceNamespace : "default-namespace" ,
241
241
}
242
- outputWorkspace , err := ResolveDevWorkspace (tt .Input .DevWorkspace , testResolverTools )
242
+ outputWorkspace , _ , err := ResolveDevWorkspace (tt .Input .DevWorkspace , testResolverTools )
243
243
if tt .Output .ErrRegexp != nil && assert .Error (t , err ) {
244
244
assert .Regexp (t , * tt .Output .ErrRegexp , err .Error (), "Error message should match" )
245
245
} else {
@@ -275,7 +275,7 @@ func TestResolveDevWorkspaceTemplateNamespaceRestriction(t *testing.T) {
275
275
HttpClient : testHttpGetter ,
276
276
WorkspaceNamespace : "test-namespace" ,
277
277
}
278
- outputWorkspace , err := ResolveDevWorkspace (tt .Input .DevWorkspace , testResolverTools )
278
+ outputWorkspace , _ , err := ResolveDevWorkspace (tt .Input .DevWorkspace , testResolverTools )
279
279
if tt .Output .ErrRegexp != nil && assert .Error (t , err ) {
280
280
assert .Regexp (t , * tt .Output .ErrRegexp , err .Error (), "Error message should match" )
281
281
} else {
0 commit comments