Skip to content

Commit 7a856f7

Browse files
authored
Skip Testkit tests that require investigation (#1047)
1 parent 73659be commit 7a856f7

File tree

1 file changed

+49
-31
lines changed
  • testkit-backend/src/main/java/neo4j/org/testkit/backend/messages/requests

1 file changed

+49
-31
lines changed

testkit-backend/src/main/java/neo4j/org/testkit/backend/messages/requests/StartTest.java

Lines changed: 49 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -41,49 +41,67 @@ public class StartTest implements TestkitRequest
4141

4242
static
4343
{
44-
SKIP_PATTERN_TO_REASON.put( "^.*retry.TestRetryClustering.test_retry_database_unavailable$", "The test is not applicable to 4.2 driver" );
45-
SKIP_PATTERN_TO_REASON.put( "^.*retry.TestRetryClustering.test_retry_made_up_transient$", "The test is not applicable to 4.2 driver" );
46-
SKIP_PATTERN_TO_REASON.put( "^.*retry.TestRetryClustering.test_retry_ForbiddenOnReadOnlyDatabase$", "The test is not applicable to 4.2 driver" );
47-
SKIP_PATTERN_TO_REASON.put( "^.*retry.TestRetryClustering.test_retry_NotALeader$", "The test is not applicable to 4.2 driver" );
44+
SKIP_PATTERN_TO_REASON.put( "^.*retry\\.TestRetryClustering\\.test_retry_database_unavailable$", "The test is not applicable to 4.2 driver" );
45+
SKIP_PATTERN_TO_REASON.put( "^.*retry\\.TestRetryClustering\\.test_retry_made_up_transient$", "The test is not applicable to 4.2 driver" );
46+
SKIP_PATTERN_TO_REASON.put( "^.*retry\\.TestRetryClustering\\.test_retry_ForbiddenOnReadOnlyDatabase$", "The test is not applicable to 4.2 driver" );
47+
SKIP_PATTERN_TO_REASON.put( "^.*retry\\.TestRetryClustering\\.test_retry_NotALeader$", "The test is not applicable to 4.2 driver" );
4848
SKIP_PATTERN_TO_REASON
49-
.put( "^.*retry.TestRetryClustering.test_retry_ForbiddenOnReadOnlyDatabase_ChangingWriter$", "The test is not applicable to 4.2 driver" );
50-
SKIP_PATTERN_TO_REASON.put( "^.*test_routing_v4x3.RoutingV4x3\\..+$", "The tests are not applicable to 4.2 driver" );
49+
.put( "^.*retry\\.TestRetryClustering\\.test_retry_ForbiddenOnReadOnlyDatabase_ChangingWriter$", "The test is not applicable to 4.2 driver" );
50+
SKIP_PATTERN_TO_REASON.put( "^.*test_routing_v4x3\\.RoutingV4x3\\..+$", "The tests are not applicable to 4.2 driver" );
5151
SKIP_PATTERN_TO_REASON
52-
.put( "^.+routing.Routing.*\\.test_should_successfully_get_server_protocol_version$", "The test is not applicable to 4.2 driver" );
53-
SKIP_PATTERN_TO_REASON.put( "^.+routing.Routing.*\\.test_should_successfully_get_server_agent$", "The test is not applicable to 4.2 driver" );
54-
SKIP_PATTERN_TO_REASON.put( "^.+disconnects.TestDisconnects.test_client_says_goodbye$", "This test uses 4.3 Bolt" );
55-
SKIP_PATTERN_TO_REASON.put( "^.+disconnects.TestDisconnects.test_disconnect_on_hello", "This test uses 4.3 Bolt" );
56-
SKIP_PATTERN_TO_REASON.put( "^.+disconnects.TestDisconnects.test_disconnect_after_hello", "This test uses 4.3 Bolt" );
57-
SKIP_PATTERN_TO_REASON.put( "^.+disconnects.TestDisconnects.test_disconnect_on_tx_begin", "The 4.2 driver disconnects after first next" );
58-
SKIP_PATTERN_TO_REASON.put( "^.+disconnects.TestDisconnects.test_disconnect_on_tx_run", "The 4.2 driver disconnects after first next" );
59-
SKIP_PATTERN_TO_REASON.put( "^.+disconnects.TestDisconnects.test_disconnect_session_on_run", "The 4.2 driver disconnects after first next" );
60-
SKIP_PATTERN_TO_REASON.put( "^.+test_no_routing.NoRouting.test_should_read_successfully_using_session_run", SERVER_INFO_SKIP_REASON_MESSAGE );
52+
.put( "^.+routing\\.Routing.*\\.test_should_successfully_get_server_protocol_version$", "The test is not applicable to 4.2 driver" );
53+
SKIP_PATTERN_TO_REASON.put( "^.+routing\\.Routing.*\\.test_should_successfully_get_server_agent$", "The test is not applicable to 4.2 driver" );
54+
SKIP_PATTERN_TO_REASON.put( "^.+disconnects\\.TestDisconnects\\.test_client_says_goodbye$", "This test uses 4.3 Bolt" );
55+
SKIP_PATTERN_TO_REASON.put( "^.+disconnects\\.TestDisconnects\\.test_disconnect_on_hello", "This test uses 4.3 Bolt" );
56+
SKIP_PATTERN_TO_REASON.put( "^.+disconnects\\.TestDisconnects\\.test_disconnect_after_hello", "This test uses 4.3 Bolt" );
57+
SKIP_PATTERN_TO_REASON.put( "^.+disconnects\\.TestDisconnects\\.test_disconnect_on_tx_begin", "The 4.2 driver disconnects after first next" );
58+
SKIP_PATTERN_TO_REASON.put( "^.+disconnects\\.TestDisconnects\\.test_disconnect_on_tx_run", "The 4.2 driver disconnects after first next" );
59+
SKIP_PATTERN_TO_REASON.put( "^.+disconnects\\.TestDisconnects\\.test_disconnect_session_on_run", "The 4.2 driver disconnects after first next" );
60+
SKIP_PATTERN_TO_REASON.put( "^.+test_no_routing\\.NoRouting\\.test_should_read_successfully_using_session_run", SERVER_INFO_SKIP_REASON_MESSAGE );
6161
SKIP_PATTERN_TO_REASON
62-
.put( "^.+test_routing_v3.RoutingV3.test_should_read_successfully_from_reader_using_session_run", SERVER_INFO_SKIP_REASON_MESSAGE );
63-
SKIP_PATTERN_TO_REASON.put( "^.+test_routing_v3.RoutingV3.test_should_read_successfully_from_reader_using_session_run_with_default_db_driver",
62+
.put( "^.+test_routing_v3\\.RoutingV3\\.test_should_read_successfully_from_reader_using_session_run", SERVER_INFO_SKIP_REASON_MESSAGE );
63+
SKIP_PATTERN_TO_REASON.put( "^.+test_routing_v3\\.RoutingV3\\.test_should_read_successfully_from_reader_using_session_run_with_default_db_driver",
6464
SERVER_INFO_SKIP_REASON_MESSAGE );
6565
SKIP_PATTERN_TO_REASON
66-
.put( "^.+test_routing_v3.RoutingV3.test_should_read_successfully_from_reader_using_tx_function", SERVER_INFO_SKIP_REASON_MESSAGE );
67-
SKIP_PATTERN_TO_REASON.put( "^.+test_routing_v3.RoutingV3.test_should_read_successfully_from_reader_using_tx_run", SERVER_INFO_SKIP_REASON_MESSAGE );
66+
.put( "^.+test_routing_v3\\.RoutingV3\\.test_should_read_successfully_from_reader_using_tx_function", SERVER_INFO_SKIP_REASON_MESSAGE );
67+
SKIP_PATTERN_TO_REASON.put( "^.+test_routing_v3\\.RoutingV3\\.test_should_read_successfully_from_reader_using_tx_run",
68+
SERVER_INFO_SKIP_REASON_MESSAGE );
6869
SKIP_PATTERN_TO_REASON
69-
.put( "^.+test_routing_v3.RoutingV3.test_should_write_successfully_on_writer_using_session_run", SERVER_INFO_SKIP_REASON_MESSAGE );
70+
.put( "^.+test_routing_v3\\.RoutingV3\\.test_should_write_successfully_on_writer_using_session_run", SERVER_INFO_SKIP_REASON_MESSAGE );
7071
SKIP_PATTERN_TO_REASON
71-
.put( "^.+test_routing_v3.RoutingV3.test_should_write_successfully_on_writer_using_tx_function", SERVER_INFO_SKIP_REASON_MESSAGE );
72-
SKIP_PATTERN_TO_REASON.put( "^.+test_routing_v3.RoutingV3.test_should_write_successfully_on_writer_using_tx_run", SERVER_INFO_SKIP_REASON_MESSAGE );
72+
.put( "^.+test_routing_v3\\.RoutingV3\\.test_should_write_successfully_on_writer_using_tx_function", SERVER_INFO_SKIP_REASON_MESSAGE );
73+
SKIP_PATTERN_TO_REASON.put( "^.+test_routing_v3\\.RoutingV3\\.test_should_write_successfully_on_writer_using_tx_run", SERVER_INFO_SKIP_REASON_MESSAGE );
7374
SKIP_PATTERN_TO_REASON
74-
.put( "^.+test_routing_v4x1.RoutingV4x1.test_should_read_successfully_from_reader_using_session_run", SERVER_INFO_SKIP_REASON_MESSAGE );
75+
.put( "^.+test_routing_v4x1\\.RoutingV4x1\\.test_should_read_successfully_from_reader_using_session_run", SERVER_INFO_SKIP_REASON_MESSAGE );
7576
SKIP_PATTERN_TO_REASON
76-
.put( "^.+test_routing_v4x1.RoutingV4x1.test_should_read_successfully_from_reader_using_tx_function", SERVER_INFO_SKIP_REASON_MESSAGE );
77+
.put( "^.+test_routing_v4x1\\.RoutingV4x1\\.test_should_read_successfully_from_reader_using_tx_function", SERVER_INFO_SKIP_REASON_MESSAGE );
7778
SKIP_PATTERN_TO_REASON
78-
.put( "^.+test_routing_v4x1.RoutingV4x1.test_should_read_successfully_from_reader_using_tx_run", SERVER_INFO_SKIP_REASON_MESSAGE );
79+
.put( "^.+test_routing_v4x1\\.RoutingV4x1\\.test_should_read_successfully_from_reader_using_tx_run", SERVER_INFO_SKIP_REASON_MESSAGE );
7980
SKIP_PATTERN_TO_REASON
80-
.put( "^.+test_routing_v4x1.RoutingV4x1.test_should_write_successfully_on_writer_using_session_run", SERVER_INFO_SKIP_REASON_MESSAGE );
81+
.put( "^.+test_routing_v4x1\\.RoutingV4x1\\.test_should_write_successfully_on_writer_using_session_run", SERVER_INFO_SKIP_REASON_MESSAGE );
8182
SKIP_PATTERN_TO_REASON
82-
.put( "^.+test_routing_v4x1.RoutingV4x1.test_should_write_successfully_on_writer_using_tx_function", SERVER_INFO_SKIP_REASON_MESSAGE );
83-
SKIP_PATTERN_TO_REASON.put( "^.+test_routing_v4x1.RoutingV4x1.test_should_write_successfully_on_writer_using_tx_run", SERVER_INFO_SKIP_REASON_MESSAGE );
84-
SKIP_PATTERN_TO_REASON.put( "^.+versions.TestProtocolVersions.test_server_agent", SERVER_INFO_SKIP_REASON_MESSAGE );
85-
SKIP_PATTERN_TO_REASON.put( "^.+versions.TestProtocolVersions.test_server_version", SERVER_INFO_SKIP_REASON_MESSAGE );
86-
SKIP_PATTERN_TO_REASON.put( "^.+test_retry.TestRetry.test_no_retry_on_syntax_error$", "This test uses 4.3 Bolt" );
83+
.put( "^.+test_routing_v4x1\\.RoutingV4x1\\.test_should_write_successfully_on_writer_using_tx_function", SERVER_INFO_SKIP_REASON_MESSAGE );
84+
SKIP_PATTERN_TO_REASON.put( "^.+test_routing_v4x1\\.RoutingV4x1\\.test_should_write_successfully_on_writer_using_tx_run",
85+
SERVER_INFO_SKIP_REASON_MESSAGE );
86+
SKIP_PATTERN_TO_REASON.put( "^.+versions\\.TestProtocolVersions\\.test_server_agent", SERVER_INFO_SKIP_REASON_MESSAGE );
87+
SKIP_PATTERN_TO_REASON.put( "^.+versions\\.TestProtocolVersions\\.test_server_version", SERVER_INFO_SKIP_REASON_MESSAGE );
88+
SKIP_PATTERN_TO_REASON.put( "^.+test_retry\\.TestRetry\\.test_no_retry_on_syntax_error$", "This test uses 4.3 Bolt" );
89+
String skipReason = "Skipped because it needs investigation";
90+
SKIP_PATTERN_TO_REASON.put( "^.+test_should_fail_when_driver_closed_using_session_run$", skipReason );
91+
SKIP_PATTERN_TO_REASON.put( "^.+test_no_routing_v3\\.NoRoutingV3\\.test_should_accept_noop_during_records_streaming$", skipReason );
92+
SKIP_PATTERN_TO_REASON.put( "^.+test_no_routing_v3\\.NoRoutingV3\\.test_should_check_multi_db_support$", skipReason );
93+
SKIP_PATTERN_TO_REASON.put( "^.+test_no_routing_v3\\.NoRoutingV3\\.test_should_error_on_commit_failure_using_tx_commit$", skipReason );
94+
SKIP_PATTERN_TO_REASON.put( "^.+test_no_routing_v3\\.NoRoutingV3\\.test_should_error_on_database_shutdown_using_tx_commit$", skipReason );
95+
SKIP_PATTERN_TO_REASON.put( "^.+test_no_routing_v3\\.NoRoutingV3\\.test_should_error_on_database_shutdown_using_tx_run$", skipReason );
96+
SKIP_PATTERN_TO_REASON.put( "^.+test_no_routing_v3\\.NoRoutingV3\\.test_should_error_on_rollback_failure_using_session_close$", skipReason );
97+
SKIP_PATTERN_TO_REASON.put( "^.+test_no_routing_v3\\.NoRoutingV3\\.test_should_error_on_rollback_failure_using_tx_rollback$", skipReason );
98+
SKIP_PATTERN_TO_REASON.put( "^.+test_no_routing_v3\\.NoRoutingV3\\.test_should_exclude_routing_context$", skipReason );
99+
SKIP_PATTERN_TO_REASON.put( "^.+test_no_routing_v3\\.NoRoutingV3\\.test_should_read_successfully_using_read_session_run$", skipReason );
100+
SKIP_PATTERN_TO_REASON.put( "^.+test_no_routing_v3\\.NoRoutingV3\\.test_should_read_successfully_using_write_session_run$", skipReason );
101+
SKIP_PATTERN_TO_REASON.put( "^.+test_no_routing_v3\\.NoRoutingV3\\.test_should_send_custom_user_agent_using_write_session_run$", skipReason );
102+
SKIP_PATTERN_TO_REASON.put( "^.+test_no_routing_v4x1\\.NoRoutingV4x1\\..*$", skipReason );
103+
SKIP_PATTERN_TO_REASON.put( "^.+TestProtocolVersions\\.test_should_reject_server_using_verify_connectivity_bolt_3x0$", skipReason );
104+
SKIP_PATTERN_TO_REASON.put( "^.+TestProtocolVersions\\.test_supports_bolt_4x3$", skipReason );
87105
}
88106

89107
private StartTestBody data;

0 commit comments

Comments
 (0)