def test_update_server(self): new_name = data_utils.rand_name(self.__class__.__name__ + '-server') self.rbac_utils.switch_role(self, toggle_rbac_role=True) try: self.servers_client.update_server(self.server['id'], name=new_name) waiters.wait_for_server_status(self.admin_servers_client, self.server['id'], 'ACTIVE') except exceptions.ServerFault as e: # Some other policy may have blocked it. LOG.info("ServerFault exception caught. Some other policy " "blocked updating of server") raise rbac_exceptions.RbacConflictingPolicies(e)
def test_policy(*args): raise rbac_exceptions.RbacConflictingPolicies()