提交 0cc2a7f4 编写于 作者: J Jimmy Yih

Fix TINC gpactivatestandby negative test

The gpactivatestandby utility was recently changed in commit
https://github.com/greenplum-db/gpdb/commit/c42035ea6089ad9f447f2780b90e7b53413d5e7c
to disable some validations on master data directory. The commit was
merged without running this test and made our CI pipeline red... so
here's the test fix to update expected error handling stdout.
上级 c7befb1d
...@@ -57,8 +57,11 @@ class gpactivatestandby(StandbyRunMixin, MPPTestCase): ...@@ -57,8 +57,11 @@ class gpactivatestandby(StandbyRunMixin, MPPTestCase):
'gpactivatestandby -a -d invalid_directory') 'gpactivatestandby -a -d invalid_directory')
cmd.run() cmd.run()
results = cmd.get_results() results = cmd.get_results()
expected = 'Current setting of MASTER_DATA_DIRECTORY not same as -d parameter' expected = 'Please make sure the command gpactivatestandby is executed on current Standby host'
expected_regex = 'Error activating standby master: Critical required file on standby \".*\" is not present'
self.assertIn(expected, results.stdout) self.assertIn(expected, results.stdout)
self.assertRegexpMatches(results.stdout, expected_regex)
self.assertEqual(results.rc, 2) self.assertEqual(results.rc, 2)
def test_from_not_running(self): def test_from_not_running(self):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册