File: test_tablespaces_06.py

package info (click to toggle)
pg-auto-failover 2.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,368 kB
  • sloc: ansic: 58,369; python: 5,515; sql: 3,177; makefile: 629; sh: 35
file content (9 lines) | stat: -rw-r--r-- 383 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
from nose.tools import *
from tests.tablespaces.tablespace_utils import node1
from tests.tablespaces.tablespace_utils import node2


# Failover is performed by the makefile Makefile, wait for it to complete
def test_001_promote_the_original_primary_successfully():
    assert node1.wait_until_state(target_state="primary")
    assert node2.wait_until_state(target_state="secondary")