Skip to content

Commit

Permalink
Fixes LP Bug# 930482 - Test for security -tenanid by pass
Browse files Browse the repository at this point in the history
Change-Id: Idd6b6d0b7086ddf7682cfa6ac94daf5020a9eb82
  • Loading branch information
sapan-kona authored and RajalakshmiGanesan committed Aug 20, 2012
1 parent 6729d26 commit 3793976
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tempest/tests/compute/test_authorization.py
Expand Up @@ -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):
Expand Down

0 comments on commit 3793976

Please sign in to comment.