gpaddmirrors: add multi-host tablespace test
@@ -58,6 +58,7 @@ Feature: Tests for gpaddmirrors
And the user runs "gpstop -aqM fast"
@concourse_cluster
+
Scenario: gpaddmirrors with a default master data directory
Given a working directory of the test as '/tmp/gpaddmirrors'
And the database is killed on hosts "mdw,sdw1"
@@ -103,9 +104,26 @@ Feature: Tests for gpaddmirrors
And gpaddmirrors adds mirrors with temporary data dir
And an FTS probe is triggered
And the segments are synchronized
- When user kills all primary processes with SIGTERM
+ When user kills all primary processes
And user can start transactions
Then verify that there is a "heap" table "public.heap_table" in "gptest" with "100" rows
Then verify that there is a "ao" table "public.ao_table" in "gptest" with "100" rows
Then verify that there is a "co" table "public.co_table" in "gptest" with "100" rows
And the user runs "gpstop -aqM fast"
+
+ @concourse_cluster
+ Scenario: tablespaces work on a multi-host environment
+ Given a working directory of the test as '/tmp/gpaddmirrors'
+ And the database is not running
+ And a cluster is created with no mirrors on "mdw" and "sdw1"
+ And a tablespace is created with data
+ When gpaddmirrors adds mirrors
+ Then verify the database has mirrors
+
+ When an FTS probe is triggered
+ And the segments are synchronized
+ Then the tablespace is valid
+
+ When user kills all primary processes
+ And user can start transactions
+ Then the tablespace is valid
