File: nostream_node.feature

package info (click to toggle)
patroni 4.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,704 kB
  • sloc: python: 29,743; sh: 573; makefile: 29
file content (26 lines) | stat: -rw-r--r-- 1,520 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Feature: nostream node

Scenario: check nostream node is recovering from archive
    When I start postgres-0
    And I configure and start postgres-1 with a tag nostream true
    Then "members/postgres-1" key in DCS has replication_state=in archive recovery after 10 seconds
    And replication works from postgres-0 to postgres-1 after 30 seconds

@pg110000
Scenario: check permanent logical replication slots are not copied
    When I issue a PATCH request to http://127.0.0.1:8008/config with {"postgresql": {"parameters": {"wal_level": "logical"}}, "slots":{"test_logical":{"type":"logical","database":"postgres","plugin":"test_decoding"}}}
    Then I receive a response code 200
    When I run patronictl.py restart batman postgres-0 --force
    Then postgres-0 has a logical replication slot named test_logical with the test_decoding plugin after 10 seconds
    When I configure and start postgres-2 with a tag replicatefrom postgres-1
    Then "members/postgres-2" key in DCS has replication_state=streaming after 10 seconds 
    And postgres-1 does not have a replication slot named test_logical
    And postgres-2 does not have a replication slot named test_logical

@pg110000
Scenario: check that slots are written to the /status key
    Given "status" key in DCS has postgres_0 in slots
    And "status" key in DCS has postgres_2 in slots
    And "status" key in DCS has test_logical in slots
    And "status" key in DCS has test_logical in slots
    And "status" key in DCS does not have postgres_1 in slots