We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent6a9850b commitb0182bdCopy full SHA for b0182bd
tests/pgpro560_test.py
@@ -31,19 +31,9 @@ def test_pgpro560_control_file_loss(self):
31
# Not delete this file permanently
32
os.rename(file,os.path.join(node.base_dir,'data','global','pg_control_copy'))
33
34
-try:
+withself.assertRaisesRegex(ProbackupException,
35
+r'ERROR: Getting system identifier:.*pg_control'):
36
self.backup_node(backup_dir,'node',node,options=['--stream'])
-# we should die here because exception is what we expect to happen
37
-self.assertEqual(
38
-1,0,
39
-"Expecting Error because pg_control was deleted.\n "
40
-"Output: {0}\n CMD: {1}".format(repr(self.output),self.cmd))
41
-exceptProbackupExceptionase:
42
-self.assertTrue(
43
-'ERROR: Could not open file'ine.messageand
44
-'pg_control'ine.message,
45
-'\n Unexpected Error Message: {0}\n CMD: {1}'.format(
46
-repr(e.message),self.cmd))
47
48
# Return this file to avoid Postger fail
49
os.rename(os.path.join(node.base_dir,'data','global','pg_control_copy'),file)