예제 #1
0
파일: test_api.py 프로젝트: plomakin/rally
 def test_delete(self):
     deployment = db.deployment_create({})
     res = db.resource_create({"deployment_uuid": deployment["uuid"]})
     db.resource_delete(res["id"])
     resources = db.resource_get_all(deployment["uuid"])
     self.assertEqual(len(resources), 0)
예제 #2
0
 def delete_resource(resource_id):
     db.resource_delete(resource_id)
예제 #3
0
 def delete_resource(resource_id):
     db.resource_delete(resource_id)
예제 #4
0
 def test_delete(self):
     deployment = db.deployment_create({})
     res = db.resource_create({"deployment_uuid": deployment["uuid"]})
     db.resource_delete(res["id"])
     resources = db.resource_get_all(deployment["uuid"])
     self.assertEqual(0, len(resources))