summaryrefslogtreecommitdiffstats
path: root/snaps/openstack/create_user.py
AgeCommit message (Collapse)AuthorFilesLines
2017-08-24Fix to a UserSettings pydoc explaination of an attribute.spisarski1-2/+2
Change-Id: I7937c8fbfc1537ad70bd5bf9a657c52c600c1de8 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-08-03Add domain name when creating projects and usersLinda Wang1-2/+4
(spisarski) Also clarified the difference between domain ID and name Added helper methods and domain object for Domains JIRA: FUNCTEST-858 Change-Id: Iccd7eef56713a4ad0c23232073f52bc71168bf5c Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-07-11Added ability to add a user to a role.spisarski1-17/+16
This functionality was requested as the SNAPS-OO integration tests currently have the ability to run these tests in custom projects with custom users and certain OpenStack installations are not allowing some of the integration tests functions unless the new user has been added to the 'admin' role. Change-Id: I255cfa089a14bbcb434a6cd33b2a1dfae66206b5 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-27Enable snaps work using public endpointLinda Wang1-0/+1
When functest is not run on jumpserver but on other external host without admin network, snaps failed to connect the admin endpoint. So running snaps tests using public endpoint should be allowed. JIRA: SNAPS-110 Change-Id: I8ca8d8c48330b5f427568d3d5fe942f6f2ca9ea9 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-06-22Enable https for Openstack in SnapsLinda Wang1-1/+2
When running in https environment, snaps should provide two options: 1. To support certification verify when https certification file is provided; 2. To disable server certificate verification without cert file. JIRA: SNAPS-84 Change-Id: I5a9094238db5c8017cc8b80e3353adc6e793b552 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-06-20Changes UserSettings constructor to use kwargs.spisarski1-41/+38
And changed line lengths to 79 for pep8. JIRA: SNAPS-104 Change-Id: I04413ccd783b5ccdac0f6d8e76780e728f765962 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-05-16Ensure creators' constructors cannot raise exceptions.spisarski1-1/+2
While creating unit tests for vPing that is using SNAPS, exceptions can be raised when retrieving their respective OpenStack clients with incorrect credentials. Moved client retrieval to the create() method which one should expect exceptions to be raised. JIRA: SNAPS-81 Change-Id: Id8e4279f60b97704b25a89c6312dcf2ebdc3f459 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-02-15Initial patch with all code from CableLabs repository.spisarski1-0/+137
Change-Id: I70a2778718c5e7f21fd14e4ad28c9269d3761cc7 Signed-off-by: spisarski <s.pisarski@cablelabs.com>