forked from apache/camel-k
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move KameletRepositorySpec to common types
The spec may be used by other types in the future, too
- Loading branch information
1 parent
a772b08
commit 52d1844
Showing
16 changed files
with
88 additions
and
88 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
pkg/client/camel/applyconfiguration/camel/v1/integrationplatformkameletspec.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
12 changes: 6 additions & 6 deletions
12
...tegrationplatformkameletrepositoryspec.go → ...uration/camel/v1/kameletrepositoryspec.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,7 +67,7 @@ func TestKameletAddRepoNonExistingFlag(t *testing.T) { | |
} | ||
|
||
func TestKameletAddRepoInvalidRepositoryURI(t *testing.T) { | ||
repositories := []v1.IntegrationPlatformKameletRepositorySpec{} | ||
repositories := []v1.KameletRepositorySpec{} | ||
assert.NotNil(t, checkURI("foo", repositories)) | ||
assert.NotNil(t, checkURI("github", repositories)) | ||
assert.NotNil(t, checkURI("github:", repositories)) | ||
|
@@ -76,15 +76,15 @@ func TestKameletAddRepoInvalidRepositoryURI(t *testing.T) { | |
} | ||
|
||
func TestKameletAddRepoValidRepositoryURI(t *testing.T) { | ||
repositories := []v1.IntegrationPlatformKameletRepositorySpec{} | ||
repositories := []v1.KameletRepositorySpec{} | ||
assert.Nil(t, checkURI("github:foo/bar", repositories)) | ||
assert.Nil(t, checkURI("github:foo/bar/some/path", repositories)) | ||
assert.Nil(t, checkURI("github:foo/[email protected]", repositories)) | ||
assert.Nil(t, checkURI("github:foo/bar/some/[email protected]", repositories)) | ||
} | ||
|
||
func TestKameletAddRepoDuplicateRepositoryURI(t *testing.T) { | ||
repositories := []v1.IntegrationPlatformKameletRepositorySpec{{URI: "github:foo/bar"}} | ||
repositories := []v1.KameletRepositorySpec{{URI: "github:foo/bar"}} | ||
assert.NotNil(t, checkURI("github:foo/bar", repositories)) | ||
assert.Nil(t, checkURI("github:foo/bar2", repositories)) | ||
} |
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
Oops, something went wrong.