Skip to content

Commit

Permalink
chore(release): restore catalog naming and fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaferraro committed Nov 13, 2019
1 parent aed5b16 commit 9b37384
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deploy/camel-catalog-quarkus-0.3.1-1.0.7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
apiVersion: camel.apache.org/v1alpha1
kind: CamelCatalog
metadata:
name: camel-catalog-quarkus-0.3.1-1.0.7
name: camel-quarkus-catalog-0.3.1-1.0.7
labels:
app: camel-k
camel.apache.org/catalog.version: 3.0.0-RC3
Expand Down
2 changes: 1 addition & 1 deletion deploy/resources.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion pkg/controller/integrationplatform/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,13 @@ func TestCreate(t *testing.T) {
n := strings.TrimSuffix(k, ".yaml")
n = strings.ToLower(n)

if c.Name == n {
name := c.Name
// TODO can be safely removed when catalog naming is fixed in runtime maven plugin
if strings.HasPrefix(name,"camel-quarkus-catalog") {
name = "camel-catalog-quarkus" + strings.TrimPrefix(name, "camel-quarkus-catalog")
}

if name == n {
found = true
}
}
Expand Down

0 comments on commit 9b37384

Please sign in to comment.