diff --git a/requirements.txt b/requirements.txt index 7299c5bdd..6b31041e6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 diff --git a/setup.cfg b/setup.cfg index 138bb4f9a..bcc796beb 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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 diff --git a/test-requirements.txt b/test-requirements.txt index 9d2a1c264..f33be7013 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -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 \ No newline at end of file +validations-libs>=1.5.0 # Apache-2.0 diff --git a/tripleoclient/tests/v1/test_tripleo_validator.py b/tripleoclient/tests/v1/test_tripleo_validator.py index 075f2395d..3cf85d3e7 100644 --- a/tripleoclient/tests/v1/test_tripleo_validator.py +++ b/tripleoclient/tests/v1/test_tripleo_validator.py @@ -35,6 +35,7 @@ class TestValidator(base.TestCase): 'TripleOValidatorGroupInfo', 'TripleOValidatorShowParameter', 'TripleOValidatorRun', + 'TripleOValidatorCommunityInit', 'TripleOValidatorShowHistory', 'TripleOValidatorShowRun' ]) diff --git a/tripleoclient/v1/tripleo_validator.py b/tripleoclient/v1/tripleo_validator.py index da728cd1b..17b92cb71 100644 --- a/tripleoclient/v1/tripleo_validator.py +++ b/tripleoclient/v1/tripleo_validator.py @@ -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"""