Skip to content

Commit 33f2bee

Browse files
update schema version to 2.2.2 for nodejs test child devfiles (#213)
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
1 parent 0903393 commit 33f2bee

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pkg/devfile/parser/parse_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ import (
4646
"sigs.k8s.io/yaml"
4747
)
4848

49-
const schemaVersion = string(data.APISchemaVersion220)
49+
const schemaVersion = string(data.APISchemaVersion222)
5050

5151
var isTrue bool = true
5252
var isFalse bool = false
@@ -3275,7 +3275,7 @@ type setFields struct {
32753275
func Test_ParseDevfileParentFromData(t *testing.T) {
32763276

32773277
//mainDevfile is based on the nodejs basic sample which has a parent reference to the nodejs stack: https://registry.devfile.io/devfiles/nodejs
3278-
mainDevfile := `schemaVersion: 2.2.0
3278+
mainDevfile := `schemaVersion: 2.2.2
32793279
metadata:
32803280
name: nodejs
32813281
version: 2.1.1
@@ -4166,7 +4166,7 @@ func Test_parseFromURI(t *testing.T) {
41664166
},
41674167
}
41684168
rawContent := `
4169-
schemaVersion: 2.1.0
4169+
schemaVersion: 2.2.2
41704170
metadata:
41714171
name: devfile
41724172
version: 2.0.0
@@ -4317,7 +4317,7 @@ func Test_parseFromURI_GitProviders(t *testing.T) {
43174317
invalidRevision = "invalid-revision"
43184318
)
43194319

4320-
minimalDevfileContent := fmt.Sprintf("schemaVersion: 2.2.0\nmetadata:\n name: devfile")
4320+
minimalDevfileContent := fmt.Sprintf("schemaVersion: 2.2.2\nmetadata:\n name: devfile")
43214321
server := httptest.NewServer(http.HandlerFunc(func(rw http.ResponseWriter, req *http.Request) {
43224322
_, err := rw.Write([]byte(minimalDevfileContent))
43234323
if err != nil {

tests/v2/devfiles/samples/Test_Parent_RegistryURL.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
schemaVersion: 2.1.0
1+
schemaVersion: 2.2.2
22
parent:
33
id: nodejs
44
registryUrl: "https://registry.stage.devfile.io"

0 commit comments

Comments
 (0)