This is an automated email from the ASF dual-hosted git repository. hong pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/flink-connector-aws.git
commit 82394bed98fa3b6208f6465e02096203a94f4231 Author: Hong Liang Teoh <lian...@amazon.com> AuthorDate: Mon Aug 28 16:48:06 2023 +0100 [hotfix] Add MiniClusterExtension to ITCase tests --- .../archunit-violations/a6cbd99c-b115-447a-8f19-43c1094db549 | 6 ------ .../flink/connector/firehose/sink/KinesisFirehoseSinkITCase.java | 3 +++ .../archunit-violations/84abeb9c-8355-4165-96aa-dda65b04e5e7 | 6 ------ .../flink/connector/kinesis/sink/KinesisStreamsSinkITCase.java | 3 +++ 4 files changed, 6 insertions(+), 12 deletions(-) diff --git a/flink-connector-aws/flink-connector-aws-kinesis-firehose/archunit-violations/a6cbd99c-b115-447a-8f19-43c1094db549 b/flink-connector-aws/flink-connector-aws-kinesis-firehose/archunit-violations/a6cbd99c-b115-447a-8f19-43c1094db549 index 5ad7b14..e69de29 100644 --- a/flink-connector-aws/flink-connector-aws-kinesis-firehose/archunit-violations/a6cbd99c-b115-447a-8f19-43c1094db549 +++ b/flink-connector-aws/flink-connector-aws-kinesis-firehose/archunit-violations/a6cbd99c-b115-447a-8f19-43c1094db549 @@ -1,6 +0,0 @@ -org.apache.flink.connector.firehose.sink.KinesisFirehoseSinkITCase does not satisfy: only one of the following predicates match:\ -* reside in a package 'org.apache.flink.runtime.*' and contain any fields that are static, final, and of type InternalMiniClusterExtension and annotated with @RegisterExtension\ -* reside outside of package 'org.apache.flink.runtime.*' and contain any fields that are static, final, and of type MiniClusterExtension and annotated with @RegisterExtension\ -* reside in a package 'org.apache.flink.runtime.*' and is annotated with @ExtendWith with class InternalMiniClusterExtension\ -* reside outside of package 'org.apache.flink.runtime.*' and is annotated with @ExtendWith with class MiniClusterExtension\ - or contain any fields that are public, static, and of type MiniClusterWithClientResource and final and annotated with @ClassRule or contain any fields that is of type MiniClusterWithClientResource and public and final and not static and annotated with @Rule \ No newline at end of file diff --git a/flink-connector-aws/flink-connector-aws-kinesis-firehose/src/test/java/org/apache/flink/connector/firehose/sink/KinesisFirehoseSinkITCase.java b/flink-connector-aws/flink-connector-aws-kinesis-firehose/src/test/java/org/apache/flink/connector/firehose/sink/KinesisFirehoseSinkITCase.java index 2e4105a..21aeedf 100644 --- a/flink-connector-aws/flink-connector-aws-kinesis-firehose/src/test/java/org/apache/flink/connector/firehose/sink/KinesisFirehoseSinkITCase.java +++ b/flink-connector-aws/flink-connector-aws-kinesis-firehose/src/test/java/org/apache/flink/connector/firehose/sink/KinesisFirehoseSinkITCase.java @@ -22,11 +22,13 @@ import org.apache.flink.connector.aws.testutils.AWSServicesTestUtils; import org.apache.flink.connector.aws.testutils.LocalstackContainer; import org.apache.flink.connector.firehose.sink.testutils.KinesisFirehoseTestUtils; import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment; +import org.apache.flink.test.junit5.MiniClusterExtension; import org.apache.flink.util.DockerImageVersions; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.testcontainers.junit.jupiter.Container; @@ -54,6 +56,7 @@ import static org.assertj.core.api.Assertions.assertThat; /** Integration test suite for the {@code KinesisFirehoseSink} using a localstack container. */ @Testcontainers +@ExtendWith(MiniClusterExtension.class) class KinesisFirehoseSinkITCase { private static final Logger LOG = LoggerFactory.getLogger(KinesisFirehoseSinkITCase.class); diff --git a/flink-connector-aws/flink-connector-aws-kinesis-streams/archunit-violations/84abeb9c-8355-4165-96aa-dda65b04e5e7 b/flink-connector-aws/flink-connector-aws-kinesis-streams/archunit-violations/84abeb9c-8355-4165-96aa-dda65b04e5e7 index 7c90aa6..e69de29 100644 --- a/flink-connector-aws/flink-connector-aws-kinesis-streams/archunit-violations/84abeb9c-8355-4165-96aa-dda65b04e5e7 +++ b/flink-connector-aws/flink-connector-aws-kinesis-streams/archunit-violations/84abeb9c-8355-4165-96aa-dda65b04e5e7 @@ -1,6 +0,0 @@ -org.apache.flink.connector.kinesis.sink.KinesisStreamsSinkITCase does not satisfy: only one of the following predicates match:\ -* reside in a package 'org.apache.flink.runtime.*' and contain any fields that are static, final, and of type InternalMiniClusterExtension and annotated with @RegisterExtension\ -* reside outside of package 'org.apache.flink.runtime.*' and contain any fields that are static, final, and of type MiniClusterExtension and annotated with @RegisterExtension\ -* reside in a package 'org.apache.flink.runtime.*' and is annotated with @ExtendWith with class InternalMiniClusterExtension\ -* reside outside of package 'org.apache.flink.runtime.*' and is annotated with @ExtendWith with class MiniClusterExtension\ - or contain any fields that are public, static, and of type MiniClusterWithClientResource and final and annotated with @ClassRule or contain any fields that is of type MiniClusterWithClientResource and public and final and not static and annotated with @Rule \ No newline at end of file diff --git a/flink-connector-aws/flink-connector-aws-kinesis-streams/src/test/java/org/apache/flink/connector/kinesis/sink/KinesisStreamsSinkITCase.java b/flink-connector-aws/flink-connector-aws-kinesis-streams/src/test/java/org/apache/flink/connector/kinesis/sink/KinesisStreamsSinkITCase.java index cee11e5..059097a 100644 --- a/flink-connector-aws/flink-connector-aws-kinesis-streams/src/test/java/org/apache/flink/connector/kinesis/sink/KinesisStreamsSinkITCase.java +++ b/flink-connector-aws/flink-connector-aws-kinesis-streams/src/test/java/org/apache/flink/connector/kinesis/sink/KinesisStreamsSinkITCase.java @@ -29,12 +29,14 @@ import org.apache.flink.streaming.api.datastream.DataStream; import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment; import org.apache.flink.streaming.api.functions.source.datagen.DataGeneratorSource; import org.apache.flink.streaming.api.functions.source.datagen.RandomGenerator; +import org.apache.flink.test.junit5.MiniClusterExtension; import org.apache.flink.util.DockerImageVersions; import org.assertj.core.api.Assertions; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; import org.rnorth.ducttape.ratelimits.RateLimiter; import org.rnorth.ducttape.ratelimits.RateLimiterBuilder; import org.testcontainers.containers.Network; @@ -65,6 +67,7 @@ import static org.apache.flink.connector.aws.config.AWSConfigConstants.TRUST_ALL /** IT cases for using Kinesis Data Streams Sink based on Kinesalite. */ @Testcontainers +@ExtendWith(MiniClusterExtension.class) class KinesisStreamsSinkITCase { private static final String DEFAULT_FIRST_SHARD_NAME = "shardId-000000000000";