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)
Exemplo n.º 2
0
 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
Exemplo n.º 4
0
 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