def test_env_component_install_default(self): env.install_component()
def test_env_component_install_param(self): env.install_component(component='midonet', server='test-server', distribution='debug', exact_version='thisVersion')
elif arg in ('-D', '--dist', '--distribution'): distribution = value elif arg in ('-U', '--user'): username = value elif arg in ('-P', '--pass'): password = value elif arg in ('-S', '--server'): server = value elif arg in ('-d', '--debug'): debug = True else: raise ArgMismatchException('Invalid argument' + arg) if command == 'install': print('Installing ' + component + " " + distribution) env.install_component(component, server, username, password, version, distribution, exact_version) elif command == 'uninstall': print('Uninstalling ' + component) env.uninstall_component(component, server, username, password, version, distribution, exact_version) else: raise ArgMismatchException('Command option not recognized: ' + command) except getopt.GetoptError as e: usage(None) print "Invalid Command Line: " + e.msg exit(1) except ExitCleanException: exit(1) except ArgMismatchException as a: