@@ -29,19 +29,13 @@ func TestBuildWorkspaceTemplates(t *testing.T) {
29
29
Expectation Expectation
30
30
}{
31
31
{
32
- Name : "no templates" ,
33
- Expectation : Expectation {
34
- TplConfig : wsmancfg.WorkspacePodTemplateConfiguration {DefaultPath : "/workspace-templates/default.yaml" },
35
- Data : map [string ]bool {"default.yaml" : true },
36
- },
32
+ Name : "no templates" ,
33
+ Expectation : Expectation {},
37
34
},
38
35
{
39
- Name : "empty templates" ,
40
- Config : & configv1.WorkspaceTemplates {},
41
- Expectation : Expectation {
42
- TplConfig : wsmancfg.WorkspacePodTemplateConfiguration {DefaultPath : "/workspace-templates/default.yaml" },
43
- Data : map [string ]bool {"default.yaml" : true },
44
- },
36
+ Name : "empty templates" ,
37
+ Config : & configv1.WorkspaceTemplates {},
38
+ Expectation : Expectation {},
45
39
},
46
40
{
47
41
Name : "default tpl" ,
@@ -60,11 +54,9 @@ func TestBuildWorkspaceTemplates(t *testing.T) {
60
54
},
61
55
Expectation : Expectation {
62
56
TplConfig : wsmancfg.WorkspacePodTemplateConfiguration {
63
- DefaultPath : "/workspace-templates/default.yaml" ,
64
57
RegularPath : "/workspace-templates/regular.yaml" ,
65
58
},
66
59
Data : map [string ]bool {
67
- "default.yaml" : true ,
68
60
"regular.yaml" : true ,
69
61
},
70
62
},
@@ -76,11 +68,9 @@ func TestBuildWorkspaceTemplates(t *testing.T) {
76
68
},
77
69
Expectation : Expectation {
78
70
TplConfig : wsmancfg.WorkspacePodTemplateConfiguration {
79
- DefaultPath : "/workspace-templates/default.yaml" ,
80
71
PrebuildPath : "/workspace-templates/prebuild.yaml" ,
81
72
},
82
73
Data : map [string ]bool {
83
- "default.yaml" : true ,
84
74
"prebuild.yaml" : true ,
85
75
},
86
76
},
@@ -92,12 +82,10 @@ func TestBuildWorkspaceTemplates(t *testing.T) {
92
82
},
93
83
Expectation : Expectation {
94
84
TplConfig : wsmancfg.WorkspacePodTemplateConfiguration {
95
- DefaultPath : "/workspace-templates/default.yaml" ,
96
- GhostPath : "/workspace-templates/ghost.yaml" ,
85
+ GhostPath : "/workspace-templates/ghost.yaml" ,
97
86
},
98
87
Data : map [string ]bool {
99
- "default.yaml" : true ,
100
- "ghost.yaml" : true ,
88
+ "ghost.yaml" : true ,
101
89
},
102
90
},
103
91
},
@@ -108,11 +96,9 @@ func TestBuildWorkspaceTemplates(t *testing.T) {
108
96
},
109
97
Expectation : Expectation {
110
98
TplConfig : wsmancfg.WorkspacePodTemplateConfiguration {
111
- DefaultPath : "/workspace-templates/default.yaml" ,
112
99
ImagebuildPath : "/workspace-templates/imagebuild.yaml" ,
113
100
},
114
101
Data : map [string ]bool {
115
- "default.yaml" : true ,
116
102
"imagebuild.yaml" : true ,
117
103
},
118
104
},
0 commit comments