Exposes the community validation init command
[downstream-only] This patch exposes the community validation init command to the openstack cli. Change-Id: I1c3396bb166424724ceb2745295dafe81c65e50a
This commit is contained in:
parent
cad32f38c3
commit
4ce46dcae1
@ -14,5 +14,5 @@ osc-lib>=2.3.0 # Apache-2.0
|
|||||||
tripleo-common>=16.0.0 # Apache-2.0
|
tripleo-common>=16.0.0 # Apache-2.0
|
||||||
cryptography>=2.1 # BSD/Apache-2.0
|
cryptography>=2.1 # BSD/Apache-2.0
|
||||||
ansible-runner>=1.4.5 # Apache 2.0
|
ansible-runner>=1.4.5 # Apache 2.0
|
||||||
validations-libs>=1.2.0 # Apache-2.0
|
validations-libs>=1.5.0 # Apache-2.0
|
||||||
openstacksdk>=0.48.0 # Apache-2.0
|
openstacksdk>=0.48.0 # Apache-2.0
|
||||||
|
@ -102,6 +102,7 @@ openstack.tripleoclient.v2 =
|
|||||||
tripleo_validator_group_info = tripleoclient.v1.tripleo_validator:TripleOValidatorGroupInfo
|
tripleo_validator_group_info = tripleoclient.v1.tripleo_validator:TripleOValidatorGroupInfo
|
||||||
tripleo_validator_list = tripleoclient.v1.tripleo_validator:TripleOValidatorList
|
tripleo_validator_list = tripleoclient.v1.tripleo_validator:TripleOValidatorList
|
||||||
tripleo_validator_run = tripleoclient.v1.tripleo_validator:TripleOValidatorRun
|
tripleo_validator_run = tripleoclient.v1.tripleo_validator:TripleOValidatorRun
|
||||||
|
tripleo_validator_init = tripleoclient.v1.tripleo_validator:TripleOValidatorCommunityInit
|
||||||
tripleo_validator_show = tripleoclient.v1.tripleo_validator:TripleOValidatorShow
|
tripleo_validator_show = tripleoclient.v1.tripleo_validator:TripleOValidatorShow
|
||||||
tripleo_validator_show_history = tripleoclient.v1.tripleo_validator:TripleOValidatorShowHistory
|
tripleo_validator_show_history = tripleoclient.v1.tripleo_validator:TripleOValidatorShowHistory
|
||||||
tripleo_validator_show_parameter = tripleoclient.v1.tripleo_validator:TripleOValidatorShowParameter
|
tripleo_validator_show_parameter = tripleoclient.v1.tripleo_validator:TripleOValidatorShowParameter
|
||||||
|
@ -8,4 +8,4 @@ stestr>=2.0.0 # Apache-2.0
|
|||||||
testtools>=2.2.0 # MIT
|
testtools>=2.2.0 # MIT
|
||||||
requests-mock>=1.2.0 # Apache-2.0
|
requests-mock>=1.2.0 # Apache-2.0
|
||||||
testscenarios>=0.4 # Apache-2.0/BSD
|
testscenarios>=0.4 # Apache-2.0/BSD
|
||||||
validations-libs>=1.0.4 # Apache-2.0
|
validations-libs>=1.5.0 # Apache-2.0
|
||||||
|
@ -35,6 +35,7 @@ class TestValidator(base.TestCase):
|
|||||||
'TripleOValidatorGroupInfo',
|
'TripleOValidatorGroupInfo',
|
||||||
'TripleOValidatorShowParameter',
|
'TripleOValidatorShowParameter',
|
||||||
'TripleOValidatorRun',
|
'TripleOValidatorRun',
|
||||||
|
'TripleOValidatorCommunityInit',
|
||||||
'TripleOValidatorShowHistory',
|
'TripleOValidatorShowHistory',
|
||||||
'TripleOValidatorShowRun'
|
'TripleOValidatorShowRun'
|
||||||
])
|
])
|
||||||
|
@ -15,6 +15,7 @@
|
|||||||
import logging
|
import logging
|
||||||
from tripleoclient import constants
|
from tripleoclient import constants
|
||||||
|
|
||||||
|
from validations_libs.cli.community import CommunityValidationInit
|
||||||
from validations_libs.cli.history import GetHistory
|
from validations_libs.cli.history import GetHistory
|
||||||
from validations_libs.cli.history import ListHistory
|
from validations_libs.cli.history import ListHistory
|
||||||
from validations_libs.cli.lister import ValidationList
|
from validations_libs.cli.lister import ValidationList
|
||||||
@ -79,6 +80,17 @@ class TripleOValidatorRun(Run):
|
|||||||
return parser
|
return parser
|
||||||
|
|
||||||
|
|
||||||
|
class TripleOValidatorCommunityInit(CommunityValidationInit):
|
||||||
|
"""Create the paths and infrastructure to create a community validation"""
|
||||||
|
|
||||||
|
auth_required = False
|
||||||
|
|
||||||
|
def get_parser(self, parser):
|
||||||
|
parser = super(
|
||||||
|
TripleOValidatorCommunityInit, self).get_parser(parser)
|
||||||
|
return parser
|
||||||
|
|
||||||
|
|
||||||
class TripleOValidatorShowHistory(ListHistory):
|
class TripleOValidatorShowHistory(ListHistory):
|
||||||
"""Display Validations execution history"""
|
"""Display Validations execution history"""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user