identity.admin.v3 package¶
Submodules¶
identity.admin.v3.test_application_credentials module¶
identity.admin.v3.test_credentials module¶
identity.admin.v3.test_default_project_id module¶
identity.admin.v3.test_domain_configuration module¶
- class DomainConfigurationTestJSON(*args, **kwargs)[source]¶
Bases:
BaseIdentityV3AdminTest
Test domain configuration
- test_create_domain_config_and_show_config_groups_and_options()[source]¶
Test idempotent id: 9e3ff13c-f597-4f01-9377-d6c06c2a1477
Test creating and showing keystone config groups and options
- test_create_update_and_delete_domain_config()[source]¶
Test idempotent id: 7161023e-5dd0-4612-9da0-1bac6ac30b63
Test creating, updating and deleting keystone domain config
- test_create_update_and_delete_domain_config_groups_and_opts()[source]¶
Test idempotent id: c7510fa2-6661-4170-9c6b-4783a80651e9
Test create/update/delete keystone domain config groups and opts
- test_show_default_group_config_and_options()[source]¶
Test idempotent id: 11a02bf0-6f94-4380-b3b0-c8dc18fc0d22
Test showing default keystone group config and options
The API supports only the identity and ldap groups. For the ldap group, a valid value is url or user_tree_dn. For the identity group, a valid value is driver.
identity.admin.v3.test_domains module¶
- class DomainsTestJSON(*args, **kwargs)[source]¶
Bases:
BaseIdentityV3AdminTest
Test identity domains
- test_create_domain_with_disabled_status()[source]¶
Test idempotent id: 036df86e-bb5d-42c0-a7c2-66b9db3a6046
Test creating domain with disabled status
- test_create_domain_without_description()[source]¶
Test idempotent id: 2abf8764-309a-4fa9-bc58-201b799817ad
Test creating domain without description
- test_create_update_delete_domain()[source]¶
Test idempotent id: f2f5b44a-82e8-4dad-8084-0661ea3b18cf
Test creating, updating and deleting domain
- test_domain_delete_cascades_content()[source]¶
Test idempotent id: d8d318b7-d1b3-4c37-94c5-3c5ba0b121ea
Test deleting domain will delete its associated contents
- test_list_domains()[source]¶
Test idempotent id: 8cf516ef-2114-48f1-907b-d32726c734d4
Test listing domains
identity.admin.v3.test_domains_negative module¶
- class DomainsNegativeTestJSON(*args, **kwargs)[source]¶
Bases:
BaseIdentityV3AdminTest
Negative tests of identity domains
- test_create_domain_with_empty_name()[source]¶
Test idempotent id: 9018461d-7d24-408d-b3fe-ae37e8cd5c9e
Test creating domain with empty name should fail
Domain name should not be empty
- test_create_domain_with_name_length_over_64()[source]¶
Test idempotent id: 37b1bbf2-d664-4785-9a11-333438586eae
Test creating domain with name over length
Domain name length should not ne greater than 64 characters
- test_delete_active_domain()[source]¶
Test idempotent id: 1f3fbff5-4e44-400d-9ca1-d953f05f609b
Test deleting active domain should fail
identity.admin.v3.test_endpoint_groups module¶
identity.admin.v3.test_endpoints module¶
- class EndPointsTestJSON(*args, **kwargs)[source]¶
Bases:
BaseIdentityV3AdminTest
Test keystone endpoints
- test_create_list_show_delete_endpoint()[source]¶
Test idempotent id: 0e2446d2-c1fd-461b-a729-b9e73e3e3b37
Test creating, listing, showing and deleting keystone endpoint
identity.admin.v3.test_endpoints_negative module¶
- class EndpointsNegativeTestJSON(*args, **kwargs)[source]¶
Bases:
BaseIdentityV3AdminTest
Negative tests of endpoint
- test_create_with_enabled_False()[source]¶
Test idempotent id: ac6c137e-4d3d-448f-8c83-4f13d0942651
Test creating endpoint with invalid enabled value ‘False’
Enabled should be a boolean, not a string like ‘False’
- test_create_with_enabled_True()[source]¶
Test idempotent id: 9c43181e-0627-484a-8c79-923e8a59598b
Test creating endpoint with invalid enabled value ‘True’
Enabled should be a boolean, not a string like ‘True’
identity.admin.v3.test_groups module¶
- class GroupsV3TestJSON(*args, **kwargs)[source]¶
Bases:
BaseIdentityV3AdminTest
Test keystone groups
- test_group_create_update_get()[source]¶
Test idempotent id: 2e80343b-6c81-4ac3-88c7-452f3e9d5129
Test creating, updating and getting keystone group
- test_group_users_add_list_delete()[source]¶
Test idempotent id: 1598521a-2f36-4606-8df9-30772bd51339
Test adding/listing/deleting group users
identity.admin.v3.test_inherits module¶
- class InheritsV3TestJSON(*args, **kwargs)[source]¶
Bases:
BaseIdentityV3AdminTest
Test keystone inherits
- test_inherit_assign_check_revoke_roles_on_projects_group()[source]¶
Test idempotent id: 26021436-d5a4-4256-943c-ded01e0d4b45
Test assign/list/check/revoke inherited role on project group
- test_inherit_assign_check_revoke_roles_on_projects_user()[source]¶
Test idempotent id: 18b70e45-7687-4b72-8277-b8f1a47d7591
Test assign/list/check/revoke inherited role on project user
- test_inherit_assign_list_check_revoke_roles_on_domains_group()[source]¶
Test idempotent id: c7a8dda2-be50-4fb4-9a9c-e830771078b1
Test assign/list/check/revoke inherited role on domain group
- test_inherit_assign_list_check_revoke_roles_on_domains_user()[source]¶
Test idempotent id: 4e6f0366-97c8-423c-b2be-41eae6ac91c8
Test assign/list/check/revoke inherited role on domain user
identity.admin.v3.test_list_projects module¶
- class ListProjectsStaticTestJSON(*args, **kwargs)[source]¶
Bases:
BaseListProjectsTestJSON
Test listing projects
These tests can be executed in clouds using the pre-provisioned users
- test_list_projects()[source]¶
Test idempotent id: 1d830662-22ad-427c-8c3e-4ec854b0af44
Test listing projects
- class ListProjectsTestJSON(*args, **kwargs)[source]¶
Bases:
BaseListProjectsTestJSON
Test listing projects
identity.admin.v3.test_list_users module¶
- class UsersV3TestJSON(*args, **kwargs)[source]¶
Bases:
BaseIdentityV3AdminTest
Test listing keystone users
- test_list_user_domains()[source]¶
Test idempotent id: 08f9aabb-dcfe-41d0-8172-82b5fa0bd73d
List users with domain
identity.admin.v3.test_oauth_consumers module¶
- class OAUTHConsumersV3Test(*args, **kwargs)[source]¶
Bases:
BaseIdentityV3AdminTest
- test_create_and_show_consumer()[source]¶
Test idempotent id: c8307ea6-a86c-47fd-ae7b-5b3b2caca76d
Tests to make sure that a consumer with parameters is made
- test_delete_consumer()[source]¶
Test idempotent id: fdfa1b7f-2a31-4354-b2c7-f6ae20554f93
Tests the delete function.
identity.admin.v3.test_policies module¶
identity.admin.v3.test_projects module¶
- class ProjectsTestJSON(*args, **kwargs)[source]¶
Bases:
BaseIdentityV3AdminTest
Test identity projects
- test_associate_user_to_project()[source]¶
Test idempotent id: 59398d4a-5dc5-4f86-9a4c-c26cc804d6c6
Test associating a user to a project
- test_create_is_domain_project()[source]¶
Test idempotent id: a7eb9416-6f9b-4dbb-b71b-7f73aaef59d5
Test creating is_domain project
- test_project_create_enabled()[source]¶
Test idempotent id: 1f66dc76-50cc-4741-a200-af984509e480
Test creating a project that is enabled
- test_project_create_not_enabled()[source]¶
Test idempotent id: 78f96a9c-e0e0-4ee6-a3ba-fbf6dfd03207
Test creating a project that is not enabled
- test_project_create_with_description()[source]¶
Test idempotent id: 0ecf465c-0dc4-4532-ab53-91ffeb74d12d
Test creating project with a description
- test_project_create_with_domain()[source]¶
Test idempotent id: 5f50fe07-8166-430b-a882-3b2ee0abe26f
Test creating project with a domain
- test_project_create_with_parent()[source]¶
Test idempotent id: 1854f9c0-70bc-4d11-a08a-1c789d339e3d
Test creating root project without providing a parent_id
- test_project_get_equals_list()[source]¶
Test idempotent id: d1db68b6-aebe-4fa0-b79d-d724d2e21162
Test the result of getting project equals that of listing
- test_project_update_desc()[source]¶
Test idempotent id: f138b715-255e-4a7d-871d-351e1ef2e153
Test updating description attribute of a project
identity.admin.v3.test_projects_negative module¶
- class ProjectsNegativeStaticTestJSON(*args, **kwargs)[source]¶
Bases:
BaseIdentityV3AdminTest
Negative tests of projects
These tests can be executed in clouds using the pre-provisioned users
- test_create_project_by_unauthorized_user()[source]¶
Test idempotent id: 8fba9de2-3e1f-4e77-812a-60cb68f8df13
Non-admin user should not be authorized to create a project
- test_create_project_with_empty_name()[source]¶
Test idempotent id: 7828db17-95e5-475b-9432-9a51b4aa79a9
Project name should not be empty
- test_create_projects_name_length_over_64()[source]¶
Test idempotent id: 502b6ceb-b0c8-4422-bf53-f08fdb21e2f0
Project name length should not be greater than 64 characters
- test_delete_non_existent_project()[source]¶
Test idempotent id: 7965b581-60c1-43b7-8169-95d4ab7fc6fb
Attempt to delete a non existent project should fail
identity.admin.v3.test_regions module¶
- class RegionsTestJSON(*args, **kwargs)[source]¶
Bases:
BaseIdentityV3AdminTest
Test regions
- test_create_region_with_specific_id()[source]¶
Test idempotent id: 2c12c5b5-efcf-4aa5-90c5-bff1ab0cdbe2
Test creating region with specific id
- test_create_update_get_delete_region()[source]¶
Test idempotent id: 56186092-82e4-43f2-b954-91013218ba42
Test creating, updating, getting and updating region
identity.admin.v3.test_roles module¶
- class RolesV3TestJSON(*args, **kwargs)[source]¶
Bases:
BaseIdentityV3AdminTest
Test roles
- test_assignments_for_domain_roles()[source]¶
Test idempotent id: 3859df7e-5b78-4e4d-b10e-214c8953842a
Test assignments for domain roles
- test_assignments_for_implied_roles_create_delete()[source]¶
Test idempotent id: c8828027-df48-4021-95df-b65b92c7429e
Test assignments when implied roles are created and deleted
- test_domain_roles_create_delete()[source]¶
Test idempotent id: d92a41d2-5501-497a-84bb-6e294330e8f8
Test creating, listing and deleting domain roles
- test_grant_list_revoke_role_to_group_on_domain()[source]¶
Test idempotent id: 4bf8a70b-e785-413a-ad53-9f91ce02faa7
Test granting, listing, revoking role to group on domain
- test_grant_list_revoke_role_to_group_on_project()[source]¶
Test idempotent id: cbf11737-1904-4690-9613-97bcbb3df1c4
Test granting, listing, revoking role to group on project
- test_grant_list_revoke_role_to_group_on_system()[source]¶
Test idempotent id: c888fe4f-8018-48db-b959-542225c1b4b6
- test_grant_list_revoke_role_to_user_on_domain()[source]¶
Test idempotent id: 6c9a2940-3625-43a3-ac02-5dcec62ef3bd
Test granting, listing, revoking role to user on domain
- test_grant_list_revoke_role_to_user_on_project()[source]¶
Test idempotent id: c6b80012-fe4a-498b-9ce8-eb391c05169f
Test granting, listing, revoking role to user on project
- test_grant_list_revoke_role_to_user_on_system()[source]¶
Test idempotent id: e5a81737-d294-424d-8189-8664858aae4c
- test_implied_domain_roles()[source]¶
Test idempotent id: eb1e1c24-1bc4-4d47-9748-e127a1852c82
Test creating implied roles when roles are in domains
- test_implied_roles_create_check_show_delete()[source]¶
Test idempotent id: c90c316c-d706-4728-bcba-eb1912081b69
Test creating, checking, showing and deleting implied roles
- test_list_all_implied_roles()[source]¶
Test idempotent id: 3748c316-c18f-4b08-997b-c60567bc6235
Test listing all implied roles
- test_list_roles()[source]¶
Test idempotent id: f5654bcc-08c4-4f71-88fe-05d64e06de94
Test listing roles
identity.admin.v3.test_services module¶
- class ServicesTestJSON(*args, **kwargs)[source]¶
Bases:
BaseIdentityV3AdminTest
Test keystone services
- test_create_service_without_description()[source]¶
Test idempotent id: d1dcb1a1-2b6b-4da8-bbb8-5532ef6e8269
Create a keystone service only with name and type
identity.admin.v3.test_tokens module¶
- class TokensV3TestJSON(*args, **kwargs)[source]¶
Bases:
BaseIdentityV3AdminTest
Test tokens
- test_get_available_domain_scopes()[source]¶
Test idempotent id: ec5ecb05-af64-4c04-ac86-4d9f6f12f185
Test getting available domain scopes
To verify that listing domain scopes for a user works if the user has a domain role or belongs to a group that has a domain role. For this test, admin client is used to add roles to alt user, which performs API calls, to avoid 401 Unauthorized errors.
identity.admin.v3.test_trusts module¶
- class TrustsV3TestJSON(*args, **kwargs)[source]¶
Bases:
BaseIdentityV3AdminTest
Test keystone trusts
- test_get_trusts_all()[source]¶
Test idempotent id: 4773ebd5-ecbf-4255-b8d8-b63e6f72b65d
Test getting all keystone trusts
- test_get_trusts_query()[source]¶
Test idempotent id: 6268b345-87ca-47c0-9ce3-37792b43403a
Test getting keystone trusts
- test_trust_expire()[source]¶
Test idempotent id: 0ed14b66-cefd-4b5c-a964-65759453e292
Test expire attribute of keystone trust
To check we can create, get and delete a trust with an expiry specified
- test_trust_expire_invalid()[source]¶
Test idempotent id: 3e48f95d-e660-4fa9-85e0-5a3d85594384
Test invalid expire attribute of a keystone trust
To check an invalid expiry time is rejected with the correct error
identity.admin.v3.test_users module¶
- class UsersV3TestJSON(*args, **kwargs)[source]¶
Bases:
BaseIdentityV3AdminTest
Test keystone users
- test_get_user()[source]¶
Test idempotent id: c10dcd90-461d-4b16-8e23-4eb836c00644
Test getting a user detail
- test_list_user_projects()[source]¶
Test idempotent id: a831e70c-e35b-430b-92ed-81ebbc5437b8
Test listing the projects that a user has access upon
- test_password_history_not_enforced_in_admin_reset()[source]¶
Test idempotent id: 568cd46c-ee6c-4ab4-a33a-d3791931979e
Test setting same password when password history is not enforced