예제 #1
0
 def test_delete_agent(self):
     res = agent.delete_agent(agent_ids=self.agent_id,
                              delete_monitors='false')
     assert_equal(res['status'], 'ok')
     self.agent_id = None
예제 #2
0
 def test_add_agent(self):
     temp_str = 'test_' + b2a_hex(urandom(4)).upper()
     res = agent.add_agent(name=temp_str)
     assert_equal(res['status'], 'ok')
     agent.delete_agent(agent_ids=res['data'], delete_monitors='false')
예제 #3
0
 def tearDown(self):
     if self.agent_id:
         agent.delete_agent(agent_ids=self.agent_id,
                            delete_monitors='false')
예제 #4
0
 def test_delete_agent(self):
     res = agent.delete_agent(agent_ids=self.agent_id,
                              delete_monitors='false')
     assert_equal(res['status'], 'ok')
     self.agent_id = None
예제 #5
0
 def test_add_agent(self):
     temp_str = 'test_' + b2a_hex(urandom(4)).upper()
     res = agent.add_agent(name=temp_str)
     assert_equal(res['status'], 'ok')
     agent.delete_agent(agent_ids=res['data'], delete_monitors='false')
예제 #6
0
 def tearDown(self):
     if self.agent_id:
         agent.delete_agent(agent_ids=self.agent_id,
                            delete_monitors='false')