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
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')
def tearDown(self): if self.agent_id: agent.delete_agent(agent_ids=self.agent_id, delete_monitors='false')