openstackclient.tests.identity.v2_0 package¶
Submodules¶
openstackclient.tests.identity.v2_0.fakes module¶
-
class
openstackclient.tests.identity.v2_0.fakes.
FakeCatalog
¶ Bases:
object
Fake one or more catalog.
-
static
create_catalog
(attrs=None)¶ Create a fake catalog.
Parameters: attrs (Dictionary) – A dictionary with all attributes Returns: A FakeResource object with id, name, type and so on.
-
static
-
class
openstackclient.tests.identity.v2_0.fakes.
FakeEndpoint
¶ Bases:
object
Fake one or more endpoint.
-
static
create_endpoints
(attrs=None, count=2)¶ Create multiple fake endpoints.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- count (int) – The number of endpoints to fake
Returns: A list of FakeResource objects faking the endpoints
-
static
create_one_endpoint
(attrs=None)¶ Create a fake agent.
Parameters: attrs (Dictionary) – A dictionary with all attributes Returns: A FakeResource object, with id, name, region, and so on
-
static
-
class
openstackclient.tests.identity.v2_0.fakes.
FakeExtension
¶ Bases:
object
Fake one or more extension.
-
static
create_one_extension
(attrs=None)¶ Create a fake extension.
Parameters: attrs (Dictionary) – A dictionary with all attributes Returns: A FakeResource object with name, namespace, etc.
-
static
-
class
openstackclient.tests.identity.v2_0.fakes.
FakeIdentityv2Client
(**kwargs)¶ Bases:
object
-
class
openstackclient.tests.identity.v2_0.fakes.
FakeProject
¶ Bases:
object
Fake one or more project.
-
static
create_one_project
(attrs=None)¶ Create a fake project.
Parameters: attrs (Dictionary) – A dictionary with all attributes Returns: A FakeResource object, with id, name, and so on
-
static
create_projects
(attrs=None, count=2)¶ Create multiple fake projects.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- count (int) – The number of projects to fake
Returns: A list of FakeResource objects faking the projects
-
static
-
class
openstackclient.tests.identity.v2_0.fakes.
FakeRole
¶ Bases:
object
Fake one or more role.
-
static
create_one_role
(attrs=None)¶ Create a fake role.
Parameters: attrs (Dictionary) – A dictionary with all attributes Returns: A FakeResource object, with id, name, and so on
-
static
create_roles
(attrs=None, count=2)¶ Create multiple fake roles.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- count (int) – The number of roles to fake
Returns: A list of FakeResource objects faking the roles
-
static
-
class
openstackclient.tests.identity.v2_0.fakes.
FakeService
¶ Bases:
object
Fake one or more service.
-
static
create_one_service
(attrs=None)¶ Create a fake service.
Parameters: attrs (Dictionary) – A dictionary with all attributes Returns: A FakeResource object, with id, name, type, and so on
-
static
create_services
(attrs=None, count=2)¶ Create multiple fake services.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- count (int) – The number of services to fake
Returns: A list of FakeResource objects faking the services
-
static
-
class
openstackclient.tests.identity.v2_0.fakes.
FakeUser
¶ Bases:
object
Fake one or more user.
-
static
create_one_user
(attrs=None)¶ Create a fake user.
Parameters: attrs (Dictionary) – A dictionary with all attributes Returns: A FakeResource object, with id, name, and so on
-
static
create_users
(attrs=None, count=2)¶ Create multiple fake users.
Parameters: - attrs (Dictionary) – A dictionary with all attributes
- count (int) – The number of users to fake
Returns: A list of FakeResource objects faking the users
-
static
-
class
openstackclient.tests.identity.v2_0.fakes.
TestIdentityv2
(*args, **kwargs)¶ Bases:
openstackclient.tests.utils.TestCommand
-
setUp
()¶
-
-
openstackclient.tests.identity.v2_0.fakes.
fake_auth_ref
(fake_token, fake_service=None)¶ Create an auth_ref using keystoneauth’s fixtures
openstackclient.tests.identity.v2_0.test_catalog module¶
-
class
openstackclient.tests.identity.v2_0.test_catalog.
TestCatalog
(*args, **kwargs)¶ Bases:
openstackclient.tests.utils.TestCommand
-
service_catalog
= <FakeResource endpoints=[{'adminURL': 'https://admin.one.example.com', 'region': 'one', 'internalURL': 'https://internal.one.example.com', 'publicURL': 'https://public.one.example.com'}, {'adminURL': 'https://admin.two.example.com', 'region': 'two', 'internalURL': 'https://internal.two.example.com', 'publicURL': 'https://public.two.example.com'}, {'adminURL': 'https://admin.none.example.com', 'region': None, 'internalURL': 'https://internal.none.example.com', 'publicURL': 'https://public.none.example.com'}], id=service-id-0948ebfb786e4458ac235c0a4b4e0686, name=supernova, type=compute>¶
-
setUp
()¶
-
-
class
openstackclient.tests.identity.v2_0.test_catalog.
TestCatalogList
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.test_catalog.TestCatalog
-
columns
= ('Name', 'Type', 'Endpoints')¶
-
setUp
()¶
-
test_catalog_list
()¶
-
test_catalog_list_with_endpoint_url
()¶
-
-
class
openstackclient.tests.identity.v2_0.test_catalog.
TestCatalogShow
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.test_catalog.TestCatalog
-
setUp
()¶
-
test_catalog_show
()¶
-
openstackclient.tests.identity.v2_0.test_endpoint module¶
-
class
openstackclient.tests.identity.v2_0.test_endpoint.
TestEndpoint
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.fakes.TestIdentityv2
-
attr
= {'service_name': 'service-name-23255a19a1264afb8311898bc71e53b0', 'service_id': 'service-id-a9be4f9da9f64e089cfce85543399bf2'}¶
-
fake_endpoint
= <FakeResource adminurl=http://endpoint_adminurl, id=endpoint-id-0be43a63fb2440c1b018eafa7fcd9070, internalurl=http://endpoint_internalurl, publicurl=http://endpoint_publicurl, region=endpoint_region, service_id=service-id-a9be4f9da9f64e089cfce85543399bf2, service_name=service-name-23255a19a1264afb8311898bc71e53b0, service_type=service_type>¶
-
fake_service
= <FakeResource description=service_description, id=service-id-a9be4f9da9f64e089cfce85543399bf2, name=service-name-23255a19a1264afb8311898bc71e53b0, type=service_type>¶
-
setUp
()¶
-
-
class
openstackclient.tests.identity.v2_0.test_endpoint.
TestEndpointCreate
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.test_endpoint.TestEndpoint
-
setUp
()¶
-
test_endpoint_create
()¶
-
-
class
openstackclient.tests.identity.v2_0.test_endpoint.
TestEndpointDelete
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.test_endpoint.TestEndpoint
-
setUp
()¶
-
test_endpoint_delete_no_options
()¶
-
-
class
openstackclient.tests.identity.v2_0.test_endpoint.
TestEndpointList
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.test_endpoint.TestEndpoint
-
setUp
()¶
-
test_endpoint_list_long
()¶
-
test_endpoint_list_no_options
()¶
-
-
class
openstackclient.tests.identity.v2_0.test_endpoint.
TestEndpointShow
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.test_endpoint.TestEndpoint
-
setUp
()¶
-
test_endpoint_show
()¶
-
openstackclient.tests.identity.v2_0.test_project module¶
-
class
openstackclient.tests.identity.v2_0.test_project.
TestProject
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.fakes.TestIdentityv2
-
columns
= ('description', 'enabled', 'id', 'name')¶
-
datalist
= ('project_description', True, 'project-id-5dc2185235c14570bfeb2ef174187389', 'project-name-c3a5d28e90f14b9b9f42452e5547e9b1')¶
-
fake_project
= <FakeResource description=project_description, enabled=True, id=project-id-5dc2185235c14570bfeb2ef174187389, name=project-name-c3a5d28e90f14b9b9f42452e5547e9b1>¶
-
setUp
()¶
-
-
class
openstackclient.tests.identity.v2_0.test_project.
TestProjectCreate
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.test_project.TestProject
-
setUp
()¶
-
test_project_create_description
()¶
-
test_project_create_disable
()¶
-
test_project_create_enable
()¶
-
test_project_create_no_options
()¶
-
test_project_create_or_show_exists
()¶
-
test_project_create_or_show_not_exists
()¶
-
test_project_create_property
()¶
-
-
class
openstackclient.tests.identity.v2_0.test_project.
TestProjectDelete
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.test_project.TestProject
-
setUp
()¶
-
test_project_delete_no_options
()¶
-
-
class
openstackclient.tests.identity.v2_0.test_project.
TestProjectList
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.test_project.TestProject
-
setUp
()¶
-
test_project_list_long
()¶
-
test_project_list_no_options
()¶
-
-
class
openstackclient.tests.identity.v2_0.test_project.
TestProjectSet
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.test_project.TestProject
-
setUp
()¶
-
test_project_set_description
()¶
-
test_project_set_disable
()¶
-
test_project_set_enable
()¶
-
test_project_set_name
()¶
-
test_project_set_no_options
()¶
-
test_project_set_property
()¶
-
test_project_set_unexist_project
()¶
-
-
class
openstackclient.tests.identity.v2_0.test_project.
TestProjectShow
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.test_project.TestProject
-
fake_proj_show
= <FakeResource description=project_description, enabled=True, id=project-id-087efeb638be4b29bccab7beb0b6afe1, name=project-name-4a3fec791cc8495d97535d51776ff9b9>¶
-
setUp
()¶
-
test_project_show
()¶
-
-
class
openstackclient.tests.identity.v2_0.test_project.
TestProjectUnset
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.test_project.TestProject
-
attr
= {'fee': 'fi', 'fo': 'fum'}¶
-
fake_proj
= <FakeResource description=project_description, enabled=True, fee=fi, fo=fum, id=project-id-1368ba92ba27435e9e7c47ca2ed1e49c, name=project-name-a38c988eea6f47c8852981c7b0136e23>¶
-
setUp
()¶
-
test_project_unset_key
()¶
-
test_project_unset_no_options
()¶
-
openstackclient.tests.identity.v2_0.test_role module¶
-
class
openstackclient.tests.identity.v2_0.test_role.
TestRole
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.fakes.TestIdentityv2
-
attr
= {'tenantId': 'project-id-1a42f64677fa415e9251aaf51e2f0fdb'}¶
-
fake_project
= <FakeResource description=project_description, enabled=True, id=project-id-1a42f64677fa415e9251aaf51e2f0fdb, name=project-name-e6e318bc96514097b68b77939d7ed63b>¶
-
fake_role
= <FakeResource id=role-idd5f21d6bc6bc48c2b76d2af0502c3ac5, name=role-name3447a59b171143ff8cf963dbf311c189>¶
-
fake_service
= <FakeResource description=service_description, endpoints=[{'publicURL': 'https://public.example.com/v2/UUID'}], id=service-id-88e6f1f83e85440aa10f98bf6e5982a0, name=service-name-5f2fa13e7ba84d3aabda3f3bf2c3b2a7, type=service_type>¶
-
fake_user
= <FakeResource email=admin@openstack.org, enabled=True, id=user-id-f3b96263ec9247cea44d5bf2258cd8df, name=user-name-ca65135bfe0247348689fffc960247a6, tenantId=project-id-1a42f64677fa415e9251aaf51e2f0fdb>¶
-
setUp
()¶
-
-
class
openstackclient.tests.identity.v2_0.test_role.
TestRoleAdd
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.test_role.TestRole
-
setUp
()¶
-
test_role_add
()¶
-
-
class
openstackclient.tests.identity.v2_0.test_role.
TestRoleCreate
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.test_role.TestRole
-
columns
= ('id', 'name')¶
-
datalist
= ('role-id2e9251c145664b7d8368ab01c2814d46', 'role-nameebf8d3f9ac6b49ccb0ad86a6c8f2c3ca')¶
-
fake_role_c
= <FakeResource id=role-id2e9251c145664b7d8368ab01c2814d46, name=role-nameebf8d3f9ac6b49ccb0ad86a6c8f2c3ca>¶
-
setUp
()¶
-
test_role_create_no_options
()¶
-
test_role_create_or_show_exists
()¶
-
test_role_create_or_show_not_exists
()¶
-
-
class
openstackclient.tests.identity.v2_0.test_role.
TestRoleDelete
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.test_role.TestRole
-
setUp
()¶
-
test_role_delete_no_options
()¶
-
-
class
openstackclient.tests.identity.v2_0.test_role.
TestRoleList
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.test_role.TestRole
-
setUp
()¶
-
test_role_list_no_options
()¶
-
-
class
openstackclient.tests.identity.v2_0.test_role.
TestRoleRemove
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.test_role.TestRole
-
setUp
()¶
-
test_role_remove
()¶
-
-
class
openstackclient.tests.identity.v2_0.test_role.
TestRoleShow
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.test_role.TestRole
-
setUp
()¶
-
test_service_show
()¶
-
-
class
openstackclient.tests.identity.v2_0.test_role.
TestUserRoleList
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.test_role.TestRole
-
columns
= ('ID', 'Name', 'Project', 'User')¶
-
setUp
()¶
-
test_user_role_list_no_options_scoped_token
()¶
-
test_user_role_list_no_options_unscoped_token
()¶
-
test_user_role_list_project_scoped_token
()¶
-
test_user_role_list_project_unscoped_token
()¶
-
openstackclient.tests.identity.v2_0.test_service module¶
-
class
openstackclient.tests.identity.v2_0.test_service.
TestService
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.fakes.TestIdentityv2
-
fake_service
= <FakeResource description=service_description, id=service-id-b82cd939ae18478fa51a4cddbc155aa8, name=service-name-1b499f76d6c0455ea2e5d6f67b17b469, type=service_type>¶
-
setUp
()¶
-
-
class
openstackclient.tests.identity.v2_0.test_service.
TestServiceCreate
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.test_service.TestService
-
columns
= ('description', 'id', 'name', 'type')¶
-
datalist
= ('service_description', 'service-id-6a773d293eee4cbe87f1730ba815005b', 'service-name-7967c91912ae46e5a24c571a253ce44c', 'service_type')¶
-
fake_service_c
= <FakeResource description=service_description, id=service-id-6a773d293eee4cbe87f1730ba815005b, name=service-name-7967c91912ae46e5a24c571a253ce44c, type=service_type>¶
-
setUp
()¶
-
test_service_create_description
()¶
-
test_service_create_with_name_option
()¶
-
test_service_create_with_type_option
()¶
-
test_service_create_with_type_positional
()¶
-
-
class
openstackclient.tests.identity.v2_0.test_service.
TestServiceDelete
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.test_service.TestService
-
setUp
()¶
-
test_service_delete_no_options
()¶
-
-
class
openstackclient.tests.identity.v2_0.test_service.
TestServiceList
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.test_service.TestService
-
setUp
()¶
-
test_service_list_long
()¶
-
test_service_list_no_options
()¶
-
-
class
openstackclient.tests.identity.v2_0.test_service.
TestServiceShow
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.test_service.TestService
-
setUp
()¶
-
test_service_show
()¶
-
openstackclient.tests.identity.v2_0.test_token module¶
-
class
openstackclient.tests.identity.v2_0.test_token.
TestToken
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.fakes.TestIdentityv2
-
fake_project
= <FakeResource description=project_description, enabled=True, id=project-id-6c706a163fee4a688193449176e82665, name=project-name-756cf91ffe9f4df8bc1b2f4655e8c600>¶
-
fake_user
= <FakeResource email=admin@openstack.org, enabled=True, id=user-id-7050a338569c451f84a471eec9064eb8, name=user-name-3f4d98fe16c749428efdb0967df59596, tenantId=project-id-1c78d03bcffc4afcbbb8459f570a7ee6>¶
-
setUp
()¶
-
-
class
openstackclient.tests.identity.v2_0.test_token.
TestTokenIssue
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.test_token.TestToken
-
setUp
()¶
-
test_token_issue
()¶
-
test_token_issue_with_unscoped_token
()¶
-
-
class
openstackclient.tests.identity.v2_0.test_token.
TestTokenRevoke
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.test_token.TestToken
-
TOKEN
= 'fob'¶
-
setUp
()¶
-
test_token_revoke
()¶
-
openstackclient.tests.identity.v2_0.test_user module¶
-
class
openstackclient.tests.identity.v2_0.test_user.
TestUser
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.fakes.TestIdentityv2
-
attr
= {'tenantId': 'project-id-2288aeab8d204fd18cefa6cfe649b64e'}¶
-
fake_project
= <FakeResource description=project_description, enabled=True, id=project-id-2288aeab8d204fd18cefa6cfe649b64e, name=project-name-401daffa3fc341578fd9cd02711c20df>¶
-
fake_user
= <FakeResource email=admin@openstack.org, enabled=True, id=user-id-c606357cb5724223b84e85fd036caae3, name=user-name-dd0a92686c3b4aa2b251130f51f4ffb1, tenantId=project-id-2288aeab8d204fd18cefa6cfe649b64e>¶
-
setUp
()¶
-
-
class
openstackclient.tests.identity.v2_0.test_user.
TestUserCreate
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.test_user.TestUser
-
attr
= {'tenantId': 'project-id-5cb28766a77645c990dc785758ba41f1'}¶
-
columns
= ('email', 'enabled', 'id', 'name', 'project_id')¶
-
datalist
= ('admin@openstack.org', True, 'user-id-d3b0a5d83cd44fcd847d2f6bfb62c0e6', 'user-name-acfa9d73e3b64141813918c456d9b6e9', 'project-id-5cb28766a77645c990dc785758ba41f1')¶
-
fake_project_c
= <FakeResource description=project_description, enabled=True, id=project-id-5cb28766a77645c990dc785758ba41f1, name=project-name-4d4c5639b6db4adeb59274699baf9a06>¶
-
fake_user_c
= <FakeResource email=admin@openstack.org, enabled=True, id=user-id-d3b0a5d83cd44fcd847d2f6bfb62c0e6, name=user-name-acfa9d73e3b64141813918c456d9b6e9, tenantId=project-id-5cb28766a77645c990dc785758ba41f1>¶
-
setUp
()¶
-
test_user_create_disable
()¶
-
test_user_create_email
()¶
-
test_user_create_enable
()¶
-
test_user_create_no_options
()¶
-
test_user_create_or_show_exists
()¶
-
test_user_create_or_show_not_exists
()¶
-
test_user_create_password
()¶
-
test_user_create_password_prompt
()¶
-
test_user_create_project
()¶
-
-
class
openstackclient.tests.identity.v2_0.test_user.
TestUserDelete
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.test_user.TestUser
-
setUp
()¶
-
test_user_delete_no_options
()¶
-
-
class
openstackclient.tests.identity.v2_0.test_user.
TestUserList
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.test_user.TestUser
-
attr
= {'tenantId': 'project-id-9e43ba0e098945ad85d0062b99d98790'}¶
-
columns
= ('ID', 'Name')¶
-
datalist
= (('user-id-481a50c081544d0fae8071e31e747015', 'user-name-6d515be30df14b23a215e1431bb3eb4a'),)¶
-
fake_project_l
= <FakeResource description=project_description, enabled=True, id=project-id-9e43ba0e098945ad85d0062b99d98790, name=project-name-3bbfbe07c347498ba6791752b6434358>¶
-
fake_user_l
= <FakeResource email=admin@openstack.org, enabled=True, id=user-id-481a50c081544d0fae8071e31e747015, name=user-name-6d515be30df14b23a215e1431bb3eb4a, tenantId=project-id-9e43ba0e098945ad85d0062b99d98790>¶
-
setUp
()¶
-
test_user_list_long
()¶
-
test_user_list_no_options
()¶
-
test_user_list_project
()¶
-
-
class
openstackclient.tests.identity.v2_0.test_user.
TestUserSet
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.test_user.TestUser
-
setUp
()¶
-
test_user_set_disable
()¶
-
test_user_set_email
()¶
-
test_user_set_enable
()¶
-
test_user_set_name
()¶
-
test_user_set_no_options
()¶
-
test_user_set_password
()¶
-
test_user_set_password_prompt
()¶
-
test_user_set_project
()¶
-
test_user_set_unexist_user
()¶
-
-
class
openstackclient.tests.identity.v2_0.test_user.
TestUserShow
(*args, **kwargs)¶ Bases:
openstackclient.tests.identity.v2_0.test_user.TestUser
-
setUp
()¶
-
test_user_show
()¶
-