Skip to content

Commit 267aa8b

Browse files
revert schema versions for testing older features
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
1 parent f707324 commit 267aa8b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/devfile/parse_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func TestParseDevfileAndValidate(t *testing.T) {
4646

4747
devfileStruct := schema.DevWorkspaceTemplate{
4848
TypeMeta: metav1.TypeMeta{
49-
APIVersion: "2.3.0",
49+
APIVersion: "2.1.0",
5050
},
5151
Spec: schema.DevWorkspaceTemplateSpec{
5252
DevWorkspaceTemplateSpecContent: schema.DevWorkspaceTemplateSpecContent{
@@ -152,12 +152,12 @@ metadata:
152152
tags:
153153
- Go
154154
version: 1.0.0
155-
schemaVersion: 2.3.0
155+
schemaVersion: 2.2.2
156156
`
157157

158158
devfileContentWithVariable := devfileContent + `variables:
159159
PARAMS: foo`
160-
devfileContentWithParent := `schemaVersion: 2.3.0
160+
devfileContentWithParent := `schemaVersion: 2.2.2
161161
parent:
162162
id: devfile1
163163
registryUrl: http://127.0.0.1:8080/registry
@@ -167,11 +167,11 @@ parent:
167167
id: devfile1
168168
registryUrl: http://127.0.0.1:8080/registry
169169
`
170-
devfileContentWithParentNoRegistry := `schemaVersion: 2.3.0
170+
devfileContentWithParentNoRegistry := `schemaVersion: 2.2.2
171171
parent:
172172
id: devfile1
173173
`
174-
devfileContentWithCRDParent := `schemaVersion: 2.3.0
174+
devfileContentWithCRDParent := `schemaVersion: 2.2.2
175175
parent:
176176
kubernetes:
177177
name: devfile1

0 commit comments

Comments
 (0)