You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pp...@apache.org on 2020/10/29 13:55:03 UTC
[camel-quarkus] branch master updated: Zendesk native support
This is an automated email from the ASF dual-hosted git repository.
ppalaga pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/master by this push:
new 1f0c189 Zendesk native support
1f0c189 is described below
commit 1f0c189454ec899a36cb0c6c651bca2dff775b01
Author: James Netherton <ja...@gmail.com>
AuthorDate: Thu Oct 29 10:01:27 2020 +0000
Zendesk native support
Fixes #1613
---
.../ROOT/pages/reference/extensions/zendesk.adoc | 14 ++-
.../partials/reference/components/zendesk.adoc | 6 +-
extensions-jvm/pom.xml | 1 -
extensions-jvm/zendesk/integration-test/pom.xml | 78 ------------
.../component/zendesk/it/ZendeskResource.java | 51 --------
extensions/pom.xml | 1 +
.../zendesk/deployment/pom.xml | 8 ++
.../zendesk/deployment/ZendeskProcessor.java | 36 +++---
{extensions-jvm => extensions}/zendesk/pom.xml | 1 -
.../zendesk/runtime/pom.xml | 9 ++
.../main/resources/META-INF/quarkus-extension.yaml | 3 +-
integration-tests/pom.xml | 1 +
integration-tests/zendesk/README.adoc | 22 ++++
integration-tests/zendesk/pom.xml | 133 +++++++++++++++++++++
.../component/zendesk/it/ZendeskResource.java | 69 +++++++++++
.../quarkus/component/zendesk/it/ZendeskIT.java | 16 +--
.../quarkus/component/zendesk/it/ZendeskTest.java | 66 ++++++++++
.../component/zendesk/it/ZendeskTestResource.java | 53 ++++++++
.../mappings/zendeskConfirmTicketDelete.json | 40 +++++++
.../resources/mappings/zendeskCreateTicket.json | 46 +++++++
.../resources/mappings/zendeskDeleteTicket.json | 37 ++++++
.../test/resources/mappings/zendeskGetTicket.json | 43 +++++++
tooling/scripts/test-categories.yaml | 3 +-
23 files changed, 569 insertions(+), 168 deletions(-)
diff --git a/docs/modules/ROOT/pages/reference/extensions/zendesk.adoc b/docs/modules/ROOT/pages/reference/extensions/zendesk.adoc
index 24c6c25..f482d88 100644
--- a/docs/modules/ROOT/pages/reference/extensions/zendesk.adoc
+++ b/docs/modules/ROOT/pages/reference/extensions/zendesk.adoc
@@ -2,15 +2,15 @@
// This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page
= Zendesk
:cq-artifact-id: camel-quarkus-zendesk
-:cq-native-supported: false
-:cq-status: Preview
+:cq-native-supported: true
+:cq-status: Stable
:cq-description: Manage Zendesk tickets, users, organizations, etc.
:cq-deprecated: false
:cq-jvm-since: 1.1.0
-:cq-native-since: n/a
+:cq-native-since: 1.4.0
[.badges]
-[.badge-key]##JVM since##[.badge-supported]##1.1.0## [.badge-key]##Native##[.badge-unsupported]##unsupported##
+[.badge-key]##JVM since##[.badge-supported]##1.1.0## [.badge-key]##Native since##[.badge-supported]##1.4.0##
Manage Zendesk tickets, users, organizations, etc.
@@ -31,3 +31,9 @@ Please refer to the above link for usage and configuration details.
----
Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications.
+
+== SSL in native mode
+
+This extension auto-enables SSL support in native mode. Hence you do not need to add
+`quarkus.ssl.native=true` to your `application.properties` yourself. See also
+https://quarkus.io/guides/native-and-ssl[Quarkus SSL guide].
diff --git a/docs/modules/ROOT/partials/reference/components/zendesk.adoc b/docs/modules/ROOT/partials/reference/components/zendesk.adoc
index be8eb15..6b26db5 100644
--- a/docs/modules/ROOT/partials/reference/components/zendesk.adoc
+++ b/docs/modules/ROOT/partials/reference/components/zendesk.adoc
@@ -2,11 +2,11 @@
// This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page
:cq-artifact-id: camel-quarkus-zendesk
:cq-artifact-id-base: zendesk
-:cq-native-supported: false
-:cq-status: Preview
+:cq-native-supported: true
+:cq-status: Stable
:cq-deprecated: false
:cq-jvm-since: 1.1.0
-:cq-native-since: n/a
+:cq-native-since: 1.4.0
:cq-camel-part-name: zendesk
:cq-camel-part-title: Zendesk
:cq-camel-part-description: Manage Zendesk tickets, users, organizations, etc.
diff --git a/extensions-jvm/pom.xml b/extensions-jvm/pom.xml
index 0723b11..65e7561 100644
--- a/extensions-jvm/pom.xml
+++ b/extensions-jvm/pom.xml
@@ -144,7 +144,6 @@
<module>xmpp</module>
<module>xslt-saxon</module>
<module>yammer</module>
- <module>zendesk</module>
<module>zookeeper</module>
<module>zookeeper-master</module>
</modules>
diff --git a/extensions-jvm/zendesk/integration-test/pom.xml b/extensions-jvm/zendesk/integration-test/pom.xml
deleted file mode 100644
index ae5128e..0000000
--- a/extensions-jvm/zendesk/integration-test/pom.xml
+++ /dev/null
@@ -1,78 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.apache.camel.quarkus</groupId>
- <artifactId>camel-quarkus-build-parent-it</artifactId>
- <version>1.4.0-SNAPSHOT</version>
- <relativePath>../../../poms/build-parent-it/pom.xml</relativePath>
- </parent>
-
- <artifactId>camel-quarkus-zendesk-integration-test</artifactId>
- <name>Camel Quarkus :: Zendesk :: Integration Test</name>
- <description>Integration tests for Camel Quarkus Zendesk extension</description>
-
- <properties>
- <!-- mvnd, a.k.a. Maven Daemon: https://github.com/mvndaemon/mvnd -->
- <!-- The following rule tells mvnd to build the listed deployment modules before this module. -->
- <!-- This is important because mvnd builds modules in parallel by default. The deployment modules are not -->
- <!-- explicit dependencies of this module in the Maven sense, although they are required by the Quarkus Maven plugin. -->
- <!-- Please update the rule whenever you change the dependencies of this module by running -->
- <!-- mvn process-resources -Pformat from the root directory -->
- <mvnd.builder.rule>camel-quarkus-support-policy-deployment,camel-quarkus-zendesk-deployment</mvnd.builder.rule>
- </properties>
-
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>org.apache.camel.quarkus</groupId>
- <artifactId>camel-quarkus-bom-test</artifactId>
- <version>${project.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- </dependencies>
- </dependencyManagement>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.camel.quarkus</groupId>
- <artifactId>camel-quarkus-zendesk</artifactId>
- </dependency>
- <dependency>
- <groupId>io.quarkus</groupId>
- <artifactId>quarkus-resteasy</artifactId>
- </dependency>
-
- <!-- test dependencies -->
- <dependency>
- <groupId>io.quarkus</groupId>
- <artifactId>quarkus-junit5</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>io.rest-assured</groupId>
- <artifactId>rest-assured</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
-</project>
diff --git a/extensions-jvm/zendesk/integration-test/src/main/java/org/apache/camel/quarkus/component/zendesk/it/ZendeskResource.java b/extensions-jvm/zendesk/integration-test/src/main/java/org/apache/camel/quarkus/component/zendesk/it/ZendeskResource.java
deleted file mode 100644
index 34724c8..0000000
--- a/extensions-jvm/zendesk/integration-test/src/main/java/org/apache/camel/quarkus/component/zendesk/it/ZendeskResource.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.camel.quarkus.component.zendesk.it;
-
-import javax.enterprise.context.ApplicationScoped;
-import javax.inject.Inject;
-import javax.ws.rs.GET;
-import javax.ws.rs.Path;
-import javax.ws.rs.Produces;
-import javax.ws.rs.core.MediaType;
-import javax.ws.rs.core.Response;
-
-import org.apache.camel.CamelContext;
-import org.jboss.logging.Logger;
-
-@Path("/zendesk")
-@ApplicationScoped
-public class ZendeskResource {
-
- private static final Logger LOG = Logger.getLogger(ZendeskResource.class);
-
- private static final String COMPONENT_ZENDESK = "zendesk";
- @Inject
- CamelContext context;
-
- @Path("/load/component/zendesk")
- @GET
- @Produces(MediaType.TEXT_PLAIN)
- public Response loadComponentZendesk() throws Exception {
- /* This is an autogenerated test */
- if (context.getComponent(COMPONENT_ZENDESK) != null) {
- return Response.ok().build();
- }
- LOG.warnf("Could not load [%s] from the Camel context", COMPONENT_ZENDESK);
- return Response.status(500, COMPONENT_ZENDESK + " could not be loaded from the Camel context").build();
- }
-}
diff --git a/extensions/pom.xml b/extensions/pom.xml
index d6acf35..51fb2b1 100644
--- a/extensions/pom.xml
+++ b/extensions/pom.xml
@@ -209,6 +209,7 @@
<module>xpath</module>
<module>xslt</module>
<module>xstream</module>
+ <module>zendesk</module>
<module>zip-deflater</module>
<module>zipfile</module>
</modules>
diff --git a/extensions-jvm/zendesk/deployment/pom.xml b/extensions/zendesk/deployment/pom.xml
similarity index 88%
rename from extensions-jvm/zendesk/deployment/pom.xml
rename to extensions/zendesk/deployment/pom.xml
index cc6c5b7..1e04a65 100644
--- a/extensions-jvm/zendesk/deployment/pom.xml
+++ b/extensions/zendesk/deployment/pom.xml
@@ -31,6 +31,14 @@
<dependencies>
<dependency>
+ <groupId>io.quarkus</groupId>
+ <artifactId>quarkus-jackson-deployment</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-support-ahc-deployment</artifactId>
+ </dependency>
+ <dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-core-deployment</artifactId>
</dependency>
diff --git a/extensions-jvm/zendesk/deployment/src/main/java/org/apache/camel/quarkus/component/zendesk/deployment/ZendeskProcessor.java b/extensions/zendesk/deployment/src/main/java/org/apache/camel/quarkus/component/zendesk/deployment/ZendeskProcessor.java
similarity index 52%
rename from extensions-jvm/zendesk/deployment/src/main/java/org/apache/camel/quarkus/component/zendesk/deployment/ZendeskProcessor.java
rename to extensions/zendesk/deployment/src/main/java/org/apache/camel/quarkus/component/zendesk/deployment/ZendeskProcessor.java
index c498a4f..1ef36ce 100644
--- a/extensions-jvm/zendesk/deployment/src/main/java/org/apache/camel/quarkus/component/zendesk/deployment/ZendeskProcessor.java
+++ b/extensions/zendesk/deployment/src/main/java/org/apache/camel/quarkus/component/zendesk/deployment/ZendeskProcessor.java
@@ -17,16 +17,15 @@
package org.apache.camel.quarkus.component.zendesk.deployment;
import io.quarkus.deployment.annotations.BuildStep;
-import io.quarkus.deployment.annotations.ExecutionTime;
-import io.quarkus.deployment.annotations.Record;
+import io.quarkus.deployment.builditem.AdditionalApplicationArchiveMarkerBuildItem;
+import io.quarkus.deployment.builditem.CombinedIndexBuildItem;
import io.quarkus.deployment.builditem.FeatureBuildItem;
-import io.quarkus.deployment.pkg.steps.NativeBuild;
-import org.apache.camel.quarkus.core.JvmOnlyRecorder;
-import org.jboss.logging.Logger;
+import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
+import org.apache.camel.quarkus.core.deployment.util.CamelSupport;
+import org.jboss.jandex.IndexView;
class ZendeskProcessor {
- private static final Logger LOG = Logger.getLogger(ZendeskProcessor.class);
private static final String FEATURE = "camel-zendesk";
@BuildStep
@@ -34,13 +33,22 @@ class ZendeskProcessor {
return new FeatureBuildItem(FEATURE);
}
- /**
- * Remove this once this extension starts supporting the native mode.
- */
- @BuildStep(onlyIf = NativeBuild.class)
- @Record(value = ExecutionTime.RUNTIME_INIT)
- void warnJvmInNative(JvmOnlyRecorder recorder) {
- JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time
- recorder.warnJvmInNative(FEATURE); // warn at runtime
+ @BuildStep
+ AdditionalApplicationArchiveMarkerBuildItem boxArchiveMarker() {
+ return new AdditionalApplicationArchiveMarkerBuildItem("org/zendesk");
+ }
+
+ @BuildStep
+ ReflectiveClassBuildItem registerForReflection(CombinedIndexBuildItem combinedIndex) {
+ IndexView index = combinedIndex.getIndex();
+
+ String[] zendeskModelClasses = index.getKnownClasses()
+ .stream()
+ .filter(CamelSupport::isConcrete)
+ .map(classInfo -> classInfo.name().toString())
+ .filter(className -> className.startsWith("org.zendesk.client.v2.model"))
+ .toArray(String[]::new);
+
+ return new ReflectiveClassBuildItem(true, false, zendeskModelClasses);
}
}
diff --git a/extensions-jvm/zendesk/pom.xml b/extensions/zendesk/pom.xml
similarity index 97%
rename from extensions-jvm/zendesk/pom.xml
rename to extensions/zendesk/pom.xml
index 1dabab1..f64d45f 100644
--- a/extensions-jvm/zendesk/pom.xml
+++ b/extensions/zendesk/pom.xml
@@ -33,6 +33,5 @@
<modules>
<module>deployment</module>
<module>runtime</module>
- <module>integration-test</module>
</modules>
</project>
diff --git a/extensions-jvm/zendesk/runtime/pom.xml b/extensions/zendesk/runtime/pom.xml
similarity index 91%
rename from extensions-jvm/zendesk/runtime/pom.xml
rename to extensions/zendesk/runtime/pom.xml
index 854b19d..82e2233 100644
--- a/extensions-jvm/zendesk/runtime/pom.xml
+++ b/extensions/zendesk/runtime/pom.xml
@@ -32,6 +32,7 @@
<properties>
<camel.quarkus.jvmSince>1.1.0</camel.quarkus.jvmSince>
+ <camel.quarkus.nativeSince>1.4.0</camel.quarkus.nativeSince>
</properties>
<dependencyManagement>
@@ -48,6 +49,14 @@
<dependencies>
<dependency>
+ <groupId>io.quarkus</groupId>
+ <artifactId>quarkus-jackson</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-support-ahc</artifactId>
+ </dependency>
+ <dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-core</artifactId>
</dependency>
diff --git a/extensions-jvm/zendesk/runtime/src/main/resources/META-INF/quarkus-extension.yaml b/extensions/zendesk/runtime/src/main/resources/META-INF/quarkus-extension.yaml
similarity index 97%
rename from extensions-jvm/zendesk/runtime/src/main/resources/META-INF/quarkus-extension.yaml
rename to extensions/zendesk/runtime/src/main/resources/META-INF/quarkus-extension.yaml
index 8109db1..aea9a03 100644
--- a/extensions-jvm/zendesk/runtime/src/main/resources/META-INF/quarkus-extension.yaml
+++ b/extensions/zendesk/runtime/src/main/resources/META-INF/quarkus-extension.yaml
@@ -24,9 +24,8 @@
name: "Camel Zendesk"
description: "Manage Zendesk tickets, users, organizations, etc"
metadata:
- unlisted: true
guide: "https://camel.apache.org/camel-quarkus/latest/reference/extensions/zendesk.html"
categories:
- "integration"
status:
- - "preview"
+ - "stable"
diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml
index c9672b0..cb9f6f0 100644
--- a/integration-tests/pom.xml
+++ b/integration-tests/pom.xml
@@ -173,6 +173,7 @@
<module>websocket-jsr356</module>
<module>xml</module>
<module>xstream</module>
+ <module>zendesk</module>
</modules>
</project>
diff --git a/integration-tests/zendesk/README.adoc b/integration-tests/zendesk/README.adoc
new file mode 100644
index 0000000..7bf9c94
--- /dev/null
+++ b/integration-tests/zendesk/README.adoc
@@ -0,0 +1,22 @@
+== Camel Quarkus Zendesk Integration Tests
+
+By default the Zendesk integration tests use WireMock to stub the API interactions.
+
+To run the `camel-quarkus-zendesk` integration tests against the real API, you must first create a Zendesk account https://www.zendesk.com/register/.
+
+This https://develop.zendesk.com/hc/en-us/articles/360001068527[guide] explains how to enable API access and configure password authentication. Once done, set the following environment variables:
+
+[source,shell]
+----
+export ZENDESK_USERNAME=your-user-name
+export ZENDESK_PASSWORD=your-password
+export ZENDESK_SERVER_URL=your-unique-server-url
+----
+
+If the WireMock stub recordings need updating, then remove the existing files from `src/test/resources/mappings` and run tests with either:
+
+System property `-Dwiremock.record=true`
+
+Or
+
+Set environment variable `WIREMOCK_RECORD=true`
diff --git a/integration-tests/zendesk/pom.xml b/integration-tests/zendesk/pom.xml
new file mode 100644
index 0000000..4688fad
--- /dev/null
+++ b/integration-tests/zendesk/pom.xml
@@ -0,0 +1,133 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-integration-tests</artifactId>
+ <version>1.4.0-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>camel-quarkus-integration-test-zendesk</artifactId>
+ <name>Camel Quarkus :: Integration Tests :: Zendesk</name>
+ <description>Integration tests for Camel Quarkus Zendesk extension</description>
+
+ <dependencyManagement>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-bom-test</artifactId>
+ <version>${project.version}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+ </dependencies>
+ </dependencyManagement>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-main</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-zendesk</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>io.quarkus</groupId>
+ <artifactId>quarkus-resteasy</artifactId>
+ </dependency>
+
+ <!-- test dependencies -->
+ <dependency>
+ <groupId>io.quarkus</groupId>
+ <artifactId>quarkus-junit5</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>io.rest-assured</groupId>
+ <artifactId>rest-assured</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-integration-wiremock-support</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+ <!-- The following dependencies guarantee that this module is built after them. You can update them by running `mvn process-resources -Pformat -N` from the source tree root directory -->
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-main-deployment</artifactId>
+ <version>${project.version}</version>
+ <type>pom</type>
+ <scope>test</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>*</groupId>
+ <artifactId>*</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel.quarkus</groupId>
+ <artifactId>camel-quarkus-zendesk-deployment</artifactId>
+ <version>${project.version}</version>
+ <type>pom</type>
+ <scope>test</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>*</groupId>
+ <artifactId>*</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ </dependencies>
+
+ <profiles>
+ <profile>
+ <id>native</id>
+ <activation>
+ <property>
+ <name>native</name>
+ </property>
+ </activation>
+ <properties>
+ <quarkus.package.type>native</quarkus.package.type>
+ </properties>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-failsafe-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>integration-test</goal>
+ <goal>verify</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+</project>
diff --git a/integration-tests/zendesk/src/main/java/org/apache/camel/quarkus/component/zendesk/it/ZendeskResource.java b/integration-tests/zendesk/src/main/java/org/apache/camel/quarkus/component/zendesk/it/ZendeskResource.java
new file mode 100644
index 0000000..b3b5018
--- /dev/null
+++ b/integration-tests/zendesk/src/main/java/org/apache/camel/quarkus/component/zendesk/it/ZendeskResource.java
@@ -0,0 +1,69 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.quarkus.component.zendesk.it;
+
+import java.net.URI;
+
+import javax.inject.Inject;
+import javax.ws.rs.DELETE;
+import javax.ws.rs.GET;
+import javax.ws.rs.POST;
+import javax.ws.rs.Path;
+import javax.ws.rs.QueryParam;
+import javax.ws.rs.core.Response;
+
+import org.apache.camel.ProducerTemplate;
+import org.zendesk.client.v2.model.Ticket;
+
+@Path("/zendesk")
+public class ZendeskResource {
+
+ @Inject
+ ProducerTemplate producerTemplate;
+
+ @Path("/ticket")
+ @GET
+ public Response getTicket(@QueryParam("ticketId") long ticketId) {
+ Ticket result = producerTemplate.requestBody("zendesk:default/getTicket?inBody=id", ticketId, Ticket.class);
+ if (result != null) {
+ return Response.ok(result.getDescription()).build();
+ } else {
+ return Response.status(Response.Status.NOT_FOUND).build();
+ }
+ }
+
+ @Path("/ticket")
+ @POST
+ public Response createTicket(String description) throws Exception {
+ Ticket input = new Ticket();
+ input.setSubject("Camel Quarkus Test Subject");
+ input.setDescription(description);
+
+ Ticket created = producerTemplate.requestBody("zendesk:default/createTicket?inBody=ticket", input, Ticket.class);
+ return Response
+ .created(new URI("https://camel.apache.org/"))
+ .entity(created.getId())
+ .build();
+ }
+
+ @Path("/ticket")
+ @DELETE
+ public Response deleteTicket(@QueryParam("ticketId") long ticketId) {
+ producerTemplate.requestBody("zendesk:default/deleteTicket?inBody=id", ticketId, Ticket.class);
+ return Response.status(Response.Status.NO_CONTENT).build();
+ }
+}
diff --git a/extensions-jvm/zendesk/integration-test/src/test/java/org/apache/camel/quarkus/component/zendesk/it/ZendeskTest.java b/integration-tests/zendesk/src/test/java/org/apache/camel/quarkus/component/zendesk/it/ZendeskIT.java
similarity index 70%
rename from extensions-jvm/zendesk/integration-test/src/test/java/org/apache/camel/quarkus/component/zendesk/it/ZendeskTest.java
rename to integration-tests/zendesk/src/test/java/org/apache/camel/quarkus/component/zendesk/it/ZendeskIT.java
index a6a68d7..86b5665 100644
--- a/extensions-jvm/zendesk/integration-test/src/test/java/org/apache/camel/quarkus/component/zendesk/it/ZendeskTest.java
+++ b/integration-tests/zendesk/src/test/java/org/apache/camel/quarkus/component/zendesk/it/ZendeskIT.java
@@ -16,19 +16,9 @@
*/
package org.apache.camel.quarkus.component.zendesk.it;
-import io.quarkus.test.junit.QuarkusTest;
-import io.restassured.RestAssured;
-import org.junit.jupiter.api.Test;
+import io.quarkus.test.junit.NativeImageTest;
-@QuarkusTest
-class ZendeskTest {
-
- @Test
- public void loadComponentZendesk() {
- /* A simple autogenerated test */
- RestAssured.get("/zendesk/load/component/zendesk")
- .then()
- .statusCode(200);
- }
+@NativeImageTest
+class ZendeskIT extends ZendeskTest {
}
diff --git a/integration-tests/zendesk/src/test/java/org/apache/camel/quarkus/component/zendesk/it/ZendeskTest.java b/integration-tests/zendesk/src/test/java/org/apache/camel/quarkus/component/zendesk/it/ZendeskTest.java
new file mode 100644
index 0000000..5ec1004
--- /dev/null
+++ b/integration-tests/zendesk/src/test/java/org/apache/camel/quarkus/component/zendesk/it/ZendeskTest.java
@@ -0,0 +1,66 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.quarkus.component.zendesk.it;
+
+import io.quarkus.test.common.QuarkusTestResource;
+import io.quarkus.test.junit.QuarkusTest;
+import io.restassured.RestAssured;
+import org.junit.jupiter.api.Test;
+
+import static org.hamcrest.CoreMatchers.is;
+
+@QuarkusTest
+@QuarkusTestResource(ZendeskTestResource.class)
+class ZendeskTest {
+
+ @Test
+ public void testZendDeskComponent() {
+ final String description = "Camel Quarkus Ticket";
+
+ // Create ticket
+ String ticketId = RestAssured.given()
+ .body(description)
+ .post("/zendesk/ticket")
+ .then()
+ .statusCode(201)
+ .extract()
+ .body()
+ .asString();
+
+ // Read ticket
+ RestAssured.given()
+ .queryParam("ticketId", ticketId)
+ .get("/zendesk/ticket")
+ .then()
+ .statusCode(200)
+ .body(is(description));
+
+ // Delete
+ RestAssured.given()
+ .queryParam("ticketId", ticketId)
+ .delete("/zendesk/ticket")
+ .then()
+ .statusCode(204);
+
+ // Confirm deletion
+ RestAssured.given()
+ .queryParam("ticketId", ticketId)
+ .get("/zendesk/ticket")
+ .then()
+ .statusCode(404);
+ }
+}
diff --git a/integration-tests/zendesk/src/test/java/org/apache/camel/quarkus/component/zendesk/it/ZendeskTestResource.java b/integration-tests/zendesk/src/test/java/org/apache/camel/quarkus/component/zendesk/it/ZendeskTestResource.java
new file mode 100644
index 0000000..9a762a0
--- /dev/null
+++ b/integration-tests/zendesk/src/test/java/org/apache/camel/quarkus/component/zendesk/it/ZendeskTestResource.java
@@ -0,0 +1,53 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.quarkus.component.zendesk.it;
+
+import java.util.Map;
+
+import org.apache.camel.quarkus.test.wiremock.WireMockTestResourceLifecycleManager;
+import org.apache.camel.util.CollectionHelper;
+
+public class ZendeskTestResource extends WireMockTestResourceLifecycleManager {
+
+ private static final String ZENDESK_ENV_USERNAME = "ZENDESK_USERNAME";
+ private static final String ZENDESK_ENV_PASSWORD = "ZENDESK_PASSWORD";
+ private static final String ZENDESK_ENV_SERVER_URL = "ZENDESK_SERVER_URL";
+
+ @Override
+ public Map<String, String> start() {
+ Map<String, String> properties = super.start();
+ String wiremockUrl = properties.get("wiremock.url");
+ String serverUrl = wiremockUrl != null ? wiremockUrl : System.getenv(ZENDESK_ENV_SERVER_URL);
+ return CollectionHelper.mergeMaps(properties, CollectionHelper.mapOf(
+ "camel.component.zendesk.username", envOrDefault(ZENDESK_ENV_USERNAME, "test"),
+ "camel.component.zendesk.password", envOrDefault(ZENDESK_ENV_PASSWORD, "2se3r3t"),
+ "camel.component.zendesk.server-url", serverUrl));
+ }
+
+ @Override
+ protected String getRecordTargetBaseUrl() {
+ return System.getenv(ZENDESK_ENV_SERVER_URL);
+ }
+
+ @Override
+ protected boolean isMockingEnabled() {
+ return !envVarsPresent(
+ ZENDESK_ENV_USERNAME,
+ ZENDESK_ENV_PASSWORD,
+ ZENDESK_ENV_SERVER_URL);
+ }
+}
diff --git a/integration-tests/zendesk/src/test/resources/mappings/zendeskConfirmTicketDelete.json b/integration-tests/zendesk/src/test/resources/mappings/zendeskConfirmTicketDelete.json
new file mode 100644
index 0000000..d9b93a0
--- /dev/null
+++ b/integration-tests/zendesk/src/test/resources/mappings/zendeskConfirmTicketDelete.json
@@ -0,0 +1,40 @@
+{
+ "id" : "ade731dd-c30b-41dc-8550-8a4058f21079",
+ "name" : "api_v2_tickets_5json",
+ "request" : {
+ "url" : "/api/v2/tickets/5.json",
+ "method" : "GET"
+ },
+ "response" : {
+ "status" : 404,
+ "body" : "{\"error\":\"RecordNotFound\",\"description\":\"Not found\"}",
+ "headers" : {
+ "Date" : "Wed, 28 Oct 2020 14:56:03 GMT",
+ "Content-Type" : "application/json; charset=UTF-8",
+ "Set-Cookie" : [ "__cfduid=df3a8230bde79a6f55dec1b56988394741603896962; expires=Fri, 27-Nov-20 14:56:02 GMT; path=/; domain=.camelquarkus.zendesk.com; HttpOnly; SameSite=Lax", "__cfruid=cddfc46bcc00c25dbb25b3a839b2105fbf1a1fdb-1603896963; path=/; domain=.camelquarkus.zendesk.com; HttpOnly; Secure; SameSite=None" ],
+ "X-Zendesk-API-Version" : "v2",
+ "X-Zendesk-Application-Version" : "v7117.17",
+ "X-Frame-Options" : "SAMEORIGIN",
+ "X-Rate-Limit" : "400",
+ "X-Rate-Limit-Remaining" : "396",
+ "Strict-Transport-Security" : "max-age=31536000;",
+ "Cache-Control" : "no-cache",
+ "X-Zendesk-Origin-Server" : "classic-app-server-6b95b9474c-cl4vk",
+ "X-Request-Id" : [ "5e958050bde5f3ef-SEA", "5e958050bde5f3ef-SEA" ],
+ "X-Runtime" : "0.186546",
+ "X-Zendesk-Zorg" : "yes",
+ "CF-Cache-Status" : "DYNAMIC",
+ "cf-request-id" : "06114e866f0000f3ef35b66000000001",
+ "Expect-CT" : "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"",
+ "Report-To" : "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=Fhl9dd8j7B%2FeVgHKR2k7EqT5dPJhegIoMU%2FHJTM%2FE4fkckkoE%2B9JpzchNLLvyr6xCExWECWGA7CzFnREsLqFvhOTBgDfJcfr%2F4UXURbHom2Yv1ZCMV8RgHVAXQ%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}",
+ "NEL" : "{\"report_to\":\"cf-nel\",\"max_age\":604800}",
+ "Server" : "cloudflare",
+ "CF-RAY" : "5e958050bde5f3ef-LHR"
+ }
+ },
+ "uuid" : "ade731dd-c30b-41dc-8550-8a4058f21079",
+ "persistent" : true,
+ "scenarioName" : "scenario-1-api-v2-tickets-5.json",
+ "requiredScenarioState" : "scenario-1-api-v2-tickets-5.json-2",
+ "insertionIndex" : 4
+}
\ No newline at end of file
diff --git a/integration-tests/zendesk/src/test/resources/mappings/zendeskCreateTicket.json b/integration-tests/zendesk/src/test/resources/mappings/zendeskCreateTicket.json
new file mode 100644
index 0000000..cb42163
--- /dev/null
+++ b/integration-tests/zendesk/src/test/resources/mappings/zendeskCreateTicket.json
@@ -0,0 +1,46 @@
+{
+ "id" : "5bdc14e5-6db7-4e11-a7c0-aefcbe2b6931",
+ "name" : "api_v2_ticketsjson",
+ "request" : {
+ "url" : "/api/v2/tickets.json",
+ "method" : "POST",
+ "bodyPatterns" : [ {
+ "equalToJson" : "{\"ticket\":{\"subject\":\"Camel Quarkus Test Subject\",\"description\":\"Camel Quarkus Ticket\",\"has_incidents\":false}}",
+ "ignoreArrayOrder" : true,
+ "ignoreExtraElements" : true
+ } ]
+ },
+ "response" : {
+ "status" : 201,
+ "body" : "{\"ticket\":{\"url\":\"https://camelquarkus.zendesk.com/api/v2/tickets/5.json\",\"id\":5,\"external_id\":null,\"via\":{\"channel\":\"api\",\"source\":{\"from\":{},\"to\":{},\"rel\":null}},\"created_at\":\"2020-10-28T14:55:59Z\",\"updated_at\":\"2020-10-28T14:55:59Z\",\"type\":null,\"subject\":\"Camel Quarkus Test Subject\",\"raw_subject\":\"Camel Quarkus Test Subject\",\"description\":\"Camel Quarkus Ticket\",\"priority\":null,\"status\":\"open\",\"recipient\":null,\"reques [...]
+ "headers" : {
+ "Date" : "Wed, 28 Oct 2020 14:56:00 GMT",
+ "Content-Type" : "application/json; charset=UTF-8",
+ "Set-Cookie" : [ "__cfduid=dd47b8b844ca0cd490960787c7ca40d771603896959; expires=Fri, 27-Nov-20 14:55:59 GMT; path=/; domain=.camelquarkus.zendesk.com; HttpOnly; SameSite=Lax", "__cfruid=10fa707e419d6bbf2df8e9910d4aef7e9e86594a-1603896960; path=/; domain=.camelquarkus.zendesk.com; HttpOnly; Secure; SameSite=None" ],
+ "X-Zendesk-API-Version" : "v2",
+ "X-Zendesk-Application-Version" : "v7117.17",
+ "X-Frame-Options" : "SAMEORIGIN",
+ "Location" : "https://camelquarkus.zendesk.com/api/v2/tickets/5.json",
+ "X-Rate-Limit" : "400",
+ "X-Rate-Limit-Remaining" : "399",
+ "Strict-Transport-Security" : "max-age=31536000;",
+ "ETag" : "W/\"e73b3d71c1ab984141cf66fab39070a5\"",
+ "Cache-Control" : "max-age=0, private, must-revalidate",
+ "X-Zendesk-Origin-Server" : "classic-app-server-6b95b9474c-8v2mh",
+ "X-Request-Id" : [ "5e95803b5dd5f3ef-SEA", "5e95803b5dd5f3ef-SEA" ],
+ "X-Runtime" : "1.043450",
+ "X-Zendesk-Zorg" : "yes",
+ "X-Content-Type-Options" : "nosniff",
+ "CF-Cache-Status" : "DYNAMIC",
+ "cf-request-id" : "06114e791e0000f3ef2ebe8000000001",
+ "Expect-CT" : "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"",
+ "Report-To" : "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=LlKhthi24FAofOTvyrEpjFp%2FthubREBCs7tYBD%2B6399UJYknUrojMoTlGOKNoJvbXsFFz%2B8RWuTZY8Gu8%2F%2BvN%2FoIwvkn3ErdSXQoJxlW4ox9ZX%2FqJ17SYTt09g%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}",
+ "NEL" : "{\"report_to\":\"cf-nel\",\"max_age\":604800}",
+ "Server" : "cloudflare",
+ "CF-RAY" : "5e95803b5dd5f3ef-LHR"
+ }
+ },
+ "uuid" : "5bdc14e5-6db7-4e11-a7c0-aefcbe2b6931",
+ "persistent" : true,
+ "insertionIndex" : 1
+}
\ No newline at end of file
diff --git a/integration-tests/zendesk/src/test/resources/mappings/zendeskDeleteTicket.json b/integration-tests/zendesk/src/test/resources/mappings/zendeskDeleteTicket.json
new file mode 100644
index 0000000..ab8ff29
--- /dev/null
+++ b/integration-tests/zendesk/src/test/resources/mappings/zendeskDeleteTicket.json
@@ -0,0 +1,37 @@
+{
+ "id" : "88639adc-16c0-4749-8b00-412d9df8a5df",
+ "name" : "api_v2_tickets_5json",
+ "request" : {
+ "url" : "/api/v2/tickets/5.json",
+ "method" : "DELETE"
+ },
+ "response" : {
+ "status" : 204,
+ "headers" : {
+ "Date" : "Wed, 28 Oct 2020 14:56:02 GMT",
+ "Set-Cookie" : [ "__cfduid=d49e084a70c9175b8080a446440b59d6d1603896961; expires=Fri, 27-Nov-20 14:56:01 GMT; path=/; domain=.camelquarkus.zendesk.com; HttpOnly; SameSite=Lax", "__cf_bm=2b856eb758a02cc6b25ec0ff1fe07b9570a2fb4a-1603896962-1800-AVT4lSzByr9T7M/keoh68L6OJY1m+ApslmWa1f7xZqMx; path=/; expires=Wed, 28-Oct-20 15:26:02 GMT; domain=.camelquarkus.zendesk.com; HttpOnly; Secure; SameSite=None", "__cfruid=5987ccf9bababf13354295470f94d01ee6caec66-1603896962; path=/; domain=.camelq [...]
+ "X-Zendesk-API-Version" : "v2",
+ "X-Zendesk-Application-Version" : "v7117.17",
+ "X-Frame-Options" : "SAMEORIGIN",
+ "X-Rate-Limit" : "400",
+ "X-Rate-Limit-Remaining" : "397",
+ "Strict-Transport-Security" : "max-age=31536000;",
+ "Cache-Control" : "no-cache",
+ "X-Zendesk-Origin-Server" : "classic-app-server-6b95b9474c-nwrhr",
+ "X-Request-Id" : [ "5e95804b59f8f3ef-SEA", "5e95804b59f8f3ef-SEA" ],
+ "X-Runtime" : "0.502698",
+ "X-Zendesk-Zorg" : "yes",
+ "X-Content-Type-Options" : "nosniff",
+ "CF-Cache-Status" : "DYNAMIC",
+ "cf-request-id" : "06114e83170000f3ef2d3ee000000001",
+ "Expect-CT" : "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"",
+ "Report-To" : "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=9hq6tYREvVG84Nh8eEx5jqb%2Bg%2BhCl0am6RxogpDLnINMiVUpbUClaCjWmCii7Xb1B8v%2BYF0ABo4u8OHSEfPww9Bnx2GHWjkCXOVkjkxSUSu6W5UwSZlUxSspqA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}",
+ "NEL" : "{\"report_to\":\"cf-nel\",\"max_age\":604800}",
+ "Server" : "cloudflare",
+ "CF-RAY" : "5e95804b59f8f3ef-LHR"
+ }
+ },
+ "uuid" : "88639adc-16c0-4749-8b00-412d9df8a5df",
+ "persistent" : true,
+ "insertionIndex" : 3
+}
\ No newline at end of file
diff --git a/integration-tests/zendesk/src/test/resources/mappings/zendeskGetTicket.json b/integration-tests/zendesk/src/test/resources/mappings/zendeskGetTicket.json
new file mode 100644
index 0000000..2e3c563
--- /dev/null
+++ b/integration-tests/zendesk/src/test/resources/mappings/zendeskGetTicket.json
@@ -0,0 +1,43 @@
+{
+ "id" : "3b422755-cc63-478f-9157-da526b00e614",
+ "name" : "api_v2_tickets_5json",
+ "request" : {
+ "url" : "/api/v2/tickets/5.json",
+ "method" : "GET"
+ },
+ "response" : {
+ "status" : 200,
+ "body" : "{\"ticket\":{\"url\":\"https://camelquarkus.zendesk.com/api/v2/tickets/5.json\",\"id\":5,\"external_id\":null,\"via\":{\"channel\":\"api\",\"source\":{\"from\":{},\"to\":{},\"rel\":null}},\"created_at\":\"2020-10-28T14:55:59Z\",\"updated_at\":\"2020-10-28T14:55:59Z\",\"type\":null,\"subject\":\"Camel Quarkus Test Subject\",\"raw_subject\":\"Camel Quarkus Test Subject\",\"description\":\"Camel Quarkus Ticket\",\"priority\":null,\"status\":\"open\",\"recipient\":null,\"reques [...]
+ "headers" : {
+ "Date" : "Wed, 28 Oct 2020 14:56:01 GMT",
+ "Content-Type" : "application/json; charset=UTF-8",
+ "Set-Cookie" : [ "__cfduid=dbaf55cf91d4bcc4dbcc80cb96abd994b1603896960; expires=Fri, 27-Nov-20 14:56:00 GMT; path=/; domain=.camelquarkus.zendesk.com; HttpOnly; SameSite=Lax", "__cfruid=818e30103b8b4ffe8dd9c20273b0b8b32d8d6366-1603896961; path=/; domain=.camelquarkus.zendesk.com; HttpOnly; Secure; SameSite=None" ],
+ "X-Zendesk-API-Version" : "v2",
+ "X-Zendesk-Application-Version" : "v7117.17",
+ "X-Frame-Options" : "SAMEORIGIN",
+ "X-Rate-Limit" : "400",
+ "X-Rate-Limit-Remaining" : "398",
+ "Strict-Transport-Security" : "max-age=31536000;",
+ "ETag" : "W/\"87c27b010d0b1ca4972841f7a73714c3\"",
+ "Cache-Control" : "max-age=0, private, must-revalidate",
+ "X-Zendesk-Origin-Server" : "classic-app-server-6b95b9474c-cxkww",
+ "X-Request-Id" : [ "5e9580449b61f3ef-LHR", "5e9580449b61f3ef-LHR" ],
+ "X-Runtime" : "0.218464",
+ "X-Zendesk-Zorg" : "yes",
+ "X-Content-Type-Options" : "nosniff",
+ "CF-Cache-Status" : "DYNAMIC",
+ "cf-request-id" : "06114e7ee00000f3ef5a072000000001",
+ "Expect-CT" : "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\"",
+ "Report-To" : "{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report?s=J6tj0rH0uGj5Fs48xvSmBS4X3nbbjEGfQvQM02N5ckgVFWt9GCthlhw8ZCfnmSh%2FmJpmUdNWd%2BK2vET1eS3TVKGyrItuw4Li4kIjKkiXFApVDjZM2iOSAW3hig%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}",
+ "NEL" : "{\"report_to\":\"cf-nel\",\"max_age\":604800}",
+ "Server" : "cloudflare",
+ "CF-RAY" : "5e9580449b61f3ef-LHR"
+ }
+ },
+ "uuid" : "3b422755-cc63-478f-9157-da526b00e614",
+ "persistent" : true,
+ "scenarioName" : "scenario-1-api-v2-tickets-5.json",
+ "requiredScenarioState" : "Started",
+ "newScenarioState" : "scenario-1-api-v2-tickets-5.json-2",
+ "insertionIndex" : 2
+}
\ No newline at end of file
diff --git a/tooling/scripts/test-categories.yaml b/tooling/scripts/test-categories.yaml
index b3328a3..0b8356d 100644
--- a/tooling/scripts/test-categories.yaml
+++ b/tooling/scripts/test-categories.yaml
@@ -85,12 +85,13 @@ xml-json-olingo4:
- geocoder
- lumberjack
dozer-social:
+ - crypto
- dozer
- telegram
- twitter
- master
- syndication
- - crypto
+ - zendesk
messaging-networking1:
- activemq
- amqp