'Setup for v3 Cloud Policy Sample Test Cases.
The following data is created:
- Three domains: domainA, domainB and admin_domain
- One project, which name is \'project\'
- domainA has three users: domain_admin_user, project_admin_user and
just_a_user:
- domain_admin_user has role \'admin\' on domainA,
- project_admin_user has role \'admin\' on the project,
- just_a_user has a non-admin role on both domainA and the project.
- admin_domain has admin_project, and user cloud_admin_user, with an
\'admin\' role on admin_project.
- domainA has two groups (group1, group2), domainB has one group
(group3)
We test various api protection rules from the cloud sample policy
file to make sure the sample is valid and that we correctly enforce it.'

def setUp(self):

    super(IdentityTestv3CloudPolicySample, self).setUp()
    self.config_fixture.config(group='resource', admin_project_name=self.admin_project['name'])
    self.config_fixture.config(group='resource', admin_project_domain_name=self.admin_domain['name'])
    self.useFixture(ksfixtures.KeyRepository(self.config_fixture, 'credential', credential_fernet.MAX_ACTIVE_KEYS))
