def update_plugin_on_manager(version_path, plugin_name, plugin_packages):
    version = validate_plugin_version(version_path)
    for package in plugin_packages:
        replace_plugin_package_on_manager(
            plugin_name,
            version,
            package,
        )
from os import path, pardir
from ecosystem_cicd_tools.validations import validate_plugin_version
from ecosystem_tests.dorkl.commands import replace_plugin_package_on_manager

abs_path = path.join(
    path.abspath(path.join(path.dirname(__file__), pardir)))

if __name__ == '__main__':
    version = validate_plugin_version(abs_path)
    for package in ['cloudify_helm', 'helm_sdk']:
        replace_plugin_package_on_manager(
            'cloudify-helm-plugin', version, package, )
Esempio n. 3
0
from os import path, pardir
from ecosystem_cicd_tools.validations import validate_plugin_version

package_dir = path.join(
    path.abspath(
        path.join(path.dirname(__file__), pardir)
    )
)


if __name__ == '__main__':
    validate_plugin_version(package_dir)