@@ -36,7 +36,7 @@ func TestBasicBuilder(t *testing.T) {
36
36
name : "successful basic build yaml output" ,
37
37
validate : true ,
38
38
basicBuilder : NewBasicBuilder (BuilderConfig {
39
- WorkingDir : testDir ,
39
+ WorkingDir : testDir ,
40
40
OutputType : "yaml" ,
41
41
}),
42
42
templateDefinition : TemplateDefinition {
@@ -67,7 +67,7 @@ func TestBasicBuilder(t *testing.T) {
67
67
name : "successful basic build json output" ,
68
68
validate : true ,
69
69
basicBuilder : NewBasicBuilder (BuilderConfig {
70
- WorkingDir : testDir ,
70
+ WorkingDir : testDir ,
71
71
OutputType : "json" ,
72
72
}),
73
73
templateDefinition : TemplateDefinition {
@@ -98,7 +98,7 @@ func TestBasicBuilder(t *testing.T) {
98
98
name : "invalid template configuration" ,
99
99
validate : false ,
100
100
basicBuilder : NewBasicBuilder (BuilderConfig {
101
- WorkingDir : testDir ,
101
+ WorkingDir : testDir ,
102
102
OutputType : "yaml" ,
103
103
}),
104
104
templateDefinition : TemplateDefinition {
@@ -117,7 +117,7 @@ func TestBasicBuilder(t *testing.T) {
117
117
name : "invalid output type" ,
118
118
validate : false ,
119
119
basicBuilder : NewBasicBuilder (BuilderConfig {
120
- WorkingDir : testDir ,
120
+ WorkingDir : testDir ,
121
121
OutputType : "invalid" ,
122
122
}),
123
123
templateDefinition : TemplateDefinition {
@@ -136,7 +136,7 @@ func TestBasicBuilder(t *testing.T) {
136
136
name : "invalid schema" ,
137
137
validate : false ,
138
138
basicBuilder : NewBasicBuilder (BuilderConfig {
139
- WorkingDir : testDir ,
139
+ WorkingDir : testDir ,
140
140
OutputType : "yaml" ,
141
141
}),
142
142
templateDefinition : TemplateDefinition {
@@ -152,7 +152,7 @@ func TestBasicBuilder(t *testing.T) {
152
152
name : "template config has empty input" ,
153
153
validate : false ,
154
154
basicBuilder : NewBasicBuilder (BuilderConfig {
155
- WorkingDir : testDir ,
155
+ WorkingDir : testDir ,
156
156
OutputType : "yaml" ,
157
157
}),
158
158
templateDefinition : TemplateDefinition {
@@ -173,7 +173,7 @@ func TestBasicBuilder(t *testing.T) {
173
173
name : "template config has empty output" ,
174
174
validate : false ,
175
175
basicBuilder : NewBasicBuilder (BuilderConfig {
176
- WorkingDir : testDir ,
176
+ WorkingDir : testDir ,
177
177
OutputType : "yaml" ,
178
178
}),
179
179
templateDefinition : TemplateDefinition {
@@ -194,7 +194,7 @@ func TestBasicBuilder(t *testing.T) {
194
194
name : "template config has empty input & output" ,
195
195
validate : false ,
196
196
basicBuilder : NewBasicBuilder (BuilderConfig {
197
- WorkingDir : testDir ,
197
+ WorkingDir : testDir ,
198
198
OutputType : "yaml" ,
199
199
}),
200
200
templateDefinition : TemplateDefinition {
@@ -414,7 +414,7 @@ func TestSemverBuilder(t *testing.T) {
414
414
name : "successful semver build yaml output" ,
415
415
validate : true ,
416
416
semverBuilder : NewSemverBuilder (BuilderConfig {
417
- WorkingDir : testDir ,
417
+ WorkingDir : testDir ,
418
418
OutputType : "yaml" ,
419
419
}),
420
420
templateDefinition : TemplateDefinition {
@@ -445,7 +445,7 @@ func TestSemverBuilder(t *testing.T) {
445
445
name : "successful semver build json output" ,
446
446
validate : true ,
447
447
semverBuilder : NewSemverBuilder (BuilderConfig {
448
- WorkingDir : testDir ,
448
+ WorkingDir : testDir ,
449
449
OutputType : "json" ,
450
450
}),
451
451
templateDefinition : TemplateDefinition {
@@ -476,7 +476,7 @@ func TestSemverBuilder(t *testing.T) {
476
476
name : "invalid template configuration" ,
477
477
validate : false ,
478
478
semverBuilder : NewSemverBuilder (BuilderConfig {
479
- WorkingDir : testDir ,
479
+ WorkingDir : testDir ,
480
480
OutputType : "yaml" ,
481
481
}),
482
482
templateDefinition : TemplateDefinition {
@@ -495,7 +495,7 @@ func TestSemverBuilder(t *testing.T) {
495
495
name : "invalid output type" ,
496
496
validate : false ,
497
497
semverBuilder : NewSemverBuilder (BuilderConfig {
498
- WorkingDir : testDir ,
498
+ WorkingDir : testDir ,
499
499
OutputType : "invalid" ,
500
500
}),
501
501
templateDefinition : TemplateDefinition {
@@ -514,7 +514,7 @@ func TestSemverBuilder(t *testing.T) {
514
514
name : "invalid schema" ,
515
515
validate : false ,
516
516
semverBuilder : NewSemverBuilder (BuilderConfig {
517
- WorkingDir : testDir ,
517
+ WorkingDir : testDir ,
518
518
OutputType : "yaml" ,
519
519
}),
520
520
templateDefinition : TemplateDefinition {
@@ -531,7 +531,7 @@ func TestSemverBuilder(t *testing.T) {
531
531
name : "template config has empty input" ,
532
532
validate : false ,
533
533
semverBuilder : NewSemverBuilder (BuilderConfig {
534
- WorkingDir : testDir ,
534
+ WorkingDir : testDir ,
535
535
OutputType : "yaml" ,
536
536
}),
537
537
templateDefinition : TemplateDefinition {
@@ -552,7 +552,7 @@ func TestSemverBuilder(t *testing.T) {
552
552
name : "template config has empty output" ,
553
553
validate : false ,
554
554
semverBuilder : NewSemverBuilder (BuilderConfig {
555
- WorkingDir : testDir ,
555
+ WorkingDir : testDir ,
556
556
OutputType : "yaml" ,
557
557
}),
558
558
templateDefinition : TemplateDefinition {
@@ -573,7 +573,7 @@ func TestSemverBuilder(t *testing.T) {
573
573
name : "template config has empty input & output" ,
574
574
validate : false ,
575
575
semverBuilder : NewSemverBuilder (BuilderConfig {
576
- WorkingDir : testDir ,
576
+ WorkingDir : testDir ,
577
577
OutputType : "yaml" ,
578
578
}),
579
579
templateDefinition : TemplateDefinition {
@@ -803,7 +803,7 @@ func TestRawBuilder(t *testing.T) {
803
803
name : "successful raw build yaml output" ,
804
804
validate : true ,
805
805
rawBuilder : NewRawBuilder (BuilderConfig {
806
- WorkingDir : testDir ,
806
+ WorkingDir : testDir ,
807
807
OutputType : "yaml" ,
808
808
}),
809
809
templateDefinition : TemplateDefinition {
@@ -834,7 +834,7 @@ func TestRawBuilder(t *testing.T) {
834
834
name : "successful raw build json output" ,
835
835
validate : true ,
836
836
rawBuilder : NewRawBuilder (BuilderConfig {
837
- WorkingDir : testDir ,
837
+ WorkingDir : testDir ,
838
838
OutputType : "json" ,
839
839
}),
840
840
templateDefinition : TemplateDefinition {
@@ -865,7 +865,7 @@ func TestRawBuilder(t *testing.T) {
865
865
name : "invalid template configuration" ,
866
866
validate : false ,
867
867
rawBuilder : NewRawBuilder (BuilderConfig {
868
- WorkingDir : testDir ,
868
+ WorkingDir : testDir ,
869
869
OutputType : "yaml" ,
870
870
}),
871
871
templateDefinition : TemplateDefinition {
@@ -884,7 +884,7 @@ func TestRawBuilder(t *testing.T) {
884
884
name : "invalid output type" ,
885
885
validate : false ,
886
886
rawBuilder : NewRawBuilder (BuilderConfig {
887
- WorkingDir : testDir ,
887
+ WorkingDir : testDir ,
888
888
OutputType : "invalid" ,
889
889
}),
890
890
templateDefinition : TemplateDefinition {
@@ -903,7 +903,7 @@ func TestRawBuilder(t *testing.T) {
903
903
name : "invalid schema" ,
904
904
validate : false ,
905
905
rawBuilder : NewRawBuilder (BuilderConfig {
906
- WorkingDir : testDir ,
906
+ WorkingDir : testDir ,
907
907
OutputType : "yaml" ,
908
908
}),
909
909
templateDefinition : TemplateDefinition {
@@ -919,7 +919,7 @@ func TestRawBuilder(t *testing.T) {
919
919
name : "template config has empty input" ,
920
920
validate : false ,
921
921
rawBuilder : NewRawBuilder (BuilderConfig {
922
- WorkingDir : testDir ,
922
+ WorkingDir : testDir ,
923
923
OutputType : "yaml" ,
924
924
}),
925
925
templateDefinition : TemplateDefinition {
@@ -940,7 +940,7 @@ func TestRawBuilder(t *testing.T) {
940
940
name : "template config has empty output" ,
941
941
validate : false ,
942
942
rawBuilder : NewRawBuilder (BuilderConfig {
943
- WorkingDir : testDir ,
943
+ WorkingDir : testDir ,
944
944
OutputType : "yaml" ,
945
945
}),
946
946
templateDefinition : TemplateDefinition {
@@ -961,7 +961,7 @@ func TestRawBuilder(t *testing.T) {
961
961
name : "template config has empty input & output" ,
962
962
validate : false ,
963
963
rawBuilder : NewRawBuilder (BuilderConfig {
964
- WorkingDir : testDir ,
964
+ WorkingDir : testDir ,
965
965
OutputType : "yaml" ,
966
966
}),
967
967
templateDefinition : TemplateDefinition {
@@ -1214,7 +1214,7 @@ func TestCustomBuilder(t *testing.T) {
1214
1214
name : "successful custom build yaml output" ,
1215
1215
validate : true ,
1216
1216
customBuilder : NewCustomBuilder (BuilderConfig {
1217
- WorkingDir : testDir ,
1217
+ WorkingDir : testDir ,
1218
1218
OutputType : "yaml" ,
1219
1219
}),
1220
1220
templateDefinition : TemplateDefinition {
@@ -1245,7 +1245,7 @@ func TestCustomBuilder(t *testing.T) {
1245
1245
name : "successful custom build json output" ,
1246
1246
validate : true ,
1247
1247
customBuilder : NewCustomBuilder (BuilderConfig {
1248
- WorkingDir : testDir ,
1248
+ WorkingDir : testDir ,
1249
1249
OutputType : "json" ,
1250
1250
}),
1251
1251
templateDefinition : TemplateDefinition {
@@ -1276,7 +1276,7 @@ func TestCustomBuilder(t *testing.T) {
1276
1276
name : "invalid template configuration" ,
1277
1277
validate : false ,
1278
1278
customBuilder : NewCustomBuilder (BuilderConfig {
1279
- WorkingDir : testDir ,
1279
+ WorkingDir : testDir ,
1280
1280
OutputType : "yaml" ,
1281
1281
}),
1282
1282
templateDefinition : TemplateDefinition {
@@ -1295,7 +1295,7 @@ func TestCustomBuilder(t *testing.T) {
1295
1295
name : "invalid schema" ,
1296
1296
validate : false ,
1297
1297
customBuilder : NewCustomBuilder (BuilderConfig {
1298
- WorkingDir : testDir ,
1298
+ WorkingDir : testDir ,
1299
1299
OutputType : "yaml" ,
1300
1300
}),
1301
1301
templateDefinition : TemplateDefinition {
@@ -1315,7 +1315,7 @@ func TestCustomBuilder(t *testing.T) {
1315
1315
name : "template config has empty command" ,
1316
1316
validate : false ,
1317
1317
customBuilder : NewCustomBuilder (BuilderConfig {
1318
- WorkingDir : testDir ,
1318
+ WorkingDir : testDir ,
1319
1319
OutputType : "yaml" ,
1320
1320
}),
1321
1321
templateDefinition : TemplateDefinition {
@@ -1337,7 +1337,7 @@ func TestCustomBuilder(t *testing.T) {
1337
1337
name : "template config has empty output" ,
1338
1338
validate : false ,
1339
1339
customBuilder : NewCustomBuilder (BuilderConfig {
1340
- WorkingDir : testDir ,
1340
+ WorkingDir : testDir ,
1341
1341
OutputType : "yaml" ,
1342
1342
}),
1343
1343
templateDefinition : TemplateDefinition {
@@ -1359,7 +1359,7 @@ func TestCustomBuilder(t *testing.T) {
1359
1359
name : "template config has empty command & output" ,
1360
1360
validate : false ,
1361
1361
customBuilder : NewCustomBuilder (BuilderConfig {
1362
- WorkingDir : testDir ,
1362
+ WorkingDir : testDir ,
1363
1363
OutputType : "yaml" ,
1364
1364
}),
1365
1365
templateDefinition : TemplateDefinition {
0 commit comments