"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/tests/unit/test_v3_assignment.py" between
keystone-17.0.0.tar.gz and keystone-18.0.0.tar.gz

About: OpenStack Keystone (Core Service: Identity) provides an authentication and authorization service for other OpenStack services. Provides a catalog of endpoints for all OpenStack services.
The "Victoria" series (latest release).

test_v3_assignment.py  (keystone-17.0.0):test_v3_assignment.py  (keystone-18.0.0)
skipping to change at line 27 skipping to change at line 27
import freezegun import freezegun
import http.client import http.client
from testtools import matchers from testtools import matchers
from keystone.common import provider_api from keystone.common import provider_api
import keystone.conf import keystone.conf
from keystone import exception from keystone import exception
from keystone.resource.backends import base as resource_base from keystone.resource.backends import base as resource_base
from keystone.tests import unit from keystone.tests import unit
from keystone.tests.unit import test_v3 from keystone.tests.unit import test_v3
from keystone.tests.unit import utils as test_utils
CONF = keystone.conf.CONF CONF = keystone.conf.CONF
PROVIDERS = provider_api.ProviderAPIs PROVIDERS = provider_api.ProviderAPIs
class SystemRoleAssignmentMixin(object): class SystemRoleAssignmentMixin(object):
def _create_new_role(self): def _create_new_role(self):
"""Create a role available for use anywhere and return the ID.""" """Create a role available for use anywhere and return the ID."""
ref = unit.new_role_ref() ref = unit.new_role_ref()
response = self.post('/roles', body={'role': ref}) response = self.post('/roles', body={'role': ref})
skipping to change at line 1989 skipping to change at line 1988
PROVIDERS.role_api.create_role(role['id'], role) PROVIDERS.role_api.create_role(role['id'], role)
self._test_list_role_assignments_include_names(role) self._test_list_role_assignments_include_names(role)
def test_list_role_assignments_include_names_domain_role(self): def test_list_role_assignments_include_names_domain_role(self):
role = unit.new_role_ref(domain_id=self.domain['id']) role = unit.new_role_ref(domain_id=self.domain['id'])
PROVIDERS.role_api.create_role(role['id'], role) PROVIDERS.role_api.create_role(role['id'], role)
self._test_list_role_assignments_include_names(role) self._test_list_role_assignments_include_names(role)
@test_utils.wip("Skipped until Bug 1754677 is resolved")
def test_remove_assignment_for_project_acting_as_domain(self): def test_remove_assignment_for_project_acting_as_domain(self):
"""Test goal: remove assignment for project acting as domain. """Test goal: remove assignment for project acting as domain.
Ensure when we have two role assignments for the project Ensure when we have two role assignments for the project
acting as domain, one dealing with it as a domain and other as a acting as domain, one dealing with it as a domain and other as a
project, we still able to remove those assignments later. project, we still able to remove those assignments later.
Test plan: Test plan:
- Create a role and a domain with a user; - Create a role and a domain with a user;
- Grant a role for this user in this domain; - Grant a role for this user in this domain;
 End of changes. 2 change blocks. 
2 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)