@@ -7,12 +7,13 @@ Feature: permanent slots
77 Then I receive a response code 200
88 And Response on GET http://127.0.0.1:8008/config contains slots after 10 seconds
99 When I start postgres-1
10- And I start postgres-2
10+ And I configure and start postgres-2 with a tag nofailover true
1111 And I configure and start postgres-3 with a tag replicatefrom postgres-2
1212 Then postgres-0 has a physical replication slot named test_physical after 10 seconds
1313 And postgres-0 has a physical replication slot named postgres_1 after 10 seconds
1414 And postgres-0 has a physical replication slot named postgres_2 after 10 seconds
1515 And postgres-2 has a physical replication slot named postgres_3 after 10 seconds
16+ And postgres-2 does not have a replication slot named test_physical
1617
1718 @slot-advance
1819 Scenario : check that logical permanent slots are created
@@ -24,10 +25,9 @@ Feature: permanent slots
2425 Scenario : check that permanent slots are created on replicas
2526 Given postgres-1 has a logical replication slot named test_logical with the test_decoding plugin after 10 seconds
2627 Then Logical slot test_logical is in sync between postgres-0 and postgres-1 after 10 seconds
27- And Logical slot test_logical is in sync between postgres-0 and postgres-2 after 10 seconds
2828 And Logical slot test_logical is in sync between postgres-0 and postgres-3 after 10 seconds
2929 And postgres-1 has a physical replication slot named test_physical after 2 seconds
30- And postgres-2 has a physical replication slot named test_physical after 2 seconds
30+ And postgres-2 does not have a replication slot named test_logical
3131 And postgres-3 has a physical replication slot named test_physical after 2 seconds
3232
3333 @slot-advance
@@ -36,9 +36,9 @@ Feature: permanent slots
3636 And postgres-1 has a physical replication slot named postgres_0 after 2 seconds
3737 And postgres-1 has a physical replication slot named postgres_2 after 2 seconds
3838 And postgres-1 has a physical replication slot named postgres_3 after 2 seconds
39- And postgres-2 has a physical replication slot named postgres_0 after 2 seconds
39+ And postgres-2 does not have a replication slot named postgres_0
40+ And postgres-2 does not have a replication slot named postgres_1
4041 And postgres-2 has a physical replication slot named postgres_3 after 2 seconds
41- And postgres-2 has a physical replication slot named postgres_1 after 2 seconds
4242 And postgres-3 has a physical replication slot named postgres_0 after 2 seconds
4343 And postgres-3 has a physical replication slot named postgres_1 after 2 seconds
4444 And postgres-3 has a physical replication slot named postgres_2 after 2 seconds
@@ -50,11 +50,8 @@ Feature: permanent slots
5050 And I get all changes from physical slot test_physical on postgres-0
5151 Then Logical slot test_logical is in sync between postgres-0 and postgres-1 after 10 seconds
5252 And Physical slot test_physical is in sync between postgres-0 and postgres-1 after 10 seconds
53- And Logical slot test_logical is in sync between postgres-0 and postgres-2 after 10 seconds
54- And Physical slot test_physical is in sync between postgres-0 and postgres-2 after 10 seconds
5553 And Logical slot test_logical is in sync between postgres-0 and postgres-3 after 10 seconds
5654 And Physical slot test_physical is in sync between postgres-0 and postgres-3 after 10 seconds
57- And Physical slot postgres_1 is in sync between postgres-0 and postgres-2 after 10 seconds
5855 And Physical slot postgres_1 is in sync between postgres-0 and postgres-3 after 10 seconds
5956 And Physical slot postgres_3 is in sync between postgres-2 and postgres-0 after 20 seconds
6057 And Physical slot postgres_3 is in sync between postgres-2 and postgres-1 after 10 seconds
@@ -69,7 +66,7 @@ Feature: permanent slots
6966
7067 @slot-advance
7168 Scenario : check that only non-permanent member slots are written to the retain_slots in /status key
72- And "status" key in DCS has postgres_0 in retain_slots
69+ Given "status" key in DCS has postgres_0 in retain_slots
7370 And "status" key in DCS has postgres_1 in retain_slots
7471 And "status" key in DCS has postgres_2 in retain_slots
7572 And "status" key in DCS does not have postgres_3 in retain_slots
0 commit comments