Skip to content

Commit 48a1dcd

Browse files
committed
testkit-backend: Move all the skipTest to backend
The goal of this changes is make all driver specific code part of the driver repository.
1 parent 028c500 commit 48a1dcd

File tree

1 file changed

+75
-0
lines changed

1 file changed

+75
-0
lines changed

testkit-backend/src/skipped-tests.js

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,27 @@ function ifEndsWith (suffix) {
22
return testName => testName.endsWith(suffix)
33
}
44

5+
function ifStartsWith (prefix) {
6+
return testName => testName.startsWith(prefix)
7+
}
8+
9+
function ifEquals (expectedName) {
10+
return testName => testName === expectedName
11+
}
12+
13+
function or () {
14+
return testName => [...arguments].find(predicate => predicate(testName))
15+
}
16+
517
function skip (reason, predicate) {
618
return { reason, predicate }
719
}
820

921
const skippedTests = [
22+
skip(
23+
'Routing tests are disabled until the fix on the test scenario be merged',
24+
or(ifStartsWith('stub.routing'), ifStartsWith('stub.retry.TestRetry'))
25+
),
1026
skip(
1127
'Driver is failing trying to update the routing table using the original routing server',
1228
ifEndsWith(
@@ -18,6 +34,65 @@ const skippedTests = [
1834
ifEndsWith(
1935
'test_should_successfully_check_if_support_for_multi_db_is_available'
2036
)
37+
),
38+
skip(
39+
'Driver should implement resolver',
40+
or(
41+
ifEndsWith(
42+
'test_should_revert_to_initial_router_if_known_router_throws_protocol_errors'
43+
),
44+
ifEndsWith(
45+
'test_should_use_resolver_during_rediscovery_when_existing_routers_fail'
46+
)
47+
)
48+
),
49+
skip(
50+
'Test are not consuming the values inside the try catch',
51+
or(
52+
ifEndsWith('test_should_retry_read_tx_and_rediscovery_until_success'),
53+
ifEndsWith('test_should_retry_write_tx_and_rediscovery_until_success'),
54+
ifEndsWith('test_should_retry_write_tx_until_success'),
55+
ifEndsWith(
56+
'test_should_read_successfully_from_reachable_db_after_trying_unreachable_db'
57+
),
58+
ifEndsWith(
59+
'test_should_retry_write_until_success_with_leader_shutdown_during_tx_using_tx_function'
60+
)
61+
)
62+
),
63+
skip(
64+
'Requires investigation',
65+
or(
66+
ifEndsWith(
67+
'test_should_fail_when_writing_without_explicit_consumption_on_writer_that_returns_not_a_leader_code'
68+
),
69+
ifEndsWith(
70+
'test_should_fail_when_writing_on_unexpectedly_interrupting_writer_using_session_run'
71+
),
72+
ifEndsWith(
73+
'test_should_fail_with_routing_failure_on_db_not_found_discovery_failure'
74+
),
75+
ifEndsWith(
76+
'test_should_retry_write_until_success_with_leader_change_using_tx_function'
77+
),
78+
ifEndsWith(
79+
'test_should_request_rt_from_all_initial_routers_until_successful'
80+
),
81+
ifEndsWith('test_should_pass_bookmark_from_tx_to_tx_using_tx_run'),
82+
ifEndsWith('test_should_successfully_get_routing_table_with_context')
83+
)
84+
),
85+
skip(
86+
'Should implement result.consume',
87+
ifEquals('neo4j.sessionrun.TestSessionRun.test_updates_last_bookmark')
88+
),
89+
skip(
90+
'It could not guarantee the order of records requests between in the nested transactions',
91+
ifEquals('stub.iteration.TxRun.test_nested')
92+
),
93+
skip(
94+
'Keeps retrying on commit despite connection being dropped',
95+
ifEquals('stub.retry.TestRetry.test_disconnect_on_commit')
2196
)
2297
]
2398

0 commit comments

Comments
 (0)