Removed Stop/Start and Lock/Unlock as user tests from identity package
An Openstack cloud allows users to stop/start and lock/unlock their own servers. These tests are being removed in preparation of tests that confirm that a user is capable of successfully completing these actions. Change-Id: I68231693f66328afa00917192bb174dccdc17274
This commit is contained in:
parent
8a4847b9b9
commit
238dedef25
|
@ -28,18 +28,6 @@ class AdminAuthorizationTest(ComputeFixture):
|
|||
cls.server = cls.server_behaviors.create_active_server().entity
|
||||
cls.resources.add(cls.server.id, cls.servers_client.delete_server)
|
||||
|
||||
@tags(type='negative', net='no')
|
||||
def test_lock_server_fails_as_user(self):
|
||||
"""A lock request should fail when not made by an admin"""
|
||||
with self.assertRaises(Forbidden):
|
||||
self.servers_client.lock_server(self.server.id)
|
||||
|
||||
@tags(type='negative', net='no')
|
||||
def test_unlock_server_fails_as_user(self):
|
||||
"""An unlock request should fail when not made by an admin"""
|
||||
with self.assertRaises(Forbidden):
|
||||
self.servers_client.unlock_server(self.server.id)
|
||||
|
||||
@tags(type='negative', net='no')
|
||||
def test_migrate_server_fails_as_user(self):
|
||||
"""A migrate request should fail when not made by an admin"""
|
||||
|
@ -52,18 +40,6 @@ class AdminAuthorizationTest(ComputeFixture):
|
|||
with self.assertRaises(Forbidden):
|
||||
self.servers_client.live_migrate_server(self.server.id)
|
||||
|
||||
@tags(type='negative', net='no')
|
||||
def test_stop_server_fails_as_user(self):
|
||||
"""A stop request should fail when not made by an admin"""
|
||||
with self.assertRaises(BadRequest):
|
||||
self.servers_client.stop_server(self.server.id)
|
||||
|
||||
@tags(type='negative', net='no')
|
||||
def test_start_server_fails_as_user(self):
|
||||
"""A start request should fail when not made by an admin"""
|
||||
with self.assertRaises(BadRequest):
|
||||
self.servers_client.start_server(self.server.id)
|
||||
|
||||
@tags(type='negative', net='no')
|
||||
def test_suspend_server_fails_as_user(self):
|
||||
"""A suspend request should fail when not made by an admin"""
|
||||
|
|
Loading…
Reference in New Issue