提交 a8910224 编写于 作者: D David Krieger 提交者: David Krieger

gpactivatestandby: split tests into local and remote

Tag existing tests with @demo_cluster and @concourse_cluster
annotations. The @demo_cluster tag denotes the scenario can run
locally. The @concourse_cluster tag denotes the scenario that requires
a remote cluster.
Authored-by: NKalen Krempely <kkrempely@pivotal.io>
(cherry picked from commit a5130acb)
上级 b38b05fc
{% set CLI_1_suites = ['gprecoverseg',
'gpcheckcat',
'gpinitstandby',
'gpactivatestandby'] %}
'gpinitstandby'] %}
{% set gppkg_additional_task = "
- task: setup_gppkg_second_install
......@@ -27,7 +26,9 @@
{'name': 'gpstate',
'use_concourse_cluster': false},
{'name': 'replication_slots',
'use_concourse_cluster': false}
'use_concourse_cluster': false},
{'name': 'gpactivatestandby',
'use_concourse_cluster': true}
] %}
## ======================================================================
......
@gpactivatestandby
Feature: gpactivatestandby
################### @demo_cluster & @concourse_cluster tests ###################
# The @concourse_cluster tag denotes the scenario that requires a remote cluster
# The @demo_cluster tag denotes the scenario can run locally
@concourse_cluster
@demo_cluster
Scenario: gpactivatestandby works
Given the database is running
And the standby is not initialized
......@@ -15,6 +22,10 @@ Feature: gpactivatestandby
And verify that gpstart on original master fails due to lower Timeline ID
And clean up and revert back to original master
########################### @demo_cluster tests ###########################
# The @demo_cluster tag denotes the scenario can run locally
@demo_cluster
Scenario: gpactivatestandby -f forces standby master to start
Given the database is running
And the standby is not initialized
......@@ -33,6 +44,7 @@ Feature: gpactivatestandby
And verify that gpstart on original master fails due to lower Timeline ID
And clean up and revert back to original master
@demo_cluster
Scenario: gpactivatestandby should fail when given invalid data directory
Given the database is running
And the standby is not initialized
......@@ -42,6 +54,7 @@ Feature: gpactivatestandby
And the user runs gpactivatestandby with options "-d invalid_directory"
Then gpactivatestandby should return a return code of 2
@demo_cluster
Scenario: gpstate after running gpactivatestandby works
Given the database is running
And the standby is not initialized
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册