def teardown_module(module): with shakedown.marathon_on_marathon(): try: clear_marathon() except: pass # Uninstall MoM shakedown.uninstall_package_and_wait('marathon') shakedown.delete_zk_node('universe/marathon-user') # Remove everything from root marathon clear_marathon()
def teardown_module(module): with shakedown.marathon_on_marathon(): try: clear_marathon() except: pass # Uninstall MoM shakedown.uninstall_package_and_wait('marathon') shakedown.delete_zk_node('universe/marathon-user') # Remove everything from root marathon clear_marathon()
def uninstall(service, package=PACKAGE_NAME): try: task = shakedown.get_service_task(package, service) if task is not None: cosmos_pm = packagemanager.PackageManager(cosmos.get_cosmos_url()) cosmos_pm.uninstall_app(package, True, service) shakedown.deployment_wait() assert shakedown.wait_for_service_endpoint_removal('test-marathon') shakedown.delete_zk_node('/universe/{}'.format(service)) except Exception as e: pass
def uninstall(service, package=PACKAGE_NAME): try: task = shakedown.get_service_task(package, service) if task is not None: cosmos = packagemanager.PackageManager(get_cosmos_url()) cosmos.uninstall_app(package, True, service) shakedown.deployment_wait() assert wait_for_service_endpoint_removal('test-marathon') shakedown.delete_zk_node('/universe/{}'.format(service)) except Exception as e: pass
def teardown_module(module): with shakedown.marathon_on_marathon(): try: common.clean_up_marathon() except Exception: pass shakedown.uninstall_package_and_wait('marathon') shakedown.delete_zk_node('universe/marathon-user') # Remove everything from root marathon common.clean_up_marathon()
def uninstall(): shakedown.uninstall_package_and_wait('chronos') shakedown.delete_zk_node('/chronos')