def deactivate_host_and_wait_for_maintanence(self,host): HostRepository(self.api).deactivate(host) Waiter.waitUntil(lambda : Waiter.host_is_maintanence(self.api,host), 200)
def deactivate_host_and_wait_for_maintanence(self, host): HostRepository(self.api).deactivate(host) Waiter.waitUntil(lambda: Waiter.host_is_maintanence(self.api, host), 200)
def create_host_and_wait_for_host_up(self, params): host = self.create_host(params) Waiter.waitUntil(lambda : Waiter.host_is_up(self.api,host), 400) return host
def create_host_and_wait_for_host_up(self, params): host = self.create_host(params) Waiter.waitUntil(lambda: Waiter.host_is_up(self.api, host), 400) return host