summaryrefslogtreecommitdiffstats
path: root/snaps/openstack/create_project.py
AgeCommit message (Collapse)AuthorFilesLines
2017-08-09Added feature to update the quotas on a project/tenant.spisarski1-1/+34
JIRA: SNAPS-170 Change-Id: Icf494dd2bddc338b8e85259b0400c0950d2332bc Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-08-07Refactored neutron_utils#get_security_group()spisarski1-2/+2
Added a sec_grp_settings (SecurityGroupSettings) object parameter in addition to sec_grp_name for more robust query options. JIRA: SNAPS-164 Change-Id: I8bb21ff9e5e6b1f532773ca01d37964f8b47b530 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-08-03Delete 'default' security group associated to new projects.spisarski1-1/+14
OpenStack can create a security group named 'default' each time a new project/tenant has been created but is not cleaned up when the project has been deleted. This patch adds this functionality into OpenStackProject#clean() method. Also added similar routine to KeystoneUtilsTests#tearDown() method. JIRA: SNAPS-169 Change-Id: I29492ae2ddd82e7d59d09b9c4eb759be4835532a Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-08-03Add domain name when creating projects and usersLinda Wang1-6/+5
(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-31Changed keystone_utils#get_project to accept settingsspisarski1-1/+1
Added project_settings parameter to allow for more robust queries based on the known settings as required. JIRA: SNAPS-159 Change-Id: I56ecf0cc34bbb91c4cfe2afe83971b614ec80a39 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-21Created new class ProjectSettingsError.spisarski1-1/+7
Raising ProjectSettingsError in ProjectSettings instead of Exception. JIRA: SNAPS-135 Change-Id: I5169dd196775453466ea8d7fe9fa0c8d82b2382a Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-11Added ability to add a user to a role.spisarski1-2/+2
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-07-07Created domain object for users.spisarski1-1/+1
OpenStack implementation details were leaking out into the user creator. JIRA: SNAPS-117 Change-Id: I67c77c75055b37819512d1e7712925b839fbc047 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-20Changes to ProjectSettings constructors to use kwargs.spisarski1-31/+31
And changed line lengths to 79 for pep8 Change-Id: I3ea32e221608d759466973071dd86f9037ad2996 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-05-08Modified code to support both Python 2.7 and 3.xspisarski1-14/+9
* Tested on Python 2.7.10 and 3.4.4 * Updated installation documentation JIRA: SNAPS-30 Change-Id: I94a37d218be8ea47bbbcfb560197737430fcb3ba Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-02-15Initial patch with all code from CableLabs repository.spisarski1-0/+139
Change-Id: I70a2778718c5e7f21fd14e4ad28c9269d3761cc7 Signed-off-by: spisarski <s.pisarski@cablelabs.com>