Adding test case.
@@ -83,7 +83,7 @@ const YAMLInDepthChannel = `
uri: knative:endpoint/service
`
-const YAMLWiretapEIP = `
+const YAMLWireTapKnativeEIP = `
- from:
uri: knative:channel/mychannel
parameters:
@@ -93,6 +93,16 @@ const YAMLWiretapEIP = `
uri: knative:channel/mychannel
`
+const YAMLWireTapJmsEIP = `
+- from:
+ uri: knative:channel/mychannel
+ parameters:
+ period: "1000"
+ steps:
+ - wireTap:
+ uri: jms:queue:foo
+`
+
func TestYAMLDependencies(t *testing.T) {
tests := []struct {
name string
@@ -136,13 +146,21 @@ func TestYAMLDependencies(t *testing.T) {
},
},
{
- name: "wireTap",
- source: YAMLWiretapEIP,
+ name: "wire-tap-knative",
+ source: YAMLWireTapKnativeEIP,
dependencies: []string{
`mvn:org.apache.camel.k:camel-k-knative-producer`,
`mvn:org.apache.camel.k:camel-k-knative-consumer`,
},
},
+ {
+ name: "wire-tap-jms",
+ source: YAMLWireTapJmsEIP,
+ dependencies: []string{
+ `mvn:org.apache.camel.k:camel-k-knative-consumer`,
+ `camel:jms`,
+ },
+ },
}
for i := range tests {
test := tests[i]
