File: custom_bootstrap.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 (17 lines) | stat: -rw-r--r-- 792 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Feature: custom bootstrap
    We should check that patroni can bootstrap a new cluster from a backup

Scenario: clone existing cluster using pg_basebackup
    Given I start postgres-0
    Then postgres-0 is a leader after 10 seconds
    When I add the table foo to postgres-0
    And I start postgres-1 in a cluster batman1 as a clone of postgres-0
    Then postgres-1 is a leader of batman1 after 10 seconds
    Then table foo is present on postgres-1 after 10 seconds

Scenario: make a backup and do a restore into a new cluster
    Given I add the table bar to postgres-1
    And I do a backup of postgres-1
    When I start postgres-2 in a cluster batman2 from backup
    Then postgres-2 is a leader of batman2 after 30 seconds
    And table bar is present on postgres-2 after 10 seconds