Skip to content

Commit

Permalink
Move parent devfiles in specific directories (#6818)
Browse files Browse the repository at this point in the history
  • Loading branch information
feloy authored May 16, 2023
1 parent a6da3e0 commit 67709ff
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pkg/libdevfile/testdata/child-devfile-commands-only.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ schemaVersion: 2.1.0
metadata:
name: child
parent:
uri: parent/parent-devfile-components-only.yaml
uri: parent/components-only/parent-devfile-components-only.yaml
commands:
- exec:
commandLine: GOCACHE=${PROJECT_SOURCE}/.cache go build main.go
Expand Down
2 changes: 1 addition & 1 deletion pkg/libdevfile/testdata/child-devfile-complete.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ metadata:
name: my-go-app
schemaVersion: 2.1.0
parent:
uri: parent/parent-devfile-empty.yaml
uri: parent/empty/parent-devfile-empty.yaml
2 changes: 1 addition & 1 deletion pkg/libdevfile/testdata/child-devfile-components-only.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ schemaVersion: 2.1.0
metadata:
name: child
parent:
uri: "parent/parent-devfile-commands-only.yaml"
uri: "parent/commands-only/parent-devfile-commands-only.yaml"
components:
- container:
endpoints:
Expand Down
2 changes: 1 addition & 1 deletion pkg/libdevfile/testdata/child-devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ schemaVersion: 2.1.0
metadata:
name: child
parent:
uri: "parent/parent-devfile.yaml"
uri: "parent/complete/parent-devfile.yaml"
6 changes: 3 additions & 3 deletions pkg/libdevfile/uris_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ func TestGetReferencedLocalFiles(t *testing.T) {
},
wantResult: []string{
"manifest.yaml", // TODO should be parent/manifest.yaml (see https://github.com/devfile/api/issues/904)
"parent/parent-devfile.yaml",
"parent/complete/parent-devfile.yaml",
},
wantErr: false,
},
Expand All @@ -311,7 +311,7 @@ func TestGetReferencedLocalFiles(t *testing.T) {
},
wantResult: []string{
"manifest.yaml", // TODO should be parent/manifest.yaml (see https://github.com/devfile/api/issues/904)
"parent/parent-devfile-commands-only.yaml",
"parent/commands-only/parent-devfile-commands-only.yaml",
},
wantErr: false,
},
Expand All @@ -328,7 +328,7 @@ func TestGetReferencedLocalFiles(t *testing.T) {
},
wantResult: []string{
"manifest.yaml", // TODO should be parent/manifest.yaml (see https://github.com/devfile/api/issues/904)
"parent/parent-devfile-components-only.yaml",
"parent/components-only/parent-devfile-components-only.yaml",
},
wantErr: false,
},
Expand Down

0 comments on commit 67709ff

Please sign in to comment.