def test_add_external_monitor(self): test_args = {'type': 'http', 'name': 'add_' + self.temp_str, 'detailed_test_type': '1', 'url': 'google.com', 'interval': 5, 'location_ids': [1,5,9], 'tag': self.temp_str} res = external.add_external_monitor(**test_args) assert_equals(res['status'],'ok') external.delete_external_monitor(testIds=res['data']['testId'])
def test_delete_external_monitor(self): res = external.delete_external_monitor(test_ids=self.test_id) assert_equals(res['status'], 'ok')
def tearDown(self): # delete the external monitor used in the tests external.delete_external_monitor(test_ids=self.test_id)