Fuel plugin builder accepts 'master' as task role

Schema for all versions was updated to accept also 'master' string as
deployment task role, in addition to previous possible values:
'*' string and array of strings matching '^[0-9a-zA-Z_-]+$' regex.

Closes-bug: #1510354
DocImpact

Change-Id: Iaaf17bf42efb27beda23cf6a46137e380f8569c0
This commit is contained in:
Maciej Kwiek 2015-11-03 12:11:53 +01:00
parent 6688f25331
commit 4fc2499243
4 changed files with 14 additions and 3 deletions

View File

@ -210,6 +210,17 @@ class TestValidatorV3(BaseValidator):
'stage': 'post_deployment',
'role': '*'
},
{
'type': 'puppet',
'parameters': {
'timeout': 3,
'retries': 10,
'puppet_manifest': 'xx',
'puppet_modules': 'xxx'
},
'stage': 'post_deployment',
'role': 'master'
},
]
]

View File

@ -149,7 +149,7 @@ class BaseSchema(object):
'role': {
'oneOf': [
self.list_of_strings,
{'enum': ['*']}]}}
{'enum': ['*', 'master']}]}}
}
@property

View File

@ -83,7 +83,7 @@ class SchemaV2(BaseSchema):
'role': {
'oneOf': [
self.list_of_strings,
{'enum': ['*']}]}}
{'enum': ['*', 'master']}]}}
}
@property

View File

@ -29,7 +29,7 @@ class SchemaV3(SchemaV2):
return {
'oneOf': [
self.task_group,
{'enum': ['*']}
{'enum': ['*', 'master']}
]
}