Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge "Fixes LP Bug# 930482 - Test for security -tenanid by pass"

  • Loading branch information...
commit b88c6fc170dd67d8b3a00a445c4dc96ba6a3faf3 2 parents 0312b69 + 3793976
Jenkins authored openstack-gerrit committed
Showing with 11 additions and 0 deletions.
  1. +11 −0 tempest/tests/compute/test_authorization.py
View
11 tempest/tests/compute/test_authorization.py
@@ -133,6 +133,17 @@ def test_list_server_addresses_by_network_for_alt_account_fails(self):
server_id = self.server['id']
self.alt_client.list_addresses_by_network(server_id, 'public')
+ def test_list_servers_with_alternate_tenant(self):
+ """
+ A list on servers from one tenant should not
+ show on alternate tenant
+ """
+ #Listing servers from alternate tenant
+ alt_server_ids = []
+ resp, body = self.alt_client.list_servers()
+ alt_server_ids = [s['id'] for s in body['servers']]
+ self.assertNotIn(self.server['id'], alt_server_ids)
+
@raises(exceptions.NotFound)
@attr(type='negative')
def test_change_password_for_alt_account_fails(self):
Please sign in to comment.
Something went wrong with that request. Please try again.