Make hidden stack tag configurable

the current hardcoded value is different from the default one in Heat
and is mainly applicable to a Heat deployed with devstack-gate on CI.

To make this test pass against an OpenStack cloud in a general case
the tag that must be considered by the test to be hidden must be
configurable.

Change-Id: I51e03ee919536b5946271f2f9abc78e382dd00cb
Closes-Bug: #1757117
This commit is contained in:
Pavlo Shchelokovskyy 2018-03-20 13:54:05 +02:00 committed by Pavlo Shchelokovskyy
parent fbae3959fc
commit 44fe49d9ac
2 changed files with 4 additions and 2 deletions

View File

@ -153,7 +153,9 @@ HeatGroup = [
cfg.StrOpt('heat_config_notify_script',
default=('heat-config-notify'),
help="Path to the script heat-config-notify"),
cfg.StrOpt('hidden_stack_tag',
default='data-processing-cluster',
help="Tag to be considered as hidden for stack tags tests"),
]

View File

@ -72,7 +72,7 @@ resources:
@decorators.idempotent_id('5ed79584-0684-4f9c-ae8e-44a8f874ec79')
def test_hidden_stack(self):
# Stack create with hidden stack tag
tags = 'foo,hidden'
tags = 'foo,%s' % self.conf.hidden_stack_tag
self.stack_create(
template=self.template,
tags=tags)