提交 d63cb7af 编写于 作者: C Chris Hajas

Fix backup/restore tests for dumping database grants

The changes in commit bdafd0ce should
not be tested against the backup43/restore5 test since this code is not yet
present in 4.3. Additionally, query the 'template1' database when
verifying roles exist.
上级 0eed4679
......@@ -1682,6 +1682,7 @@ Feature: Validate command line arguments
And the timestamp from gpcrondump is stored
@ddpartIII
@skip_for_gpdb_43
Scenario: 119 Backup database grants
Given the backup test is initialized with database "bkdb119"
And the user runs """psql -c "DROP ROLE IF EXISTS user_grant" bkdb119"""
......
......@@ -108,8 +108,8 @@ Feature: Validate command line arguments
Given the old timestamps are read from json
When the user runs gpdbrestore without -e with the stored timestamp and options "-G only"
Then gpdbrestore should return a return code of 0
And verify that a role "foo_user" exists in database "bkdb11"
And the user runs "psql -c 'DROP ROLE foo_user' bkdb11"
And verify that a role "foo_user" exists in database "template1"
And the user runs "psql -c 'DROP ROLE foo_user' template1"
@valgrind
Scenario: 12 Valgrind test of gp_restore for incremental backup
......@@ -1147,6 +1147,7 @@ Feature: Validate command line arguments
And verify that "blocksize=65536" appears in the datconfig for database "bkdb118"
@ddpartIII
@skip_for_gpdb_43
Scenario: 119 Backup database grants
Given the old timestamps are read from json
When the user runs gpdbrestore -e with the stored timestamp
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册