@@ -222,7 +222,7 @@ func TestProcessValue(t *testing.T) {
222
222
if err != nil {
223
223
t .Fatalf ("unexpected error during encoding Config: %#v" , err )
224
224
}
225
- expect := `{"kind":"Template","apiVersion":"template.openshift.io/v1","metadata":{"creationTimestamp":null },"objects":[{"apiVersion":"v1","kind":"Service","metadata":{"labels":{"i1":1,"invalidjsonarray":"[\"key\":\"value\"","invalidjsonmap":"{\"key\":\"value\"","key1":"1","key2":"$1","quoted_string":"string1","s1_s1":"string1_string1","s1_s2":"string1_string2","untouched":"a${{INT_1}}","untouched2":"${{INT_1}}a","untouched3":"${{INVALID_PARAMETER}}","untouched4":"${{INVALID PARAMETER}}","validjsonarray":["key","value"],"validjsonmap":{"key":"value"}}}}],"parameters":[{"name":"VALUE","value":"1"},{"name":"STRING_1","value":"string1"},{"name":"STRING_2","value":"string2"},{"name":"INT_1","value":"1"},{"name":"VALID_JSON_MAP","value":"{\"key\":\"value\"}"},{"name":"INVALID_JSON_MAP","value":"{\"key\":\"value\""},{"name":"VALID_JSON_ARRAY","value":"[\"key\",\"value\"]"},{"name":"INVALID_JSON_ARRAY","value":"[\"key\":\"value\""}]}`
225
+ expect := `{"kind":"Template","apiVersion":"template.openshift.io/v1","metadata":{},"objects":[{"apiVersion":"v1","kind":"Service","metadata":{"labels":{"i1":1,"invalidjsonarray":"[\"key\":\"value\"","invalidjsonmap":"{\"key\":\"value\"","key1":"1","key2":"$1","quoted_string":"string1","s1_s1":"string1_string1","s1_s2":"string1_string2","untouched":"a${{INT_1}}","untouched2":"${{INT_1}}a","untouched3":"${{INVALID_PARAMETER}}","untouched4":"${{INVALID PARAMETER}}","validjsonarray":["key","value"],"validjsonmap":{"key":"value"}}}}],"parameters":[{"name":"VALUE","value":"1"},{"name":"STRING_1","value":"string1"},{"name":"STRING_2","value":"string2"},{"name":"INT_1","value":"1"},{"name":"VALID_JSON_MAP","value":"{\"key\":\"value\"}"},{"name":"INVALID_JSON_MAP","value":"{\"key\":\"value\""},{"name":"VALID_JSON_ARRAY","value":"[\"key\",\"value\"]"},{"name":"INVALID_JSON_ARRAY","value":"[\"key\":\"value\""}]}`
226
226
stringResult := strings .TrimSpace (string (result ))
227
227
if expect != stringResult {
228
228
//t.Errorf("unexpected output, expected: \n%s\nGot:\n%s\n", expect, stringResult)
@@ -249,7 +249,7 @@ func TestEvaluateLabels(t *testing.T) {
249
249
]
250
250
}` ,
251
251
Output : `{
252
- "kind":"Template","apiVersion":"template.openshift.io/v1","metadata":{"creationTimestamp":null },
252
+ "kind":"Template","apiVersion":"template.openshift.io/v1","metadata":{},
253
253
"objects":[
254
254
{
255
255
"apiVersion":"v1","kind":"Service","metadata":{
@@ -269,7 +269,7 @@ func TestEvaluateLabels(t *testing.T) {
269
269
]
270
270
}` ,
271
271
Output : `{
272
- "kind":"Template","apiVersion":"template.openshift.io/v1","metadata":{"creationTimestamp":null },
272
+ "kind":"Template","apiVersion":"template.openshift.io/v1","metadata":{},
273
273
"objects":[
274
274
{
275
275
"apiVersion":"v1","kind":"Service","metadata":{
@@ -295,7 +295,7 @@ func TestEvaluateLabels(t *testing.T) {
295
295
]
296
296
}` ,
297
297
Output : `{
298
- "kind":"Template","apiVersion":"template.openshift.io/v1","metadata":{"creationTimestamp":null },
298
+ "kind":"Template","apiVersion":"template.openshift.io/v1","metadata":{},
299
299
"objects":[
300
300
{
301
301
"apiVersion":"v1","kind":"Service",
@@ -318,7 +318,7 @@ func TestEvaluateLabels(t *testing.T) {
318
318
]
319
319
}` ,
320
320
Output : `{
321
- "kind":"Template","apiVersion":"template.openshift.io/v1","metadata":{"creationTimestamp":null },
321
+ "kind":"Template","apiVersion":"template.openshift.io/v1","metadata":{},
322
322
"objects":[
323
323
{
324
324
"apiVersion":"v1","kind":"Service","metadata":{
@@ -350,7 +350,7 @@ func TestEvaluateLabels(t *testing.T) {
350
350
]
351
351
}` ,
352
352
Output : `{
353
- "kind":"Template","apiVersion":"template.openshift.io/v1","metadata":{"creationTimestamp":null },
353
+ "kind":"Template","apiVersion":"template.openshift.io/v1","metadata":{},
354
354
"objects":[
355
355
{
356
356
"apiVersion":"v1","kind":"Service","metadata":{
0 commit comments