def test_agent_list(self): "Test Agent Updates" api = ThousandEyesPY(username="******", password="******") agent_list = api.agent_list() self.assertTrue(isinstance(agent_list, dict))
def test_agent_list(): "Test Agent Updates" api = ThousandEyesPY(username="******", password="******") agent_list = api.agent_list() pprint(agent_list)
def test_bgp_monitor_list(): "Test bgp_monitor_list" api = ThousandEyesPY(username="******", password="******") bgp_monitor_list = api.bgp_monitor_list() pprint(bgp_monitor_list)
def test_agent_update(): "Test Agent Updates" api = ThousandEyesPY(username="******", password="******") api.update_agent(966, agentName="my cool updated agent name", accounts=315)
def test_delete_agent(): "Test Agent Updates" api = ThousandEyesPY(username="******", password="******") delete_agent = api.delete_agent(966)
def test_test_type_list(self): "Test Test List by type Grab" api = ThousandEyesPY(username="******", password="******") test_list = api.test_list(type="bgp") self.assertTrue(isinstance(test_list, dict))
def test_agent_list_bad_auth(self): "Test Agent list with Bad Auth" with self.assertRaises(AuthenticationException) as context: api = ThousandEyesPY(username="******", password="******") api.alert_rules() self.assertTrue("Bad Authentication" in str(context.exception))