[camel-kafka-connector] branch master updated: Removed unused AWS common module that was moved to Camel Core

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[camel-kafka-connector] branch master updated: Removed unused AWS common module that was moved to Camel Core

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

orpiske pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-kafka-connector.git


The following commit(s) were added to refs/heads/master by this push:
     new be2125e  Removed unused AWS common module that was moved to Camel Core
be2125e is described below

commit be2125eb7b619cf7064c921f95bf9bff6db1c81a
Author: Otavio Rodolfo Piske <[hidden email]>
AuthorDate: Wed Jan 13 10:23:10 2021 +0100

    Removed unused AWS common module that was moved to Camel Core
---
 tests/itests-aws-common/pom.xml                    | 60 ----------------------
 .../camel/kafkaconnector/aws/common/AWSCommon.java | 44 ----------------
 .../kafkaconnector/aws/common/AWSConfigs.java      | 29 -----------
 .../aws/common/services/AWSService.java            | 52 -------------------
 tests/pom.xml                                      |  1 -
 5 files changed, 186 deletions(-)

diff --git a/tests/itests-aws-common/pom.xml b/tests/itests-aws-common/pom.xml
deleted file mode 100644
index 1d20b12..0000000
--- a/tests/itests-aws-common/pom.xml
+++ /dev/null
@@ -1,60 +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">
-    <parent>
-        <groupId>org.apache.camel.kafkaconnector</groupId>
-        <artifactId>itests-parent</artifactId>
-        <version>0.8.0-SNAPSHOT</version>
-        <relativePath>../itests-parent/pom.xml</relativePath>
-    </parent>
-
-    <modelVersion>4.0.0</modelVersion>
-
-    <artifactId>itests-aws-common</artifactId>
-    <name>Camel-Kafka-Connector :: Tests :: AWS Common</name>
-
-    <dependencies>
-        <dependency>
-            <groupId>org.apache.camel.kafkaconnector</groupId>
-            <artifactId>itests-common</artifactId>
-            <version>${project.version}</version>
-            <type>test-jar</type>
-            <scope>test</scope>
-        </dependency>
-    </dependencies>
-
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-jar-plugin</artifactId>
-                <executions>
-                    <execution>
-                        <phase>test-compile</phase>
-                        <goals>
-                            <goal>test-jar</goal>
-                        </goals>
-                    </execution>
-                </executions>
-            </plugin>
-        </plugins>
-    </build>
-
-
-</project>
\ No newline at end of file
diff --git a/tests/itests-aws-common/src/test/java/org/apache/camel/kafkaconnector/aws/common/AWSCommon.java b/tests/itests-aws-common/src/test/java/org/apache/camel/kafkaconnector/aws/common/AWSCommon.java
deleted file mode 100644
index a00b322..0000000
--- a/tests/itests-aws-common/src/test/java/org/apache/camel/kafkaconnector/aws/common/AWSCommon.java
+++ /dev/null
@@ -1,44 +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.kafkaconnector.aws.common;
-
-public final class AWSCommon {
-    /**
-     * The default SQS queue name used during the tests
-     */
-    public static final String BASE_SQS_QUEUE_NAME = "ckc";
-
-    /**
-     * The default SQS queue name used during the tests
-     */
-    public static final String DEFAULT_SQS_QUEUE_FOR_SNS = "ckcsns";
-
-    /**
-     * The default S3 bucket name used during the tests
-     */
-    public static final String DEFAULT_S3_BUCKET = "ckc-s3";
-
-    /**
-     * Base name for the Kinesis stream
-     */
-    public static final String KINESIS_STREAM_BASE_NAME = "ckc-kin-stream";
-
-    private AWSCommon() {
-    }
-
-}
diff --git a/tests/itests-aws-common/src/test/java/org/apache/camel/kafkaconnector/aws/common/AWSConfigs.java b/tests/itests-aws-common/src/test/java/org/apache/camel/kafkaconnector/aws/common/AWSConfigs.java
deleted file mode 100644
index 42c1eb2..0000000
--- a/tests/itests-aws-common/src/test/java/org/apache/camel/kafkaconnector/aws/common/AWSConfigs.java
+++ /dev/null
@@ -1,29 +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.kafkaconnector.aws.common;
-
-
-public final class AWSConfigs {
-    public static final String ACCESS_KEY = "access.key";
-    public static final String SECRET_KEY = "secret.key";
-    public static final String REGION = "aws.region";
-    public static final String AMAZON_AWS_HOST = "aws.host";
-    public static final String PROTOCOL = "aws.protocol";
-
-    private AWSConfigs() {
-    }
-}
diff --git a/tests/itests-aws-common/src/test/java/org/apache/camel/kafkaconnector/aws/common/services/AWSService.java b/tests/itests-aws-common/src/test/java/org/apache/camel/kafkaconnector/aws/common/services/AWSService.java
deleted file mode 100644
index 7d7ec57..0000000
--- a/tests/itests-aws-common/src/test/java/org/apache/camel/kafkaconnector/aws/common/services/AWSService.java
+++ /dev/null
@@ -1,52 +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.kafkaconnector.aws.common.services;
-
-import java.util.Properties;
-
-import org.junit.jupiter.api.extension.AfterAllCallback;
-import org.junit.jupiter.api.extension.BeforeAllCallback;
-import org.junit.jupiter.api.extension.ExtensionContext;
-
-public interface AWSService<T> extends BeforeAllCallback, AfterAllCallback {
-
-    T getClient();
-
-    Properties getConnectionProperties();
-
-    /**
-     * Perform any initialization necessary
-     */
-    void initialize();
-
-    /**
-     * Shuts down the service after the test has completed
-     */
-    void shutdown();
-
-
-    @Override
-    default void beforeAll(ExtensionContext extensionContext) throws Exception {
-        initialize();
-    }
-
-    @Override
-    default void afterAll(ExtensionContext extensionContext) throws Exception {
-        shutdown();
-    }
-}
diff --git a/tests/pom.xml b/tests/pom.xml
index e3064e8..466bec4 100644
--- a/tests/pom.xml
+++ b/tests/pom.xml
@@ -41,7 +41,6 @@
     <modules>
         <module>itests-parent</module>
         <module>itests-common</module>
-        <module>itests-aws-common</module>
         <module>itests-aws-v1</module>
         <module>itests-aws-v2</module>
         <module>itests-cassandra</module>