This is an automated email from the ASF dual-hosted git repository.

jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git


The following commit(s) were added to refs/heads/main by this push:
     new 87f4d770ed Remove OpenAPI V2 integration test from camel-k-maven-plugin
87f4d770ed is described below

commit 87f4d770ed0e8d434efc022b0e86fcbf40a00961
Author: James Netherton <jamesnether...@gmail.com>
AuthorDate: Thu Jul 4 07:14:03 2024 +0100

    Remove OpenAPI V2 integration test from camel-k-maven-plugin
---
 .../src/it/generate-rest-dsl-from-v2/document.json |  46 ----------
 .../src/it/generate-rest-dsl-from-v2/pom.xml       | 102 ---------------------
 .../src/it/generate-rest-dsl-from-v2/verify.groovy |  27 ------
 3 files changed, 175 deletions(-)

diff --git 
a/tooling/camel-k-maven-plugin/src/it/generate-rest-dsl-from-v2/document.json 
b/tooling/camel-k-maven-plugin/src/it/generate-rest-dsl-from-v2/document.json
deleted file mode 100644
index 48e8f9e7fd..0000000000
--- 
a/tooling/camel-k-maven-plugin/src/it/generate-rest-dsl-from-v2/document.json
+++ /dev/null
@@ -1,46 +0,0 @@
-{
-  "swagger" : "2.0",
-  "info" : {
-    "version" : "1.0",
-    "title" : "Greeting REST API"
-  },
-  "host" : "",
-  "basePath" : "/camel/",
-  "tags" : [ {
-    "name" : "greetings",
-    "description" : "Greeting to {name}"
-  } ],
-  "schemes" : [ "http" ],
-  "paths" : {
-    "/greetings/{name}" : {
-      "get" : {
-        "tags" : [ "greetings" ],
-        "operationId" : "greeting-api",
-        "parameters" : [ {
-          "name" : "name",
-          "in" : "path",
-          "required" : true,
-          "type" : "string"
-        } ],
-        "responses" : {
-          "200" : {
-            "description" : "Output type",
-            "schema" : {
-              "$ref" : "#/definitions/Greetings"
-            }
-          }
-        }
-      }
-    }
-  },
-  "definitions" : {
-    "Greetings" : {
-      "type" : "object",
-      "properties" : {
-        "greetings" : {
-          "type" : "string"
-        }
-      }
-    }
-  }
-}
\ No newline at end of file
diff --git 
a/tooling/camel-k-maven-plugin/src/it/generate-rest-dsl-from-v2/pom.xml 
b/tooling/camel-k-maven-plugin/src/it/generate-rest-dsl-from-v2/pom.xml
deleted file mode 100644
index 2d1e7cd007..0000000000
--- a/tooling/camel-k-maven-plugin/src/it/generate-rest-dsl-from-v2/pom.xml
+++ /dev/null
@@ -1,102 +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>
-    <groupId>org.apache.camel.k</groupId>
-    <artifactId>camel-k-catalog-generator</artifactId>
-    <version>1.0.0</version>
-
-    <properties>
-        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-        <openapi.spec>${project.basedir}/document.json</openapi.spec>
-        <dsl.out>${project.basedir}/document.xml</dsl.out>
-    </properties>
-
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.camel.quarkus</groupId>
-                <artifactId>camel-quarkus-camel-k-maven-plugin</artifactId>
-                <version>@project.version@</version>
-                <executions>
-                    <execution>
-                        <id>generate-rest-xml</id>
-                        <goals>
-                            <goal>generate-rest-xml</goal>
-                        </goals>
-                    </execution>
-                </executions>
-            </plugin>
-        </plugins>
-    </build>
-
-    <repositories>
-        <repository>
-            <id>apache.snapshots</id>
-            <name>Apache Development Snapshot Repository</name>
-            
<url>https://repository.apache.org/content/repositories/snapshots/</url>
-            <releases>
-                <enabled>false</enabled>
-            </releases>
-            <snapshots>
-                <enabled>true</enabled>
-            </snapshots>
-        </repository>
-        <repository>
-            <id>oss.snapshots</id>
-            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
-            <releases>
-                <enabled>false</enabled>
-            </releases>
-            <snapshots>
-                <enabled>true</enabled>
-            </snapshots>
-        </repository>
-    </repositories>
-
-    <pluginRepositories>
-        <pluginRepository>
-            <id>apache.snapshots</id>
-            <name>Apache Development Snapshot Repository</name>
-            
<url>https://repository.apache.org/content/repositories/snapshots/</url>
-            <releases>
-                <enabled>false</enabled>
-            </releases>
-            <snapshots>
-                <enabled>true</enabled>
-            </snapshots>
-        </pluginRepository>
-        <pluginRepository>
-            <id>oss.snapshots</id>
-            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
-            <releases>
-                <enabled>false</enabled>
-            </releases>
-            <snapshots>
-                <enabled>true</enabled>
-            </snapshots>
-        </pluginRepository>
-    </pluginRepositories>
-
-</project>
diff --git 
a/tooling/camel-k-maven-plugin/src/it/generate-rest-dsl-from-v2/verify.groovy 
b/tooling/camel-k-maven-plugin/src/it/generate-rest-dsl-from-v2/verify.groovy
deleted file mode 100644
index 38cc8515ab..0000000000
--- 
a/tooling/camel-k-maven-plugin/src/it/generate-rest-dsl-from-v2/verify.groovy
+++ /dev/null
@@ -1,27 +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.
- */
-
-
-new File(basedir, "document.xml").withReader {
-    def document = new groovy.xml.XmlSlurper().parse(it)
-
-    assert document.rest.@path == '/camel/'
-    assert document.rest.get.size() == 1
-    assert document.rest.get[0].@id == 'greeting-api'
-    assert document.rest.get[0].@path == '/greetings/{name}'
-    assert document.rest.get[0].to.@uri == 'direct:greeting-api'
-}

Reply via email to