Skip to content

Commit

Permalink
Fix apache#1333: update failing tests and re-enable matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaferraro committed Mar 19, 2020
1 parent 68d4990 commit 4e0b8df
Show file tree
Hide file tree
Showing 6 changed files with 118 additions and 18 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/knative.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:

strategy:
matrix:
#publisher: ["Buildah", "Spectrum"]
publisher: ["Buildah"]
publisher: ["Buildah", "Spectrum"]
#publisher: ["Buildah"]
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -59,6 +59,7 @@ jobs:
REGISTRY_CONTAINER_NAME='kind-registry'
REGISTRY_PORT='5000'
docker run -d -p "${REGISTRY_PORT}:5000" --restart=always --name "${REGISTRY_CONTAINER_NAME}" registry:2
REGISTRY_IP=$(docker inspect --format '{{.NetworkSettings.IPAddress }}' "${REGISTRY_CONTAINER_NAME}")
cat <<EOF | kind create cluster --config=-
kind: Cluster
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/kubernetes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:

strategy:
matrix:
#publisher: ["Buildah", "Spectrum"]
publisher: ["Buildah"]
publisher: ["Buildah", "Spectrum"]
#publisher: ["Buildah"]

steps:
- name: Checkout code
Expand All @@ -59,10 +59,7 @@ jobs:
CLUSTER_NAME="kind"
REGISTRY_CONTAINER_NAME='kind-registry'
REGISTRY_PORT='5000'
REGISTRY_VOLUME=/mnt/registry-data
sudo mkdir $REGISTRY_VOLUME
sudo chmod a+rw $REGISTRY_VOLUME
docker run -d -p "${REGISTRY_PORT}:5000" --restart=always -v $REGISTRY_VOLUME:/var/lib/registry --name "${REGISTRY_CONTAINER_NAME}" registry:2
docker run -d -p "${REGISTRY_PORT}:5000" --restart=always --name "${REGISTRY_CONTAINER_NAME}" registry:2
REGISTRY_IP=$(docker inspect --format '{{.NetworkSettings.IPAddress }}' "${REGISTRY_CONTAINER_NAME}")
cat <<EOF | kind create cluster --config=-
Expand Down
4 changes: 2 additions & 2 deletions deploy/camel-catalog-1.2.0-SNAPSHOT-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ spec:
applicationClass: org.apache.camel.k.main.Application
metadata:
camel.version: 3.1.0
quarkus.version: 1.3.0.Alpha2
camel-quarkus.version: 1.0.0-M4
quarkus.version: 1.3.0.Final
camel-quarkus.version: 1.0.0-M5
dependencies:
- groupId: org.apache.camel.k
artifactId: camel-k-runtime-main
Expand Down
102 changes: 100 additions & 2 deletions deploy/camel-catalog-1.2.0-SNAPSHOT-quarkus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ spec:
applicationClass: io.quarkus.runner.GeneratedMain
metadata:
camel.version: 3.1.0
quarkus.version: 1.3.0.Alpha2
camel-quarkus.version: 1.0.0-M4
quarkus.version: 1.3.0.Final
camel-quarkus.version: 1.0.0-M5
dependencies:
- groupId: org.apache.camel.k
artifactId: camel-k-runtime-quarkus
Expand Down Expand Up @@ -156,6 +156,13 @@ spec:
- zipfile
javaTypes:
- org.apache.camel.dataformat.zipfile.ZipFileDataFormat
camel-quarkus-johnzon:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-johnzon
dataformats:
- json-johnzon
javaTypes:
- org.apache.camel.component.johnzon.JohnzonDataFormat
camel-quarkus-netty:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-netty
Expand Down Expand Up @@ -430,6 +437,13 @@ spec:
- org.apache.camel.component.bean.BeanComponent
- org.apache.camel.component.beanclass.ClassComponent
- org.apache.camel.language.bean.BeanLanguage
camel-quarkus-jacksonxml:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-jacksonxml
dataformats:
- jacksonxml
javaTypes:
- org.apache.camel.component.jacksonxml.JacksonXMLDataFormat
camel-quarkus-aws-translate:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-aws-translate
Expand All @@ -439,6 +453,15 @@ spec:
passive: false
javaTypes:
- org.apache.camel.component.aws.translate.TranslateComponent
camel-quarkus-mustache:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-mustache
schemes:
- id: mustache
http: false
passive: false
javaTypes:
- org.apache.camel.component.mustache.MustacheComponent
camel-quarkus-mail:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-mail
Expand Down Expand Up @@ -509,6 +532,15 @@ spec:
passive: true
javaTypes:
- org.apache.camel.component.seda.SedaComponent
camel-quarkus-graphql:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-graphql
schemes:
- id: graphql
http: false
passive: false
javaTypes:
- org.apache.camel.component.graphql.GraphqlComponent
camel-quarkus-gson:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-gson
Expand Down Expand Up @@ -564,6 +596,13 @@ spec:
javaTypes:
- org.apache.camel.component.sql.SqlComponent
- org.apache.camel.component.sql.stored.SqlStoredComponent
camel-quarkus-ical:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-ical
dataformats:
- ical
javaTypes:
- org.apache.camel.component.ical.ICalDataFormat
camel-quarkus-box:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-box
Expand All @@ -582,6 +621,13 @@ spec:
passive: false
javaTypes:
- org.apache.camel.component.mongodb.MongoDbComponent
camel-quarkus-xml-jaxp:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-xml-jaxp
languages:
- xtokenize
javaTypes:
- org.apache.camel.language.xtokenizer.XMLTokenizeLanguage
camel-quarkus-microprofile-metrics:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-microprofile-metrics
Expand All @@ -600,6 +646,24 @@ spec:
passive: false
javaTypes:
- org.apache.camel.component.infinispan.InfinispanComponent
camel-quarkus-activemq:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-activemq
schemes:
- id: activemq
http: false
passive: false
javaTypes:
- org.apache.camel.component.activemq.ActiveMQComponent
camel-quarkus-file-watch:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-file-watch
schemes:
- id: file-watch
http: false
passive: false
javaTypes:
- org.apache.camel.component.file.watch.FileWatchComponent
camel-quarkus-telegram:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-telegram
Expand All @@ -609,6 +673,24 @@ spec:
passive: false
javaTypes:
- org.apache.camel.component.telegram.TelegramComponent
camel-quarkus-ref:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-ref
schemes:
- id: ref
http: false
passive: true
javaTypes:
- org.apache.camel.component.ref.RefComponent
camel-quarkus-jms:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-jms
schemes:
- id: jms
http: false
passive: false
javaTypes:
- org.apache.camel.component.jms.JmsComponent
camel-quarkus-rest:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-rest
Expand Down Expand Up @@ -720,6 +802,13 @@ spec:
javaTypes:
- org.apache.camel.component.aws.kinesis.KinesisComponent
- org.apache.camel.component.aws.firehose.KinesisFirehoseComponent
camel-quarkus-jaxb:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-jaxb
dataformats:
- jaxb
javaTypes:
- org.apache.camel.converter.jaxb.JaxbDataFormat
camel-quarkus-aws-kms:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-aws-kms
Expand All @@ -729,6 +818,15 @@ spec:
passive: false
javaTypes:
- org.apache.camel.component.aws.kms.KMSComponent
camel-quarkus-xstream:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-xstream
dataformats:
- json-xstream
- xstream
javaTypes:
- org.apache.camel.dataformat.xstream.JsonDataFormat
- org.apache.camel.dataformat.xstream.XStreamDataFormat
camel-quarkus-timer:
groupId: org.apache.camel.quarkus
artifactId: camel-quarkus-timer
Expand Down
8 changes: 4 additions & 4 deletions deploy/resources.go

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions e2e/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ limitations under the License.
package e2e

import (
"os"
"testing"

. "github.com/onsi/gomega"
Expand Down Expand Up @@ -92,13 +93,16 @@ func TestRunSimpleExamples(t *testing.T) {
RegisterTestingT(t)
Expect(kamel("run", "-n", ns, "--name", "yaml-quarkus", "files/yaml.yaml", "-t", "quarkus.enabled=true").Execute()).Should(BeNil())
Eventually(integrationPodPhase(ns, "yaml-quarkus"), testTimeoutMedium).Should(Equal(v1.PodRunning))
Eventually(integrationLogs(ns, "yaml-quarkus"), testTimeoutShort).Should(ContainSubstring("running on Quarkus"))
Eventually(integrationLogs(ns, "yaml-quarkus"), testTimeoutShort).Should(ContainSubstring("powered by Quarkus"))
Eventually(integrationLogs(ns, "yaml-quarkus"), testTimeoutShort).Should(ContainSubstring("Magicstring!"))
Expect(kamel("delete", "--all", "-n", ns).Execute()).Should(BeNil())
})

t.Run("run polyglot", func(t *testing.T) {
t.SkipNow() // Test skipping it to make CI pass
if os.Getenv("KAMEL_INSTALL_BUILD_PUBLISH_STRATEGY") == "Buildah" {
t.Skip("Apparently this test require too much CI resources with Buildah")
return
}
RegisterTestingT(t)
Expect(kamel("run", "-n", ns, "--name", "polyglot", "files/js-polyglot.js", "files/yaml-polyglot.yaml").Execute()).Should(BeNil())
Eventually(integrationPodPhase(ns, "polyglot"), testTimeoutMedium).Should(Equal(v1.PodRunning))
Expand Down

0 comments on commit 4e0b8df

Please sign in to comment.