diff options
author | Dolph Mathews <dolph.mathews@gmail.com> | 2012-03-23 10:23:06 -0500 |
---|---|---|
committer | Dolph Mathews <dolph.mathews@gmail.com> | 2012-03-27 16:42:10 -0700 |
commit | 5c8dcd2f2f1a7645f93f39c3f5784920e2099998 (patch) | |
tree | a05a0e181f98af04342e0ebade5f262bc94c278b /tests | |
parent | a7a658093d86fc4c343ef1b69bd82327116299eb (diff) | |
download | keystone-5c8dcd2f2f1a7645f93f39c3f5784920e2099998.tar.gz keystone-5c8dcd2f2f1a7645f93f39c3f5784920e2099998.tar.xz keystone-5c8dcd2f2f1a7645f93f39c3f5784920e2099998.zip |
tenant-crud 404 (bug 963056)
tenant-get
tenant-update
tenant-delete
Change-Id: I9e67cea985f546c9ddf6ce6d82a11486099bd524
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_keystoneclient.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/test_keystoneclient.py b/tests/test_keystoneclient.py index 3600ef1f..7c530133 100644 --- a/tests/test_keystoneclient.py +++ b/tests/test_keystoneclient.py @@ -235,6 +235,27 @@ class KeystoneClientTests(object): self.assertFalse([t for t in client.tenants.list() if t.id == tenant.id]) + def test_tenant_delete_404(self): + from keystoneclient import exceptions as client_exceptions + client = self.get_client(admin=True) + self.assertRaises(client_exceptions.NotFound, + client.tenants.delete, + tenant=uuid.uuid4().hex) + + def test_tenant_get_404(self): + from keystoneclient import exceptions as client_exceptions + client = self.get_client(admin=True) + self.assertRaises(client_exceptions.NotFound, + client.tenants.get, + tenant_id=uuid.uuid4().hex) + + def test_tenant_update_404(self): + from keystoneclient import exceptions as client_exceptions + client = self.get_client(admin=True) + self.assertRaises(client_exceptions.NotFound, + client.tenants.update, + tenant_id=uuid.uuid4().hex) + def test_tenant_list(self): client = self.get_client() tenants = client.tenants.list() |