-
Task
-
Resolution: Done
-
Medium
-
None
-
None
Since commit [0] to cloudify's dsl_parser library, released in 4.2 (July 2017), all secrets are validated (for presence) when a deployment plan is prepared. A release of cloudify-common supporting python3 will be version 5.0.0 or likely above.
Helm plugin tests use the get_secret function, which is not available in a local workflow, and this validation fails.
A workaround is not to use the get_secret function during unit testing.
====================================================================== ERROR: :param cfy_local: ---------------------------------------------------------------------- Traceback (most recent call last): File "ccsdk/plugins/helm/.tox/py36/lib/python3.6/site-packages/cloudify/test_utils/local_workflow_decorator.py", line 258, in wrapped_test test_env = self.set_up(func_self) File "ccsdk/plugins/helm/.tox/py36/lib/python3.6/site-packages/cloudify/test_utils/local_workflow_decorator.py", line 237, in set_up test_env = local.init_env(temp_blueprint_path, **self.init_args) File "ccsdk/plugins/helm/.tox/py36/lib/python3.6/site-packages/cloudify/workflows/local.py", line 175, in init_env validate_version=validate_version) File "ccsdk/plugins/helm/.tox/py36/lib/python3.6/site-packages/cloudify/workflows/local.py", line 72, in __init__ validate_version) File "ccsdk/plugins/helm/.tox/py36/lib/python3.6/site-packages/cloudify/workflows/local.py", line 197, in _parse_plan inputs=inputs) File "ccsdk/plugins/helm/.tox/py36/lib/python3.6/site-packages/dsl_parser/tasks.py", line 152, in prepare_deployment_plan _validate_secrets(plan, get_secret_method) File "ccsdk/plugins/helm/.tox/py36/lib/python3.6/site-packages/dsl_parser/tasks.py", line 123, in _validate_secrets "The get_secret intrinsic function is not supported" dsl_parser.exceptions.UnsupportedGetSecretError: The get_secret intrinsic function is not supported
- blocks
-
CCSDK-1931 Prepare python3 conversions for remaining plugins
- Closed