Skip to content

Skip Testkit tests that require investigation #1047

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,49 +41,67 @@ public class StartTest implements TestkitRequest

static
{
SKIP_PATTERN_TO_REASON.put( "^.*retry.TestRetryClustering.test_retry_database_unavailable$", "The test is not applicable to 4.2 driver" );
SKIP_PATTERN_TO_REASON.put( "^.*retry.TestRetryClustering.test_retry_made_up_transient$", "The test is not applicable to 4.2 driver" );
SKIP_PATTERN_TO_REASON.put( "^.*retry.TestRetryClustering.test_retry_ForbiddenOnReadOnlyDatabase$", "The test is not applicable to 4.2 driver" );
SKIP_PATTERN_TO_REASON.put( "^.*retry.TestRetryClustering.test_retry_NotALeader$", "The test is not applicable to 4.2 driver" );
SKIP_PATTERN_TO_REASON.put( "^.*retry\\.TestRetryClustering\\.test_retry_database_unavailable$", "The test is not applicable to 4.2 driver" );
SKIP_PATTERN_TO_REASON.put( "^.*retry\\.TestRetryClustering\\.test_retry_made_up_transient$", "The test is not applicable to 4.2 driver" );
SKIP_PATTERN_TO_REASON.put( "^.*retry\\.TestRetryClustering\\.test_retry_ForbiddenOnReadOnlyDatabase$", "The test is not applicable to 4.2 driver" );
SKIP_PATTERN_TO_REASON.put( "^.*retry\\.TestRetryClustering\\.test_retry_NotALeader$", "The test is not applicable to 4.2 driver" );
SKIP_PATTERN_TO_REASON
.put( "^.*retry.TestRetryClustering.test_retry_ForbiddenOnReadOnlyDatabase_ChangingWriter$", "The test is not applicable to 4.2 driver" );
SKIP_PATTERN_TO_REASON.put( "^.*test_routing_v4x3.RoutingV4x3\\..+$", "The tests are not applicable to 4.2 driver" );
.put( "^.*retry\\.TestRetryClustering\\.test_retry_ForbiddenOnReadOnlyDatabase_ChangingWriter$", "The test is not applicable to 4.2 driver" );
SKIP_PATTERN_TO_REASON.put( "^.*test_routing_v4x3\\.RoutingV4x3\\..+$", "The tests are not applicable to 4.2 driver" );
SKIP_PATTERN_TO_REASON
.put( "^.+routing.Routing.*\\.test_should_successfully_get_server_protocol_version$", "The test is not applicable to 4.2 driver" );
SKIP_PATTERN_TO_REASON.put( "^.+routing.Routing.*\\.test_should_successfully_get_server_agent$", "The test is not applicable to 4.2 driver" );
SKIP_PATTERN_TO_REASON.put( "^.+disconnects.TestDisconnects.test_client_says_goodbye$", "This test uses 4.3 Bolt" );
SKIP_PATTERN_TO_REASON.put( "^.+disconnects.TestDisconnects.test_disconnect_on_hello", "This test uses 4.3 Bolt" );
SKIP_PATTERN_TO_REASON.put( "^.+disconnects.TestDisconnects.test_disconnect_after_hello", "This test uses 4.3 Bolt" );
SKIP_PATTERN_TO_REASON.put( "^.+disconnects.TestDisconnects.test_disconnect_on_tx_begin", "The 4.2 driver disconnects after first next" );
SKIP_PATTERN_TO_REASON.put( "^.+disconnects.TestDisconnects.test_disconnect_on_tx_run", "The 4.2 driver disconnects after first next" );
SKIP_PATTERN_TO_REASON.put( "^.+disconnects.TestDisconnects.test_disconnect_session_on_run", "The 4.2 driver disconnects after first next" );
SKIP_PATTERN_TO_REASON.put( "^.+test_no_routing.NoRouting.test_should_read_successfully_using_session_run", SERVER_INFO_SKIP_REASON_MESSAGE );
.put( "^.+routing\\.Routing.*\\.test_should_successfully_get_server_protocol_version$", "The test is not applicable to 4.2 driver" );
SKIP_PATTERN_TO_REASON.put( "^.+routing\\.Routing.*\\.test_should_successfully_get_server_agent$", "The test is not applicable to 4.2 driver" );
SKIP_PATTERN_TO_REASON.put( "^.+disconnects\\.TestDisconnects\\.test_client_says_goodbye$", "This test uses 4.3 Bolt" );
SKIP_PATTERN_TO_REASON.put( "^.+disconnects\\.TestDisconnects\\.test_disconnect_on_hello", "This test uses 4.3 Bolt" );
SKIP_PATTERN_TO_REASON.put( "^.+disconnects\\.TestDisconnects\\.test_disconnect_after_hello", "This test uses 4.3 Bolt" );
SKIP_PATTERN_TO_REASON.put( "^.+disconnects\\.TestDisconnects\\.test_disconnect_on_tx_begin", "The 4.2 driver disconnects after first next" );
SKIP_PATTERN_TO_REASON.put( "^.+disconnects\\.TestDisconnects\\.test_disconnect_on_tx_run", "The 4.2 driver disconnects after first next" );
SKIP_PATTERN_TO_REASON.put( "^.+disconnects\\.TestDisconnects\\.test_disconnect_session_on_run", "The 4.2 driver disconnects after first next" );
SKIP_PATTERN_TO_REASON.put( "^.+test_no_routing\\.NoRouting\\.test_should_read_successfully_using_session_run", SERVER_INFO_SKIP_REASON_MESSAGE );
SKIP_PATTERN_TO_REASON
.put( "^.+test_routing_v3.RoutingV3.test_should_read_successfully_from_reader_using_session_run", SERVER_INFO_SKIP_REASON_MESSAGE );
SKIP_PATTERN_TO_REASON.put( "^.+test_routing_v3.RoutingV3.test_should_read_successfully_from_reader_using_session_run_with_default_db_driver",
.put( "^.+test_routing_v3\\.RoutingV3\\.test_should_read_successfully_from_reader_using_session_run", SERVER_INFO_SKIP_REASON_MESSAGE );
SKIP_PATTERN_TO_REASON.put( "^.+test_routing_v3\\.RoutingV3\\.test_should_read_successfully_from_reader_using_session_run_with_default_db_driver",
SERVER_INFO_SKIP_REASON_MESSAGE );
SKIP_PATTERN_TO_REASON
.put( "^.+test_routing_v3.RoutingV3.test_should_read_successfully_from_reader_using_tx_function", SERVER_INFO_SKIP_REASON_MESSAGE );
SKIP_PATTERN_TO_REASON.put( "^.+test_routing_v3.RoutingV3.test_should_read_successfully_from_reader_using_tx_run", SERVER_INFO_SKIP_REASON_MESSAGE );
.put( "^.+test_routing_v3\\.RoutingV3\\.test_should_read_successfully_from_reader_using_tx_function", SERVER_INFO_SKIP_REASON_MESSAGE );
SKIP_PATTERN_TO_REASON.put( "^.+test_routing_v3\\.RoutingV3\\.test_should_read_successfully_from_reader_using_tx_run",
SERVER_INFO_SKIP_REASON_MESSAGE );
SKIP_PATTERN_TO_REASON
.put( "^.+test_routing_v3.RoutingV3.test_should_write_successfully_on_writer_using_session_run", SERVER_INFO_SKIP_REASON_MESSAGE );
.put( "^.+test_routing_v3\\.RoutingV3\\.test_should_write_successfully_on_writer_using_session_run", SERVER_INFO_SKIP_REASON_MESSAGE );
SKIP_PATTERN_TO_REASON
.put( "^.+test_routing_v3.RoutingV3.test_should_write_successfully_on_writer_using_tx_function", SERVER_INFO_SKIP_REASON_MESSAGE );
SKIP_PATTERN_TO_REASON.put( "^.+test_routing_v3.RoutingV3.test_should_write_successfully_on_writer_using_tx_run", SERVER_INFO_SKIP_REASON_MESSAGE );
.put( "^.+test_routing_v3\\.RoutingV3\\.test_should_write_successfully_on_writer_using_tx_function", SERVER_INFO_SKIP_REASON_MESSAGE );
SKIP_PATTERN_TO_REASON.put( "^.+test_routing_v3\\.RoutingV3\\.test_should_write_successfully_on_writer_using_tx_run", SERVER_INFO_SKIP_REASON_MESSAGE );
SKIP_PATTERN_TO_REASON
.put( "^.+test_routing_v4x1.RoutingV4x1.test_should_read_successfully_from_reader_using_session_run", SERVER_INFO_SKIP_REASON_MESSAGE );
.put( "^.+test_routing_v4x1\\.RoutingV4x1\\.test_should_read_successfully_from_reader_using_session_run", SERVER_INFO_SKIP_REASON_MESSAGE );
SKIP_PATTERN_TO_REASON
.put( "^.+test_routing_v4x1.RoutingV4x1.test_should_read_successfully_from_reader_using_tx_function", SERVER_INFO_SKIP_REASON_MESSAGE );
.put( "^.+test_routing_v4x1\\.RoutingV4x1\\.test_should_read_successfully_from_reader_using_tx_function", SERVER_INFO_SKIP_REASON_MESSAGE );
SKIP_PATTERN_TO_REASON
.put( "^.+test_routing_v4x1.RoutingV4x1.test_should_read_successfully_from_reader_using_tx_run", SERVER_INFO_SKIP_REASON_MESSAGE );
.put( "^.+test_routing_v4x1\\.RoutingV4x1\\.test_should_read_successfully_from_reader_using_tx_run", SERVER_INFO_SKIP_REASON_MESSAGE );
SKIP_PATTERN_TO_REASON
.put( "^.+test_routing_v4x1.RoutingV4x1.test_should_write_successfully_on_writer_using_session_run", SERVER_INFO_SKIP_REASON_MESSAGE );
.put( "^.+test_routing_v4x1\\.RoutingV4x1\\.test_should_write_successfully_on_writer_using_session_run", SERVER_INFO_SKIP_REASON_MESSAGE );
SKIP_PATTERN_TO_REASON
.put( "^.+test_routing_v4x1.RoutingV4x1.test_should_write_successfully_on_writer_using_tx_function", SERVER_INFO_SKIP_REASON_MESSAGE );
SKIP_PATTERN_TO_REASON.put( "^.+test_routing_v4x1.RoutingV4x1.test_should_write_successfully_on_writer_using_tx_run", SERVER_INFO_SKIP_REASON_MESSAGE );
SKIP_PATTERN_TO_REASON.put( "^.+versions.TestProtocolVersions.test_server_agent", SERVER_INFO_SKIP_REASON_MESSAGE );
SKIP_PATTERN_TO_REASON.put( "^.+versions.TestProtocolVersions.test_server_version", SERVER_INFO_SKIP_REASON_MESSAGE );
SKIP_PATTERN_TO_REASON.put( "^.+test_retry.TestRetry.test_no_retry_on_syntax_error$", "This test uses 4.3 Bolt" );
.put( "^.+test_routing_v4x1\\.RoutingV4x1\\.test_should_write_successfully_on_writer_using_tx_function", SERVER_INFO_SKIP_REASON_MESSAGE );
SKIP_PATTERN_TO_REASON.put( "^.+test_routing_v4x1\\.RoutingV4x1\\.test_should_write_successfully_on_writer_using_tx_run",
SERVER_INFO_SKIP_REASON_MESSAGE );
SKIP_PATTERN_TO_REASON.put( "^.+versions\\.TestProtocolVersions\\.test_server_agent", SERVER_INFO_SKIP_REASON_MESSAGE );
SKIP_PATTERN_TO_REASON.put( "^.+versions\\.TestProtocolVersions\\.test_server_version", SERVER_INFO_SKIP_REASON_MESSAGE );
SKIP_PATTERN_TO_REASON.put( "^.+test_retry\\.TestRetry\\.test_no_retry_on_syntax_error$", "This test uses 4.3 Bolt" );
String skipReason = "Skipped because it needs investigation";
SKIP_PATTERN_TO_REASON.put( "^.+test_should_fail_when_driver_closed_using_session_run$", skipReason );
SKIP_PATTERN_TO_REASON.put( "^.+test_no_routing_v3\\.NoRoutingV3\\.test_should_accept_noop_during_records_streaming$", skipReason );
SKIP_PATTERN_TO_REASON.put( "^.+test_no_routing_v3\\.NoRoutingV3\\.test_should_check_multi_db_support$", skipReason );
SKIP_PATTERN_TO_REASON.put( "^.+test_no_routing_v3\\.NoRoutingV3\\.test_should_error_on_commit_failure_using_tx_commit$", skipReason );
SKIP_PATTERN_TO_REASON.put( "^.+test_no_routing_v3\\.NoRoutingV3\\.test_should_error_on_database_shutdown_using_tx_commit$", skipReason );
SKIP_PATTERN_TO_REASON.put( "^.+test_no_routing_v3\\.NoRoutingV3\\.test_should_error_on_database_shutdown_using_tx_run$", skipReason );
SKIP_PATTERN_TO_REASON.put( "^.+test_no_routing_v3\\.NoRoutingV3\\.test_should_error_on_rollback_failure_using_session_close$", skipReason );
SKIP_PATTERN_TO_REASON.put( "^.+test_no_routing_v3\\.NoRoutingV3\\.test_should_error_on_rollback_failure_using_tx_rollback$", skipReason );
SKIP_PATTERN_TO_REASON.put( "^.+test_no_routing_v3\\.NoRoutingV3\\.test_should_exclude_routing_context$", skipReason );
SKIP_PATTERN_TO_REASON.put( "^.+test_no_routing_v3\\.NoRoutingV3\\.test_should_read_successfully_using_read_session_run$", skipReason );
SKIP_PATTERN_TO_REASON.put( "^.+test_no_routing_v3\\.NoRoutingV3\\.test_should_read_successfully_using_write_session_run$", skipReason );
SKIP_PATTERN_TO_REASON.put( "^.+test_no_routing_v3\\.NoRoutingV3\\.test_should_send_custom_user_agent_using_write_session_run$", skipReason );
SKIP_PATTERN_TO_REASON.put( "^.+test_no_routing_v4x1\\.NoRoutingV4x1\\..*$", skipReason );
SKIP_PATTERN_TO_REASON.put( "^.+TestProtocolVersions\\.test_should_reject_server_using_verify_connectivity_bolt_3x0$", skipReason );
SKIP_PATTERN_TO_REASON.put( "^.+TestProtocolVersions\\.test_supports_bolt_4x3$", skipReason );
}

private StartTestBody data;
Expand Down