Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 857b8e8

Browse files
committedJun 25, 2018
LIGGITT: stop auto-registering the non-groupified versions
1 parent 046a74c commit 857b8e8

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed
 

‎pkg/template/templateprocessing/template_test.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ func TestParameterGenerators(t *testing.T) {
180180
func TestProcessValue(t *testing.T) {
181181
var template templateapi.Template
182182
if err := runtime.DecodeInto(legacyscheme.Codecs.UniversalDecoder(), []byte(`{
183-
"kind":"Template", "apiVersion":"v1",
183+
"kind":"Template", "apiVersion":"template.openshift.io/v1",
184184
"objects": [
185185
{
186186
"kind": "Service", "apiVersion": "v${VALUE}",
@@ -250,7 +250,7 @@ func TestEvaluateLabels(t *testing.T) {
250250
}{
251251
"no labels": {
252252
Input: `{
253-
"kind":"Template", "apiVersion":"v1",
253+
"kind":"Template", "apiVersion":"template.openshift.io/v1",
254254
"objects": [
255255
{
256256
"kind": "Service", "apiVersion": "v1",
@@ -270,7 +270,7 @@ func TestEvaluateLabels(t *testing.T) {
270270
},
271271
"one different label": {
272272
Input: `{
273-
"kind":"Template", "apiVersion":"v1",
273+
"kind":"Template", "apiVersion":"template.openshift.io/v1",
274274
"objects": [
275275
{
276276
"kind": "Service", "apiVersion": "v1",
@@ -292,7 +292,7 @@ func TestEvaluateLabels(t *testing.T) {
292292
},
293293
"when the root object has labels and metadata": {
294294
Input: `{
295-
"kind":"Template", "apiVersion":"v1",
295+
"kind":"Template", "apiVersion":"template.openshift.io/v1",
296296
"objects": [
297297
{
298298
"kind": "Service", "apiVersion": "v1",
@@ -319,7 +319,7 @@ func TestEvaluateLabels(t *testing.T) {
319319
},
320320
"overwrites label": {
321321
Input: `{
322-
"kind":"Template", "apiVersion":"v1",
322+
"kind":"Template", "apiVersion":"template.openshift.io/v1",
323323
"objects": [
324324
{
325325
"kind": "Service", "apiVersion": "v1",
@@ -341,7 +341,7 @@ func TestEvaluateLabels(t *testing.T) {
341341
},
342342
"parameterised labels": {
343343
Input: `{
344-
"kind":"Template", "apiVersion":"v1",
344+
"kind":"Template", "apiVersion":"template.openshift.io/v1",
345345
"objects": [
346346
{
347347
"kind": "Service", "apiVersion": "v1",

‎test/templates/testdata/guestbook.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"kind": "Template",
3-
"apiVersion": "v1",
3+
"apiVersion": "template.openshift.io/v1",
44
"metadata": {
55
"name": "guestbook-example",
66
"creationTimestamp": null,

‎test/templates/testdata/guestbook_list.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"kind": "Template",
3-
"apiVersion": "v1",
3+
"apiVersion": "template.openshift.io/v1",
44
"metadata": {
55
"name": "guestbook-example",
66
"creationTimestamp": null,

0 commit comments

Comments
 (0)
Please sign in to comment.