Example #1
0
 def test_provisioning_node_not_becomes_offline(self):
     node = self.env.create_node(
         status="provisioning",
         roles=["controller"],
         name="Dead or alive"
     )
     assassind.update_nodes_status(self.ZERO_TIMEOUT)
     self.assertEqual(node.online, True)
Example #2
0
 def test_node_becomes_offline(self):
     node = self.env.create_node(status="discover",
                                 roles=["controller"],
                                 name="Dead or alive")
     assassind.update_nodes_status(self.VERY_LONG_TIMEOUT)
     self.assertEqual(node.online, True)
     assassind.update_nodes_status(self.ZERO_TIMEOUT)
     self.assertEqual(node.online, False)
Example #3
0
 def test_node_becomes_offline(self):
     node = self.env.create_node(
         status="discover",
         roles=["controller"],
         name="Dead or alive"
     )
     assassind.update_nodes_status(self.VERY_LONG_TIMEOUT)
     self.assertEqual(node.online, True)
     assassind.update_nodes_status(self.ZERO_TIMEOUT)
     self.assertEqual(node.online, False)
Example #4
0
 def test_provisioning_node_not_becomes_offline(self):
     node = self.env.create_node(status="provisioning",
                                 roles=["controller"],
                                 name="Dead or alive")
     assassind.update_nodes_status(self.ZERO_TIMEOUT)
     self.assertEqual(node.online, True)