def test_update_images():
    """ Test update_images function """
    path_dirs = test_env.PathDirs()
    plugin_parser.update_images(path_dirs)

    # Add then Remove plugin & call update_images
    plugin_parser.add_plugins(path_dirs, "https://github.com/CyberReboot/vent-plugins.git")
    plugin_parser.update_images(path_dirs)
    plugin_parser.remove_plugins(path_dirs, "https://github.com/CyberReboot/vent-plugins.git")
Exemple #2
0
def test_update_images():
    """ Test update_images function """
    path_dirs = test_env.PathDirs()
    plugin_parser.update_images(path_dirs)

    # Add then Remove plugin & call update_images
    plugin_parser.add_plugins(
        path_dirs, "https://github.com/CyberReboot/vent-plugins.git")
    plugin_parser.update_images(path_dirs)
    plugin_parser.remove_plugins(
        path_dirs, "https://github.com/CyberReboot/vent-plugins.git")
def test_remove_plugins():
    """ Remove plugins with valid dirs, invalid dirs """
    path_dirs = test_env.PathDirs()
    invalid_dirs = test_env.PathDirs(base_dir="/tmp/")
    plugin_parser.remove_plugins(path_dirs, "https://github.com/CyberReboot/vent-plugins.git")
    plugin_parser.remove_plugins(invalid_dirs, "vent-plugins")
    plugin_parser.remove_plugins(path_dirs, "https://github.com/Joecakes4u/test_template_file_ignore")
    #removing a git repo that isn't installed
    plugin_parser.remove_plugins(path_dirs, "https://github.com/Joecakes4u/test_template_file_ignore")
Exemple #4
0
def test_remove_plugins():
    """ Remove plugins with valid dirs, invalid dirs """
    path_dirs = test_env.PathDirs()
    invalid_dirs = test_env.PathDirs(base_dir="/tmp/")
    plugin_parser.remove_plugins(
        path_dirs, "https://github.com/CyberReboot/vent-plugins.git")
    plugin_parser.remove_plugins(invalid_dirs, "vent-plugins")
    plugin_parser.remove_plugins(
        path_dirs, "https://github.com/Joecakes4u/test_template_file_ignore")
    #removing a git repo that isn't installed
    plugin_parser.remove_plugins(
        path_dirs, "https://github.com/Joecakes4u/test_template_file_ignore")
Exemple #5
0
 def remove_plugin(path_dirs, url):
     plugin_parser.remove_plugins(path_dirs, url)
Exemple #6
0
 def remove_plugin(path_dirs, url):
     plugin_parser.remove_plugins(path_dirs, url)