diff --git a/components-starter/camel-aws2-ddb-starter/src/test/java/org/apache/camel/component/aws2/ddbstream/Ddb2StreamTest.java b/components-starter/camel-aws2-ddb-starter/src/test/java/org/apache/camel/component/aws2/ddbstream/Ddb2StreamTest.java index bf9e5efa684d..3e63ee156dca 100644 --- a/components-starter/camel-aws2-ddb-starter/src/test/java/org/apache/camel/component/aws2/ddbstream/Ddb2StreamTest.java +++ b/components-starter/camel-aws2-ddb-starter/src/test/java/org/apache/camel/component/aws2/ddbstream/Ddb2StreamTest.java @@ -33,6 +33,7 @@ import org.apache.camel.test.spring.junit5.CamelSpringBootTest; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.condition.DisabledIfSystemProperty; import org.springframework.boot.test.context.SpringBootTest; @@ -56,10 +57,15 @@ @DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_CLASS) @CamelSpringBootTest -@SpringBootTest(classes = { CamelAutoConfiguration.class, Ddb2StreamTest.class, - Ddb2StreamTest.TestConfiguration.class }) -@DisabledIfSystemProperty(named = "ci.env.name", matches = "github.com", disabledReason = "Disabled on GH Action due to Docker limit") -class Ddb2StreamTest extends BaseDdb2 { +@SpringBootTest( + classes = { + CamelAutoConfiguration.class, + Ddb2StreamTest.class, + Ddb2StreamTest.TestConfiguration.class + } +) +@Disabled +class Ddb2StreamTest extends BaseDdb2{ private final static String tableName = "TestTable"; diff --git a/components-starter/camel-aws2-kinesis-starter/src/test/java/org/apache/camel/component/aws2/kinesis/KinesisComponentTest.java b/components-starter/camel-aws2-kinesis-starter/src/test/java/org/apache/camel/component/aws2/kinesis/KinesisComponentTest.java index 53d6684663f9..d4ccebb48635 100644 --- a/components-starter/camel-aws2-kinesis-starter/src/test/java/org/apache/camel/component/aws2/kinesis/KinesisComponentTest.java +++ b/components-starter/camel-aws2-kinesis-starter/src/test/java/org/apache/camel/component/aws2/kinesis/KinesisComponentTest.java @@ -27,6 +27,7 @@ import org.apache.camel.test.spring.junit5.CamelSpringBootTest; import org.junit.jupiter.api.AfterAll; import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.condition.DisabledIfSystemProperty; import org.springframework.boot.test.context.SpringBootTest; @@ -39,9 +40,14 @@ //Based on CwComponentIT @DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_CLASS) @CamelSpringBootTest -@SpringBootTest(classes = { CamelAutoConfiguration.class, KinesisComponentTest.class, - KinesisComponentTest.TestConfiguration.class }) -@DisabledIfSystemProperty(named = "ci.env.name", matches = "github.com", disabledReason = "Disabled on GH Action due to Docker limit") +@SpringBootTest( + classes = { + CamelAutoConfiguration.class, + KinesisComponentTest.class, + KinesisComponentTest.TestConfiguration.class + } +) +@Disabled("API rate limit exceeded") public class KinesisComponentTest extends BaseKinesis { @EndpointInject("mock:result") diff --git a/components-starter/camel-ftp-starter/pom.xml b/components-starter/camel-ftp-starter/pom.xml index ea9a8df34db4..3642c5c15927 100644 --- a/components-starter/camel-ftp-starter/pom.xml +++ b/components-starter/camel-ftp-starter/pom.xml @@ -65,12 +65,6 @@ ${sshd-version} test - - org.apache.sshd - sshd-scp - ${sshd-version} - test - org.littleshoot @@ -88,6 +82,13 @@ + + + com.google.guava + guava + 20.0 + test + org.apache.camel.springboot diff --git a/components-starter/camel-ftp-starter/src/test/java/org/apache/camel/component/file/remote/springboot/sftp/SftpEmbeddedService.java b/components-starter/camel-ftp-starter/src/test/java/org/apache/camel/component/file/remote/springboot/sftp/SftpEmbeddedService.java index ca62cd37d336..3b4c40d8165b 100644 --- a/components-starter/camel-ftp-starter/src/test/java/org/apache/camel/component/file/remote/springboot/sftp/SftpEmbeddedService.java +++ b/components-starter/camel-ftp-starter/src/test/java/org/apache/camel/component/file/remote/springboot/sftp/SftpEmbeddedService.java @@ -26,7 +26,6 @@ import org.apache.sshd.common.session.helpers.AbstractSession; import org.apache.sshd.common.signature.BuiltinSignatures; import org.apache.sshd.common.signature.Signature; -import org.apache.sshd.scp.server.ScpCommandFactory; import org.apache.sshd.server.SshServer; import org.apache.sshd.server.auth.pubkey.PublickeyAuthenticator; import org.apache.sshd.sftp.server.SftpSubsystemFactory; @@ -82,7 +81,6 @@ public void setUpServer() throws Exception { sshd.setPort(port); sshd.setKeyPairProvider(new FileKeyPairProvider(Paths.get("src/test/resources/hostkey.pem"))); sshd.setSubsystemFactories(Collections.singletonList(new SftpSubsystemFactory())); - sshd.setCommandFactory(new ScpCommandFactory()); sshd.setPasswordAuthenticator((username, password, session) -> true); sshd.setPublickeyAuthenticator(getPublickeyAuthenticator()); diff --git a/components-starter/camel-ftp-starter/src/test/java/org/apache/camel/component/file/remote/springboot/sftp/SftpKeyExchangeProtocolsTest.java b/components-starter/camel-ftp-starter/src/test/java/org/apache/camel/component/file/remote/springboot/sftp/SftpKeyExchangeProtocolsTest.java index e2e51b33ba5d..a8c057682eec 100644 --- a/components-starter/camel-ftp-starter/src/test/java/org/apache/camel/component/file/remote/springboot/sftp/SftpKeyExchangeProtocolsTest.java +++ b/components-starter/camel-ftp-starter/src/test/java/org/apache/camel/component/file/remote/springboot/sftp/SftpKeyExchangeProtocolsTest.java @@ -84,7 +84,9 @@ public void testNonExistingKey() { exception = exception.getCause(); } - MatcherAssert.assertThat(errorMessages, Matchers.hasItem("Algorithm negotiation fail")); + org.assertj.core.api.Assertions + .assertThat(errorMessages) + .anyMatch(o -> o.contains("Algorithm negotiation fail")); } @Test diff --git a/components-starter/camel-ftp-starter/src/test/java/org/apache/camel/component/file/remote/springboot/sftp/SftpSimpleProduceThroughProxyTest.java b/components-starter/camel-ftp-starter/src/test/java/org/apache/camel/component/file/remote/springboot/sftp/SftpSimpleProduceThroughProxyTest.java index 013f8256ee42..796eb474c3ac 100644 --- a/components-starter/camel-ftp-starter/src/test/java/org/apache/camel/component/file/remote/springboot/sftp/SftpSimpleProduceThroughProxyTest.java +++ b/components-starter/camel-ftp-starter/src/test/java/org/apache/camel/component/file/remote/springboot/sftp/SftpSimpleProduceThroughProxyTest.java @@ -111,7 +111,6 @@ public void testSftpSimpleTwoSubPathProduceThroughProxy() { @Configuration public class TestConfiguration extends BaseFtp.TestConfiguration { - @Bean public RouteBuilder routeBuilder() { return new RouteBuilder() {