identity.admin.v2 package

Submodules

identity.admin.v2.test_endpoints module

class EndPointsTestJSON(*args, **kwargs)[source]

Bases: tempest.api.identity.base.BaseIdentityV2AdminTest

Test keystone v2 endpoints

test_create_list_delete_endpoint()[source]

Test idempotent id: 9974530a-aa28-4362-8403-f06db02b26c1

Test creating, listing and deleting a keystone endpoint

test_list_endpoints()[source]

Test idempotent id: 11f590eb-59d8-4067-8b2b-980c7f387f51

Test listing keystone endpoints

identity.admin.v2.test_roles module

class RolesTestJSON(*args, **kwargs)[source]

Bases: tempest.api.identity.base.BaseIdentityV2AdminTest

test_assign_user_role()[source]

Test idempotent id: 0146f675-ffbd-4208-b3a4-60eb628dbc5e

Assign a role to a user on a tenant.

test_get_role_by_id()[source]

Test idempotent id: db6870bd-a6ed-43be-a9b1-2f10a5c9994f

Get a role by its id.

test_list_roles()[source]

Test idempotent id: 75d9593f-50b7-4fcf-bd64-e3fb4a278e23

Return a list of all roles.

test_list_user_roles()[source]

Test idempotent id: 262e1e3e-ed71-4edd-a0e5-d64e83d66d05

List roles assigned to a user on tenant.

test_remove_user_role()[source]

Test idempotent id: f0b9292c-d3ba-4082-aa6c-440489beef69

Remove a role assigned to a user on a tenant.

test_role_create_delete()[source]

Test idempotent id: c62d909d-6c21-48c0-ae40-0a0760e6db5e

Role should be created, verified, and deleted.

identity.admin.v2.test_roles_negative module

class RolesNegativeTestJSON(*args, **kwargs)[source]

Bases: tempest.api.identity.base.BaseIdentityV2AdminTest

Negative tests of keystone roles via v2 API

test_assign_duplicate_user_role()[source]

Test idempotent id: 5c3132cd-c4c8-4402-b5ea-71eb44e97793

Test duplicate user role should not get assigned via v2 API

test_assign_user_role_by_unauthorized_user()[source]

Test idempotent id: 391df5cf-3ec3-46c9-bbe5-5cb58dd4dc41

Test non-admin user assigning a role to user via v2 API

Non-admin user should not be authorized to assign a role to user via v2 API.

test_assign_user_role_for_non_existent_role()[source]

Test idempotent id: 99b297f6-2b5d-47c7-97a9-8b6bb4f91042

Test assigning a non existent role to user via v2 API

Assigning a non existent role to user via v2 API should fail.

test_assign_user_role_for_non_existent_tenant()[source]

Test idempotent id: b2285aaa-9e76-4704-93a9-7a8acd0a6c8f

Test assigning a role on a non existent tenant via v2 API

Assigning a role on a non existent tenant via v2 API should fail.

test_assign_user_role_request_without_token()[source]

Test idempotent id: f0d2683c-5603-4aee-95d7-21420e87cfd8

Test assigning a role to a user without a valid token via v2 API

Assigning a role to a user without a valid token via v2 API should fail.

test_create_role_by_unauthorized_user()[source]

Test idempotent id: 585c8998-a8a4-4641-a5dd-abef7a8ced00

Test non-admin user should not be able to create role via v2 API

test_create_role_request_without_token()[source]

Test idempotent id: a7edd17a-e34a-4aab-8bb7-fa6f498645b8

Test creating role without a valid token via v2 API should fail

test_delete_role_by_unauthorized_user()[source]

Test idempotent id: 15347635-b5b1-4a87-a280-deb2bd6d865e

Test non-admin user should not be able to delete role via v2 API

test_delete_role_non_existent()[source]

Test idempotent id: 38373691-8551-453a-b074-4260ad8298ef

Test deleting a non existent role via v2 API should fail

test_delete_role_request_without_token()[source]

Test idempotent id: 44b60b20-70de-4dac-beaf-a3fc2650a16b

Test deleting role without a valid token via v2 API should fail

test_list_roles_by_unauthorized_user()[source]

Test idempotent id: d5d5f1df-f8ca-4de0-b2ef-259c1cc67025

Test Non-admin user should not be able to list roles via v2 API

test_list_roles_request_without_token()[source]

Test idempotent id: 11a3c7da-df6c-40c2-abc2-badd682edf9f

Test listing roles without a valid token via v2 API should fail

test_list_user_roles_by_unauthorized_user()[source]

Test idempotent id: 7391ab4c-06f3-477a-a64a-c8e55ce89837

Test non-admin user listing a user’s roles via v2 API

Non-admin user should not be authorized to list a user’s roles via v2 API.

test_list_user_roles_request_without_token()[source]

Test idempotent id: 682adfb2-fd5f-4b0a-a9ca-322e9bebb907

Test listing user’s roles without a valid token via v2 API

Listing user’s roles without a valid token via v2 API should fail

test_remove_user_role_by_unauthorized_user()[source]

Test idempotent id: d0537987-0977-448f-a435-904c15de7298

Test non-admin user removing a user’s role via v2 API

Non-admin user should not be authorized to remove a user’s role via v2 API

test_remove_user_role_non_existent_role()[source]

Test idempotent id: ab32d759-cd16-41f1-a86e-44405fa9f6d2

Test deleting a non existent role from a user via v2 API

Deleting a non existent role from a user via v2 API should fail.

test_remove_user_role_non_existent_tenant()[source]

Test idempotent id: 67a679ec-03dd-4551-bbfc-d1c93284f023

Test removing a role from a non existent tenant via v2 API

Removing a role from a non existent tenant via v2 API should fail.

test_remove_user_role_request_without_token()[source]

Test idempotent id: cac81cf4-c1d2-47dc-90d3-f2b7eb572286

Test removing a user’s role without a valid token via v2 API

Removing a user’s role without a valid token via v2 API should fail.

test_role_create_blank_name()[source]

Test idempotent id: c0b89e56-accc-4c73-85f8-9c0f866104c1

Test creating a role with a blank name via v2 API is not allowed

test_role_create_duplicate()[source]

Test idempotent id: c0cde2c8-81c1-4bb0-8fe2-cf615a3547a8

Test role names should be unique via v2 API

identity.admin.v2.test_services module

class ServicesTestJSON(*args, **kwargs)[source]

Bases: tempest.api.identity.base.BaseIdentityV2AdminTest

Test identity services via v2 API

test_create_get_delete_service()[source]

Test idempotent id: 84521085-c6e6-491c-9a08-ec9f70f90110

Test verifies the identity service create/get/delete via v2 API

test_create_service_without_description()[source]

Test idempotent id: 5d3252c8-e555-494b-a6c8-e11d7335da42

Test creating identity service without description via v2 API

Create a service only with name and type.

test_list_services()[source]

Test idempotent id: 34ea6489-012d-4a86-9038-1287cadd5eca

Test Create/List/Verify/Delete of identity service via v2 API

identity.admin.v2.test_tenant_negative module

class TenantsNegativeTestJSON(*args, **kwargs)[source]

Bases: tempest.api.identity.base.BaseIdentityV2AdminTest

Negative tests of keystone tenants via v2 API

test_create_tenant_by_unauthorized_user()[source]

Test idempotent id: d26b278a-6389-4702-8d6e-5980d80137e0

Test non-admin user creating a tenant via v2 API

Non-admin user should not be authorized to create a tenant via v2 API.

test_create_tenant_request_without_token()[source]

Test idempotent id: a3ee9d7e-6920-4dd5-9321-d4b2b7f0a638

Test creating tenant without a token via v2 API is not allowed

test_create_tenant_with_empty_name()[source]

Test idempotent id: 5a2e4ca9-b0c0-486c-9c48-64a94fba2395

Test tenant name should not be empty via v2 API

test_create_tenants_name_length_over_64()[source]

Test idempotent id: 2ff18d1e-dfe3-4359-9dc3-abf582c196b9

Test tenant name length should not exceed 64 via v2 API

test_delete_non_existent_tenant()[source]

Test idempotent id: 9c9a2aed-6e3c-467a-8f5c-89da9d1b516b

Test deleting a non existent tenant via v2 API should fail

test_list_tenant_request_without_token()[source]

Test idempotent id: df33926c-1c96-4d8d-a762-79cc6b0c3cf4

Test listing tenants without a valid token via v2 API

Listing tenants without a valid token via v2 API should fail.

test_list_tenants_by_unauthorized_user()[source]

Test idempotent id: ca9bb202-63dd-4240-8a07-8ef9c19c04bb

Test Non-admin should not be able to list tenants via v2 API

test_tenant_create_duplicate()[source]

Test idempotent id: af16f44b-a849-46cb-9f13-a751c388f739

Test tenant names should be unique via v2 API

test_tenant_delete_by_unauthorized_user()[source]

Test idempotent id: 162ba316-f18b-4987-8c0c-fd9140cd63ed

Test non-admin should not be able to delete a tenant via v2 API

test_tenant_delete_request_without_token()[source]

Test idempotent id: e450db62-2e9d-418f-893a-54772d6386b1

Test deleting a tenant without a valid token via v2 API

Deleting a tenant without a valid token via v2 API should fail.

test_tenant_update_by_unauthorized_user()[source]

Test idempotent id: 41704dc5-c5f7-4f79-abfa-76e6fedc570b

Test non-admin user updating a tenant via v2 API

Non-admin user should not be able to update a tenant via v2 API

test_tenant_update_request_without_token()[source]

Test idempotent id: 7a421573-72c7-4c22-a98e-ce539219c657

Test updating a tenant without a valid token via v2 API

Updating a tenant without a valid token via v2 API should fail

test_update_non_existent_tenant()[source]

Test idempotent id: bd20dc2a-9557-4db7-b755-f48d952ad706

Test updating a non existent tenant via v2 API should fail

identity.admin.v2.test_tenants module

class TenantsTestJSON(*args, **kwargs)[source]

Bases: tempest.api.identity.base.BaseIdentityV2AdminTest

Test identity tenants via v2 API

test_tenant_create_enabled()[source]

Test idempotent id: 670bdddc-1cd7-41c7-b8e2-751cfb67df50

Test creating a tenant that is enabled via v2 API

test_tenant_create_not_enabled()[source]

Test idempotent id: 3be22093-b30f-499d-b772-38340e5e16fb

Test creating a tenant that is not enabled via v2 API

test_tenant_create_with_description()[source]

Test idempotent id: d25e9f24-1310-4d29-b61b-d91299c21d6d

Test creating tenant with a description via v2 API

test_tenant_list_delete()[source]

Test idempotent id: 16c6e05c-6112-4b0e-b83f-5e43f221b6b0

Test listing and deleting tenants via v2 API

Create several tenants and delete them

test_tenant_update_desc()[source]

Test idempotent id: 859fcfe1-3a03-41ef-86f9-b19a47d1cd87

Test updating description attribute of a tenant via v2 API

test_tenant_update_enable()[source]

Test idempotent id: 8fc8981f-f12d-4c66-9972-2bdcf2bc2e1a

Test updating the enabled attribute of a tenant via v2 API

test_tenant_update_name()[source]

Test idempotent id: 781f2266-d128-47f3-8bdb-f70970add238

Test updating name attribute of a tenant via v2 API

identity.admin.v2.test_tokens module

class TokensTestJSON(*args, **kwargs)[source]

Bases: tempest.api.identity.base.BaseIdentityV2AdminTest

Test keystone tokens via v2 API

test_create_check_get_delete_token()[source]

Test idempotent id: 453ad4d5-e486-4b2f-be72-cffc8149e586

Test getting create/check/get/delete token for user via v2 API

test_list_endpoints_for_token()[source]

Test idempotent id: ca3ea6f7-ed08-4a61-adbd-96906456ad31

Test listing endpoints for token via v2 API

test_rescope_token()[source]

Test idempotent id: 25ba82ee-8a32-4ceb-8f50-8b8c71e8765e

Test an unscoped token can be requested via v2 API

That token can be used to request a scoped token.

identity.admin.v2.test_tokens_negative module

class TokensAdminTestNegative(*args, **kwargs)[source]

Bases: tempest.api.identity.base.BaseIdentityV2AdminTest

Negative tests of keystone tokens via v2 API

test_check_token_existence_negative()[source]

Test idempotent id: a0a0a600-4292-4364-99c5-922c834fdf05

Test checking other tenant’s token existence via v2 API

Checking other tenant’s token existence via v2 API should fail.

identity.admin.v2.test_users module

class UsersTestJSON(*args, **kwargs)[source]

Bases: tempest.api.identity.base.BaseIdentityV2AdminTest

Test keystone users via v2 API

test_authentication_request_without_token()[source]

Test idempotent id: 5d1fa498-4c2d-4732-a8fe-2b054598cfdd

Test authentication request without token via v2 API

test_create_user()[source]

Test idempotent id: 2d55a71e-da1d-4b43-9c03-d269fd93d905

Test creating a user via v2 API

test_create_user_with_enabled()[source]

Test idempotent id: 89d9fdb8-15c2-4304-a429-48715d0af33d

Test creating a user with enabled : False via v2 API

test_delete_user()[source]

Test idempotent id: 29ed26f4-a74e-4425-9a85-fdb49fa269d2

Test deleting a user via v2 API

test_get_users()[source]

Test idempotent id: a149c02e-e5e0-4b89-809e-7e8faf33ccda

Test getting users via v2 API

Get a list of users and find the test user

test_list_users_for_tenant()[source]

Test idempotent id: 6e317209-383a-4bed-9f10-075b7c82c79a

Test returning a list of all users for a tenant via v2 API

test_list_users_with_roles_for_tenant()[source]

Test idempotent id: a8b54974-40e1-41c0-b812-50fc90827971

Test listing users on tenant with roles assigned via v2 API

test_update_user()[source]

Test idempotent id: 39d05857-e8a5-4ed4-ba83-0b52d3ab97ee

Test updating user attributes via v2 API

test_update_user_password()[source]

Test idempotent id: 1aeb25ac-6ec5-4d8b-97cb-7ac3567a989f

Test updating of user password via v2 API

test_user_authentication()[source]

Test idempotent id: aca696c3-d645-4f45-b728-63646045beb1

Test that valid user’s token is authenticated via v2 API

identity.admin.v2.test_users_negative module

class UsersNegativeTestJSON(*args, **kwargs)[source]

Bases: tempest.api.identity.base.BaseIdentityV2AdminTest

Negative tests of identity users via v2 API

test_authentication_for_disabled_user()[source]

Test idempotent id: 593a4981-f6d4-460a-99a1-57a78bf20829

Disabled user’s token should not get authenticated via v2 API

test_authentication_when_tenant_is_disabled()[source]

Test idempotent id: 440a7a8d-9328-4b7b-83e0-d717010495e4

Test User’s token for a disabled tenant via v2 API

User’s token for a disabled tenant should not be authenticated via v2 API.

test_authentication_with_invalid_password()[source]

Test idempotent id: d5308b33-3574-43c3-8d87-1c090c5e1eca

Test User’s token with invalid password via v2 API

User’s token with invalid password should not be authenticated via V2 API.

test_authentication_with_invalid_tenant()[source]

Test idempotent id: 921f1ad6-7907-40b8-853f-637e7ee52178

Test User’s token for an invalid tenant via v2 API

User’s token for an invalid tenant should not be authenticated via V2 API.

test_authentication_with_invalid_username()[source]

Test idempotent id: bde9aecd-3b1c-4079-858f-beb5deaa5b5e

Non-existent user’s token should not get authorized via v2 API

test_create_user_by_unauthorized_user()[source]

Test idempotent id: 60a1f5fa-5744-4cdf-82bf-60b7de2d29a4

Non-admin should not be authorized to create a user via v2 API

test_create_user_for_non_existent_tenant()[source]

Test idempotent id: 0132cc22-7c4f-42e1-9e50-ac6aad31d59a

Creating a user in a non-existent tenant via v2 API should fail

test_create_user_request_without_a_token()[source]

Test idempotent id: 55bbb103-d1ae-437b-989b-bcdf8175c1f4

Creating a user without a valid token via v2 API should fail

test_create_user_with_duplicate_name()[source]

Test idempotent id: 57ae8558-120c-4723-9308-3751474e7ecf

Duplicate user should not be created via v2 API

test_create_user_with_empty_name()[source]

Test idempotent id: d80d0c2f-4514-4d1e-806d-0930dfc5a187

User with an empty name should not be created via v2 API

test_create_user_with_enabled_non_bool()[source]

Test idempotent id: 23a2f3da-4a1a-41da-abdd-632328a861ad

Creating a user with invalid enabled para via v2 API should fail

test_create_user_with_name_length_over_255()[source]

Test idempotent id: 7704b4f3-3b75-4b82-87cc-931d41c8f780

Length of user name should not exceed 255 via v2 API

test_delete_non_existent_user()[source]

Test idempotent id: 7cc82f7e-9998-4f89-abae-23df36495867

Attempt to delete a non-existent user via v2 API should fail

test_delete_user_request_without_a_token()[source]

Test idempotent id: 57fe1df8-0aa7-46c0-ae9f-c2e785c7504a

Deleting a user without a valid token via v2 API should fail

test_delete_users_by_unauthorized_user()[source]

Test idempotent id: d45195d5-33ed-41b9-a452-7d0d6a00f6e9

Non-admin should not be authorized to delete a user via v2 API

test_get_users_by_unauthorized_user()[source]

Test idempotent id: 284192ce-fb7c-4909-a63b-9a502e0ddd11

Non-admin should not be authorized to get user list via v2 API

test_get_users_request_without_token()[source]

Test idempotent id: a73591ec-1903-4ffe-be42-282b39fefc9d

Listing users without a valid token via v2 API should fail

test_list_users_with_invalid_tenant()[source]

Test idempotent id: f5d39046-fc5f-425c-b29e-bac2632da28e

Listing users for a non-existent tenant via v2 API should fail

test_update_user_by_unauthorized_user()[source]

Test idempotent id: 424868d5-18a7-43e1-8903-a64f95ee3aac

Non-admin should not be authorized to update user via v2 API

test_update_user_for_non_existent_user()[source]

Test idempotent id: 3d07e294-27a0-4144-b780-a2a1bf6fee19

Updating a non-existent user via v2 API should fail

test_update_user_request_without_a_token()[source]

Test idempotent id: 3cc2a64b-83aa-4b02-88f0-d6ab737c4466

Updating a user without a valid token via v2 API should fail

Module contents