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:
apetrich 2022-01-05 15:51:21 +01:00 committed by mbu
parent cad32f38c3
commit 4ce46dcae1
5 changed files with 16 additions and 2 deletions

View File

@ -14,5 +14,5 @@ osc-lib>=2.3.0 # Apache-2.0
tripleo-common>=16.0.0 # Apache-2.0
cryptography>=2.1 # BSD/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

View File

@ -102,6 +102,7 @@ openstack.tripleoclient.v2 =
tripleo_validator_group_info = tripleoclient.v1.tripleo_validator:TripleOValidatorGroupInfo
tripleo_validator_list = tripleoclient.v1.tripleo_validator:TripleOValidatorList
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_history = tripleoclient.v1.tripleo_validator:TripleOValidatorShowHistory
tripleo_validator_show_parameter = tripleoclient.v1.tripleo_validator:TripleOValidatorShowParameter

View File

@ -8,4 +8,4 @@ stestr>=2.0.0 # Apache-2.0
testtools>=2.2.0 # MIT
requests-mock>=1.2.0 # Apache-2.0
testscenarios>=0.4 # Apache-2.0/BSD
validations-libs>=1.0.4 # Apache-2.0
validations-libs>=1.5.0 # Apache-2.0

View File

@ -35,6 +35,7 @@ class TestValidator(base.TestCase):
'TripleOValidatorGroupInfo',
'TripleOValidatorShowParameter',
'TripleOValidatorRun',
'TripleOValidatorCommunityInit',
'TripleOValidatorShowHistory',
'TripleOValidatorShowRun'
])

View File

@ -15,6 +15,7 @@
import logging
from tripleoclient import constants
from validations_libs.cli.community import CommunityValidationInit
from validations_libs.cli.history import GetHistory
from validations_libs.cli.history import ListHistory
from validations_libs.cli.lister import ValidationList
@ -79,6 +80,17 @@ class TripleOValidatorRun(Run):
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):
"""Display Validations execution history"""