File tree 2 files changed +5
-5
lines changed
tests/v2/devfiles/samples
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ import (
46
46
"sigs.k8s.io/yaml"
47
47
)
48
48
49
- const schemaVersion = string (data .APISchemaVersion220 )
49
+ const schemaVersion = string (data .APISchemaVersion222 )
50
50
51
51
var isTrue bool = true
52
52
var isFalse bool = false
@@ -3275,7 +3275,7 @@ type setFields struct {
3275
3275
func Test_ParseDevfileParentFromData (t * testing.T ) {
3276
3276
3277
3277
//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
3279
3279
metadata:
3280
3280
name: nodejs
3281
3281
version: 2.1.1
@@ -4166,7 +4166,7 @@ func Test_parseFromURI(t *testing.T) {
4166
4166
},
4167
4167
}
4168
4168
rawContent := `
4169
- schemaVersion: 2.1.0
4169
+ schemaVersion: 2.2.2
4170
4170
metadata:
4171
4171
name: devfile
4172
4172
version: 2.0.0
@@ -4317,7 +4317,7 @@ func Test_parseFromURI_GitProviders(t *testing.T) {
4317
4317
invalidRevision = "invalid-revision"
4318
4318
)
4319
4319
4320
- minimalDevfileContent := fmt .Sprintf ("schemaVersion: 2.2.0 \n metadata:\n name: devfile" )
4320
+ minimalDevfileContent := fmt .Sprintf ("schemaVersion: 2.2.2 \n metadata:\n name: devfile" )
4321
4321
server := httptest .NewServer (http .HandlerFunc (func (rw http.ResponseWriter , req * http.Request ) {
4322
4322
_ , err := rw .Write ([]byte (minimalDevfileContent ))
4323
4323
if err != nil {
Original file line number Diff line number Diff line change 1
- schemaVersion : 2.1.0
1
+ schemaVersion : 2.2.2
2
2
parent :
3
3
id : nodejs
4
4
registryUrl : " https://registry.stage.devfile.io"
You can’t perform that action at this time.
0 commit comments