Exposes the community validation init command

[downstream-only]
This patch exposes the community validation init command to
the openstack cli.

Change-Id: I1c3396bb166424724ceb2745295dafe81c65e50a
(cherry picked from commit 4ce46dcae1)
This commit is contained in:
apetrich 2022-01-05 15:51:21 +01:00 committed by matbu
parent 0aefaf3f5b
commit f465216345
5 changed files with 16 additions and 2 deletions

View File

@ -16,5 +16,5 @@ osc-lib>=2.3.0 # Apache-2.0
tripleo-common>=15.2.0 # Apache-2.0 tripleo-common>=15.2.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

View File

@ -106,6 +106,7 @@ openstack.tripleoclient.v2 =
tripleo_validator_group_info = tripleoclient.v1.tripleo_validator:DeprecatedTripleOValidatorGroupInfo tripleo_validator_group_info = tripleoclient.v1.tripleo_validator:DeprecatedTripleOValidatorGroupInfo
tripleo_validator_list = tripleoclient.v1.tripleo_validator:DeprecatedTripleOValidatorList tripleo_validator_list = tripleoclient.v1.tripleo_validator:DeprecatedTripleOValidatorList
tripleo_validator_run = tripleoclient.v1.tripleo_validator:DeprecatedTripleOValidatorRun tripleo_validator_run = tripleoclient.v1.tripleo_validator:DeprecatedTripleOValidatorRun
tripleo_validator_init = tripleoclient.v1.tripleo_validator:TripleOValidatorCommunityInit
tripleo_validator_show = tripleoclient.v1.tripleo_validator:DeprecatedTripleOValidatorShow tripleo_validator_show = tripleoclient.v1.tripleo_validator:DeprecatedTripleOValidatorShow
tripleo_validator_show_history = tripleoclient.v1.tripleo_validator:DeprecatedTripleOValidatorShowHistory tripleo_validator_show_history = tripleoclient.v1.tripleo_validator:DeprecatedTripleOValidatorShowHistory
tripleo_validator_show_parameter = tripleoclient.v1.tripleo_validator:DeprecatedTripleOValidatorShowParameter tripleo_validator_show_parameter = tripleoclient.v1.tripleo_validator:DeprecatedTripleOValidatorShowParameter

View File

@ -9,4 +9,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

View File

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

View File

@ -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
@ -169,6 +170,17 @@ class DeprecatedTripleOValidatorRun(TripleOValidatorRun):
).take_action(parsed_args) ).take_action(parsed_args)
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"""