This is an automated email from the ASF dual-hosted git repository.
chesnay pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/flink-connector-cassandra.git
The following commit(s) were added to refs/heads/main by this push:
new 7d8942b [FLINK-31807] Include all test code in architecture tests
7d8942b is described below
commit 7d8942b264fc0c7364cced23a93f14157e9c9470
Author: Chesnay Schepler <[email protected]>
AuthorDate: Fri Apr 14 10:42:03 2023 +0200
[FLINK-31807] Include all test code in architecture tests
---
.../archunit-violations/dc1ba6f4-3d84-498c-a085-e02ba5936201 | 8 +++++++-
.../org/apache/flink/architecture/TestCodeArchitectureTest.java | 4 +++-
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git
a/flink-connector-cassandra/archunit-violations/dc1ba6f4-3d84-498c-a085-e02ba5936201
b/flink-connector-cassandra/archunit-violations/dc1ba6f4-3d84-498c-a085-e02ba5936201
index d4b3e56..8484957 100644
---
a/flink-connector-cassandra/archunit-violations/dc1ba6f4-3d84-498c-a085-e02ba5936201
+++
b/flink-connector-cassandra/archunit-violations/dc1ba6f4-3d84-498c-a085-e02ba5936201
@@ -1,6 +1,12 @@
-org.apache.flink.streaming.connectors.cassandra.CassandraConnectorITCase does
not satisfy: only one of the following predicates match:\
+org.apache.flink.connector.cassandra.source.CassandraSourceITCase 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
+org.apache.flink.streaming.connectors.cassandra.CassandraConnectorITCase 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-cassandra/src/test/java/org/apache/flink/architecture/TestCodeArchitectureTest.java
b/flink-connector-cassandra/src/test/java/org/apache/flink/architecture/TestCodeArchitectureTest.java
index 25ad1ad..ff9e289 100644
---
a/flink-connector-cassandra/src/test/java/org/apache/flink/architecture/TestCodeArchitectureTest.java
+++
b/flink-connector-cassandra/src/test/java/org/apache/flink/architecture/TestCodeArchitectureTest.java
@@ -29,7 +29,9 @@ import com.tngtech.archunit.junit.ArchTests;
@AnalyzeClasses(
packages = {
"org.apache.flink.batch.connectors.cassandra",
- "org.apache.flink.streaming.connectors.cassandra"
+ "org.apache.flink.streaming.connectors.cassandra",
+ "org.apache.flink.connector.cassandra",
+ "org.apache.flink.connectors.cassandra"
},
importOptions = {
ImportOption.OnlyIncludeTests.class,