def _update_manager_blueprint(self):
     src_plugin_dir = util.get_plugin_path('mock-rest-plugin')
     shutil.copytree(src_plugin_dir,
                     self.test_manager_blueprint_path.dirname() /
                     'mock-rest-plugin')
     plugins = {
         'plugin1': {
             # testing plugin installation from remote url
             'source': 'https://github.com/cloudify-cosmo/'
                       'cloudify-plugin-template/archive/{0}.zip'
                       .format(os.environ.get('BRANCH_NAME_CORE',
                                              'master'))
         },
         'plugin2': {
             # testing plugin installation in manager blueprint directory
             'source': 'mock-rest-plugin',
             # testing install_args, without the following, plugin
             # installation should fail
             'install_args': "--install-option='--do-not-fail'"
         }
     }
     plugins_path = 'node_templates.manager_configuration.' \
                    'properties.cloudify.plugins'
     with util.YamlPatcher(self.test_manager_blueprint_path) as patch:
         patch.set_value(plugins_path, plugins)
    def _update_manager_blueprint(self):
        super(NoUserstoreTests, self)._update_manager_blueprint()

        # copying custom auth provider plugin
        src_plugin_dir = util.get_plugin_path(CUSTOM_AUTH_PROVIDER_PLUGIN)
        shutil.copytree(src_plugin_dir,
                        self.test_manager_blueprint_path.dirname() /
                        CUSTOM_AUTH_PROVIDER_PLUGIN)
Esempio n. 3
0
    def _update_manager_blueprint(self):
        super(NoUserstoreTests, self)._update_manager_blueprint()

        # copying custom auth provider plugin
        src_plugin_dir = util.get_plugin_path(CUSTOM_AUTH_PROVIDER_PLUGIN)
        shutil.copytree(
            src_plugin_dir,
            self.test_manager_blueprint_path.dirname() /
            CUSTOM_AUTH_PROVIDER_PLUGIN)
 def _update_manager_blueprint(self):
     src_plugin_dir = util.get_plugin_path('mock-rest-plugin')
     shutil.copytree(src_plugin_dir,
                     self.test_manager_blueprint_path.dirname() /
                     'mock-rest-plugin')
     plugins = {
         'plugin1': {
             # testing plugin installation from remote url
             'source': 'https://github.com/cloudify-cosmo/'
                       'cloudify-plugin-template/archive/{0}.zip'
                       .format(os.environ.get('BRANCH_NAME_CORE',
                                              'master'))
         },
         'plugin2': {
             # testing plugin installation in manager blueprint directory
             'source': 'mock-rest-plugin',
             # testing install_args, without the following, plugin
             # installation should fail
             'install_args': "--install-option='--do-not-fail'"
         }
     }
     plugins_path = 'node_templates.manager.properties.cloudify.plugins'
     with util.YamlPatcher(self.test_manager_blueprint_path) as patch:
         patch.set_value(plugins_path, plugins)
 def get_manager_blueprint_additional_props_override(self):
     src_plugin_dir = util.get_plugin_path(CUSTOM_AUTH_PROVIDER_PLUGIN)
     shutil.copytree(src_plugin_dir,
                     self.test_manager_blueprint_path.dirname() /
                     CUSTOM_AUTH_PROVIDER_PLUGIN)
     return {PLUGINS_PROP_PATH: self.get_plugins_settings()}
Esempio n. 6
0
 def get_manager_blueprint_additional_props_override(self):
     src_plugin_dir = util.get_plugin_path(CUSTOM_AUTH_PROVIDER_PLUGIN)
     shutil.copytree(src_plugin_dir,
                     self.test_manager_blueprint_path.dirname() /
                     CUSTOM_AUTH_PROVIDER_PLUGIN)
     return {PLUGINS_PROP_PATH: self.get_plugins_settings()}