-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
duplicate detection for add commands (#564)
* duplicate detection for add commands * fix typos + some doc
- Loading branch information
1 parent
2f62868
commit 3c49136
Showing
17 changed files
with
347 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
cmds/ocm/commands/ocmcmds/components/add/testdata/component-dup-ref.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: ocm.software/demo/test | ||
version: 1.0.0 | ||
provider: | ||
name: ocm.software | ||
labels: | ||
- name: city | ||
value: Karlsruhe | ||
labels: | ||
- name: purpose | ||
value: test | ||
|
||
resources: | ||
- name: text | ||
type: PlainText | ||
labels: | ||
- name: city | ||
value: Karlsruhe | ||
merge: | ||
algorithm: default | ||
config: | ||
overwrite: inbound | ||
input: | ||
type: file | ||
path: testdata | ||
- name: data | ||
type: PlainText | ||
input: | ||
type: binary | ||
data: IXN0cmluZ2RhdGE= | ||
|
||
componentReferences: | ||
- name: ref | ||
version: v1 | ||
componentName: github.com/mandelsoft/test2 | ||
- name: ref | ||
version: v1 | ||
componentName: github.com/mandelsoft/test3 | ||
|
39 changes: 39 additions & 0 deletions
39
cmds/ocm/commands/ocmcmds/components/add/testdata/component-dup-res.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: ocm.software/demo/test | ||
version: 1.0.0 | ||
provider: | ||
name: ocm.software | ||
labels: | ||
- name: city | ||
value: Karlsruhe | ||
labels: | ||
- name: purpose | ||
value: test | ||
|
||
resources: | ||
- name: text | ||
type: PlainText | ||
labels: | ||
- name: city | ||
value: Karlsruhe | ||
merge: | ||
algorithm: default | ||
config: | ||
overwrite: inbound | ||
input: | ||
type: file | ||
path: testdata | ||
- name: data | ||
type: PlainText | ||
input: | ||
type: binary | ||
data: IXN0cmluZ2RhdGE= | ||
- name: text | ||
type: PlainText | ||
input: | ||
type: binary | ||
data: IXN0cmluZ2RhdGE= | ||
|
||
componentReferences: | ||
- name: ref | ||
version: v1 | ||
componentName: github.com/mandelsoft/test2 |
46 changes: 46 additions & 0 deletions
46
cmds/ocm/commands/ocmcmds/components/add/testdata/component-dup-src.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: ocm.software/demo/test | ||
version: 1.0.0 | ||
provider: | ||
name: ocm.software | ||
labels: | ||
- name: city | ||
value: Karlsruhe | ||
labels: | ||
- name: purpose | ||
value: test | ||
|
||
sources: | ||
- name: source | ||
type: DirectoryTree | ||
input: | ||
type: binary | ||
data: IXN0cmluZ2RhdGE= | ||
- name: source | ||
type: DirectoryTree | ||
input: | ||
type: binary | ||
data: IXN0cmluZ2RhdGE= | ||
|
||
resources: | ||
- name: text | ||
type: PlainText | ||
labels: | ||
- name: city | ||
value: Karlsruhe | ||
merge: | ||
algorithm: default | ||
config: | ||
overwrite: inbound | ||
input: | ||
type: file | ||
path: testdata | ||
- name: data | ||
type: PlainText | ||
input: | ||
type: binary | ||
data: IXN0cmluZ2RhdGE= | ||
|
||
componentReferences: | ||
- name: ref | ||
version: v1 | ||
componentName: github.com/mandelsoft/test2 |
Oops, something went wrong.