Skip to content

Commit 3f5d893

Browse files
committed
CAMEL-21452 Decouple the infrastructure from the testing API
1 parent 3c15450 commit 3f5d893

File tree

125 files changed

+523
-81
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+523
-81
lines changed

test-infra/camel-test-infra-google-pubsub/pom.xml

+5
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@
3737
<version>${project.version}</version>
3838
<type>test-jar</type>
3939
</dependency>
40+
<dependency>
41+
<groupId>org.apache.camel</groupId>
42+
<artifactId>camel-test-infra-common</artifactId>
43+
<version>${project.version}</version>
44+
</dependency>
4045

4146
<dependency>
4247
<groupId>org.testcontainers</groupId>
+2-2
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
*/
1717
package org.apache.camel.test.infra.google.pubsub.services;
1818

19-
import org.apache.camel.test.infra.common.services.TestService;
19+
import org.apache.camel.test.infra.common.services.InfrastructureService;
2020

2121
/**
2222
* Test infra service for GooglePubSub
2323
*/
24-
public interface GooglePubSubService extends TestService {
24+
public interface GooglePubSubService extends InfrastructureService {
2525

2626
String getServiceAddress();
2727
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
package org.apache.camel.test.infra.google.pubsub.services;
18+
19+
import org.apache.camel.test.infra.common.services.TestService;
20+
21+
/**
22+
* Test infra service for GooglePubSub
23+
*/
24+
public interface GooglePubSubTestService extends TestService, GooglePubSubService {
25+
}

test-infra/camel-test-infra-hashicorp-vault/pom.xml

+5
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@
3737
<version>${project.version}</version>
3838
<type>test-jar</type>
3939
</dependency>
40+
<dependency>
41+
<groupId>org.apache.camel</groupId>
42+
<artifactId>camel-test-infra-common</artifactId>
43+
<version>${project.version}</version>
44+
</dependency>
4045

4146
<dependency>
4247
<groupId>org.testcontainers</groupId>
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
*/
1717
package org.apache.camel.test.infra.hashicorp.vault.services;
1818

19-
import org.apache.camel.test.infra.common.services.TestService;
19+
import org.apache.camel.test.infra.common.services.InfrastructureService;
2020

2121
/**
2222
* Test infra service for Infinispan
2323
*/
24-
public interface HashicorpVaultService extends TestService {
24+
public interface HashicorpVaultService extends InfrastructureService {
2525

2626
String token();
2727

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
package org.apache.camel.test.infra.hashicorp.vault.services;
18+
19+
import org.apache.camel.test.infra.common.services.TestService;
20+
21+
/**
22+
* Test infra service for HashicorpVault
23+
*/
24+
public interface HashicorpVaultTestService extends TestService, HashicorpVaultService {
25+
}

test-infra/camel-test-infra-hazelcast/pom.xml

+5
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@
3737
<version>${project.version}</version>
3838
<type>test-jar</type>
3939
</dependency>
40+
<dependency>
41+
<groupId>org.apache.camel</groupId>
42+
<artifactId>camel-test-infra-common</artifactId>
43+
<version>${project.version}</version>
44+
</dependency>
4045

4146
<dependency>
4247
<groupId>com.hazelcast</groupId>

test-infra/camel-test-infra-hazelcast/src/test/java/org/apache/camel/test/infra/hazelcast/services/HazelcastService.java test-infra/camel-test-infra-hazelcast/src/main/java/org/apache/camel/test/infra/hazelcast/services/HazelcastService.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
package org.apache.camel.test.infra.hazelcast.services;
1818

1919
import com.hazelcast.config.Config;
20-
import org.apache.camel.test.infra.common.services.TestService;
20+
import org.apache.camel.test.infra.common.services.InfrastructureService;
2121

2222
/**
2323
* Test infra service for Hazelcast
2424
*/
25-
public interface HazelcastService extends TestService {
25+
public interface HazelcastService extends InfrastructureService {
2626

2727
Config createConfiguration(String name, int port, String instanceName, String componentName);
2828
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
package org.apache.camel.test.infra.hazelcast.services;
18+
19+
import org.apache.camel.test.infra.common.services.TestService;
20+
21+
/**
22+
* Test infra service for Hazelcast
23+
*/
24+
public interface HazelcastTestService extends TestService, HazelcastService {
25+
}

test-infra/camel-test-infra-hivemq/pom.xml

+5
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@
3838
<version>${project.version}</version>
3939
<type>test-jar</type>
4040
</dependency>
41+
<dependency>
42+
<groupId>org.apache.camel</groupId>
43+
<artifactId>camel-test-infra-common</artifactId>
44+
<version>${project.version}</version>
45+
</dependency>
4146

4247
<dependency>
4348
<groupId>org.testcontainers</groupId>

test-infra/camel-test-infra-hivemq/src/test/java/org/apache/camel/test/infra/hivemq/services/HiveMQService.java test-infra/camel-test-infra-hivemq/src/main/java/org/apache/camel/test/infra/hivemq/services/HiveMQService.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
*/
1717
package org.apache.camel.test.infra.hivemq.services;
1818

19-
import org.apache.camel.test.infra.common.services.TestService;
19+
import org.apache.camel.test.infra.common.services.InfrastructureService;
2020

21-
public interface HiveMQService extends TestService {
21+
public interface HiveMQService extends InfrastructureService {
2222

2323
int getMqttPort();
2424

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
package org.apache.camel.test.infra.hivemq.services;
18+
19+
import org.apache.camel.test.infra.common.services.TestService;
20+
21+
/**
22+
* Test infra service for Hive
23+
*/
24+
public interface HiveMQTestService extends TestService, HiveMQService {
25+
}

test-infra/camel-test-infra-ignite/pom.xml

+10
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@
3737
<version>${project.version}</version>
3838
<type>test-jar</type>
3939
</dependency>
40+
<dependency>
41+
<groupId>org.apache.camel</groupId>
42+
<artifactId>camel-test-infra-common</artifactId>
43+
<version>${project.version}</version>
44+
</dependency>
4045

4146
<dependency>
4247
<groupId>org.apache.ignite</groupId>
@@ -49,5 +54,10 @@
4954
<artifactId>ignite-log4j2</artifactId>
5055
<version>${ignite-version}</version>
5156
</dependency>
57+
58+
<dependency>
59+
<groupId>org.apache.logging.log4j</groupId>
60+
<artifactId>log4j-slf4j2-impl</artifactId>
61+
</dependency>
5262
</dependencies>
5363
</project>

test-infra/camel-test-infra-ignite/src/test/java/org/apache/camel/test/infra/ignite/services/IgniteService.java test-infra/camel-test-infra-ignite/src/main/java/org/apache/camel/test/infra/ignite/services/IgniteService.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
*/
1717
package org.apache.camel.test.infra.ignite.services;
1818

19-
import org.apache.camel.test.infra.common.services.TestService;
19+
import org.apache.camel.test.infra.common.services.InfrastructureService;
2020
import org.apache.ignite.configuration.IgniteConfiguration;
2121

2222
/**
2323
* Test infra service for Ignite
2424
*/
25-
public interface IgniteService extends TestService {
25+
public interface IgniteService extends InfrastructureService {
2626

2727
IgniteConfiguration createConfiguration();
2828
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
package org.apache.camel.test.infra.ignite.services;
18+
19+
import org.apache.camel.test.infra.common.services.TestService;
20+
21+
/**
22+
* Test infra service for Ignite
23+
*/
24+
public interface IgniteTestService extends TestService, IgniteService {
25+
}

test-infra/camel-test-infra-infinispan/pom.xml

+5
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@
3737
<version>${project.version}</version>
3838
<type>test-jar</type>
3939
</dependency>
40+
<dependency>
41+
<groupId>org.apache.camel</groupId>
42+
<artifactId>camel-test-infra-common</artifactId>
43+
<version>${project.version}</version>
44+
</dependency>
4045

4146
<dependency>
4247
<groupId>org.testcontainers</groupId>
+2-2
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
*/
1717
package org.apache.camel.test.infra.infinispan.services;
1818

19-
import org.apache.camel.test.infra.common.services.TestService;
19+
import org.apache.camel.test.infra.common.services.InfrastructureService;
2020

2121
/**
2222
* Test infra service for Infinispan
2323
*/
24-
public interface InfinispanService extends TestService {
24+
public interface InfinispanService extends InfrastructureService {
2525

2626
String username();
2727

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
package org.apache.camel.test.infra.infinispan.services;
18+
19+
import org.apache.camel.test.infra.common.services.TestService;
20+
21+
/**
22+
* Test infra service for Infinispan
23+
*/
24+
public interface InfinispanTestService extends TestService, InfinispanService {
25+
}

test-infra/camel-test-infra-jdbc/pom.xml

+5
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@
3636
<version>${project.version}</version>
3737
<type>test-jar</type>
3838
</dependency>
39+
<dependency>
40+
<groupId>org.apache.camel</groupId>
41+
<artifactId>camel-test-infra-common</artifactId>
42+
<version>${project.version}</version>
43+
</dependency>
3944

4045
<dependency>
4146
<groupId>org.testcontainers</groupId>

test-infra/camel-test-infra-jdbc/src/test/java/org/apache/camel/test/infra/jdbc/services/JDBCService.java test-infra/camel-test-infra-jdbc/src/main/java/org/apache/camel/test/infra/jdbc/services/JDBCService.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717

1818
package org.apache.camel.test.infra.jdbc.services;
1919

20-
import org.apache.camel.test.infra.common.services.TestService;
20+
import org.apache.camel.test.infra.common.services.InfrastructureService;
2121

22-
public interface JDBCService extends TestService {
22+
public interface JDBCService extends InfrastructureService {
2323

2424
String jdbcUrl();
2525
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
package org.apache.camel.test.infra.jdbc.services;
18+
19+
import org.apache.camel.test.infra.common.services.TestService;
20+
21+
/**
22+
* Test infra service for JDBC
23+
*/
24+
public interface JDBCTestService extends TestService, JDBCService {
25+
}

test-infra/camel-test-infra-jetty/pom.xml

+5
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@
3737
<version>${project.version}</version>
3838
<type>test-jar</type>
3939
</dependency>
40+
<dependency>
41+
<groupId>org.apache.camel</groupId>
42+
<artifactId>camel-test-infra-common</artifactId>
43+
<version>${project.version}</version>
44+
</dependency>
4045

4146
<dependency>
4247
<groupId>org.apache.camel</groupId>

0 commit comments

Comments
 (0)