Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add backup testcase
  • Loading branch information
Valeria1235 committed Mar 1, 2018
commit ec7605ec6bd4f3f3ed6e4467c7cc85423b6beed6
7 changes: 7 additions & 0 deletions tests/test_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,13 @@ def test_backup_exhaust(self):
with self.assertRaises(BackupException):
backup.spawn_primary()

def test_backup_wrong_xlog_method(self):
with get_new_node() as node:
node.init(allow_streaming=True).start()

with self.assertRaises(BackupException, msg='Invalid xlog_method "wrong"'):
node.backup(xlog_method='wrong')

def test_replicate(self):
with get_new_node() as node:
node.init(allow_streaming=True).start()
Expand Down