summaryrefslogtreecommitdiffstats
path: root/snaps
AgeCommit message (Collapse)AuthorFilesLines
2017-07-27Merge "Expand OpenStackSecurityGroup class tests."Steven Pisarski4-61/+212
2017-07-27Merge "Expanded project creation tests and validation."Steven Pisarski4-6/+66
2017-07-27Merge "Added configuration for keypair size."Steven Pisarski2-8/+51
2017-07-26Updated docs for the OSCreds classspisarski1-2/+2
JIRA: SNAPS-122 Change-Id: Id57f8830f7e87c513179de307130c76cb28f22a8 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-26Expand OpenStackSecurityGroup class tests.spisarski4-61/+212
Improved validation and added another test case. JIRA: SNAPS-148 Change-Id: I249ac0fcce502dd91c82cc2bfb54ca22da5e33bb Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-26Expanded project creation tests and validation.spisarski4-6/+66
JIRA: SNAPS-147 Change-Id: I16eb1ab9f976daf4195a47b04ce5b8b8ba931497 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-26Comment housekeeping...spisarski2-2/+2
Change-Id: I917470cb4bd29f93512cce7eead89824f2326678 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-26Removed TODO from comment about the physical network value.spisarski1-1/+2
JIRA: SNAPS-123 Change-Id: Ie4085a35816a78cb5b4b910d52ddccaf6b102b1f Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-26Added configuration for keypair size.spisarski2-8/+51
Removed hardcoded key byte value of 1024 and added the abiltiy for the user to define their key size. JIRA: SNAPS-20 Change-Id: I81654420e558aae8a03bed902bb8be8f025b992c Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-25Added region support.spisarski9-26/+62
Added region_name attribute to OSCreds Added region_name to neutron, nova, glance, heat, and keystone client retrieval Fixed false positive heat connection test. JIRA: SNAPS-50 & SNAPS-146 Change-Id: If3471ed7a2bdd0e6bfc281455c996386d031235d Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-25Merge "Added validation router is attached to the external network."Steven Pisarski1-1/+4
2017-07-25Merge "Added keypair config for key file deletion."Steven Pisarski3-10/+239
2017-07-24Added validation router is attached to the external network.spisarski1-1/+4
Verifying that the external network's ID is the same as the 'network_id' value in router.external_gateway_info. JIRA: SNAPS-145 Change-Id: I60795c69679f6e439e6e102115e228a65572db52 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-24Added keypair config for key file deletion.spisarski3-10/+239
Added KeypairSetting attribute named 'delete_on_clean' which is used to override the keypair creator's logic for deleting its associated public/private key files. JIRA: SNAPS-105 Change-Id: I337db99daa6bf7d4b42e8729a92a4baef5c73140 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-24Fixed problems when setting the OpenStack project ID.spisarski7-36/+197
There were several calls to retrieve the project ID that required named parameters which was causing the utility function to always return None. Additionally, when creating the dict() required by the Neutron create API 'body' parameter key 'project_id' is not supported and still uses 'tenant_id'. As these problems should have been found earlier, this patch also extends the tests for networks, subnets, ports, and security groups to use 'tenant_id' rather than 'project_id'. JIRA: SNAPS-143 Change-Id: Ic69e56145ea6070718d821edd22a1d0f9970995d Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-24Merge "Default OSCreds cacert attribute to False."Steven Pisarski3-15/+19
2017-07-24Merge "Fixed potential problems with image creation exceptions."Steven Pisarski2-16/+43
2017-07-24Merge "Remove temporary directory created for tests."Steven Pisarski1-19/+28
2017-07-24Merge "Created new exceptions for security group settings"Steven Pisarski2-16/+36
2017-07-24Merge "Created new classes RouterSettingsError & RouterCreationError."Steven Pisarski2-12/+25
2017-07-24Merge "Created new class ProjectSettingsError."Steven Pisarski2-4/+11
2017-07-24Fixed potential problems with image creation exceptions.spisarski2-16/+43
With Glance client v2, it appears that rolling back on image creation error was sending in an OpenStack image object into the delete_image() function where it should have been expecting a SNAPS-OO Image domain object. Also added log messages to help expose other potential issues if this patch does not address the root problem at hand. JIRA: SNAPS-139 Change-Id: I52591ff1d055ddf4eacbbc49b3bc8718285edcfa Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-24Merge "Refactor glance_utils.py v1 image creation."Steven Pisarski2-25/+21
2017-07-21Added and improved flavor creation tests.spisarski2-12/+69
JIRA: SNAPS-142 Change-Id: I9c3cf5202a551f7b137648e95359f0adeb831101 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-21Refactor glance_utils.py v1 image creation.spisarski2-25/+21
Replace 4 blocks using named parameters with on call to create() with kwargs. JIRA: SNAPS-141 Change-Id: I1268877a8524bb25a7f605f583ace9602f5a9c1b Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-21Remove temporary directory created for tests.spisarski1-19/+28
JIRA: SNAPS-140 Change-Id: I9e15ca43f644cc86539bb09a32a59801eb689a29 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-21Created new classes RouterSettingsError & RouterCreationError.spisarski2-12/+25
Raising RouterSettingsError in RouterSettings and RouterCreationError in OpenStackRouter instead of Exception. JIRA: SNAPS-136 Change-Id: I3ba4824ea80ccfc07b1f15959898936d51bca1de Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-21Default OSCreds cacert attribute to False.spisarski3-15/+19
The default of True causes more problems than False when dealing with unsecure and secure (HTTPS) API calls. This was issue was found while testing against the new OPNFV CI test pod running Pike. JIRA: SNAPS-80 Change-Id: I819b4f64fa637bb7ce53c58a7a1164600ff6a3b9 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-21Created new exceptions for security group settingsspisarski2-16/+36
Raising SecurityGroupSettingsError in SecurityGroupSettings and SecurityGroupRuleSettingsError in SecurityGroupRuleSettings instead of Exception. JIRA: SNAPS-137 Change-Id: I959ffe9a247dc9adffbef460119ba94ad86fd3f0 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-21Created new class ProjectSettingsError.spisarski2-4/+11
Raising ProjectSettingsError in ProjectSettings instead of Exception. JIRA: SNAPS-135 Change-Id: I5169dd196775453466ea8d7fe9fa0c8d82b2382a Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-21Merge "Created new exception classes for networks."Steven Pisarski2-21/+44
2017-07-21Merge "Created new class KeypairSettingsError."Steven Pisarski2-5/+12
2017-07-21Merge "Changes required for running CI tests (Pike pod)."Steven Pisarski11-132/+418
2017-07-20Created new exception classes for networks.spisarski2-21/+44
Raising NetworkSettingsError in NetworkSettings, SubnetSettingsError in SubnetSettings and PortSettingsError in PortSettings instead of Exception. JIRA: SNAPS-134 Change-Id: I724d9e115e41767a9e3596d85db2a20ee8de5f73 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-20Changes required for running CI tests (Pike pod).spisarski11-132/+418
Added support for HTTPS proxies HTTPS OSCreds settings for both RC file and os_env.yaml OSCreds 'cacert' T/F and cert file path support OSCreds API version support cleanup including the addition of heat Added more OSCreds test validations Disabling of InsecureRequestWarning PEP8 line width refactoring heat_utils_test.py fix when stack status is error test suite for CI removed default flavor metadata of mem_page_size: Any to None JIRA: SNAPS-80 Change-Id: I333e83ca79d7403bf43a9b74da4c072b4da976ba Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-20Created new class KeypairSettingsError.spisarski2-5/+12
Raising KeypairSettingsError in KeypairSettings instead of Exception. JIRA: SNAPS-133 Change-Id: Ie67f1da429f7d7a5e1c71c4f2f30bf9d11bbe209 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-20Merge "Created custom exceptions for VM instance creation."Steven Pisarski2-29/+51
2017-07-20Merge "Created new class FlavorSettingsError."Steven Pisarski2-39/+48
2017-07-20Fixed logger name.spisarski1-1/+1
Logger was named incorrectly causing confusion. Change-Id: I2e2fdae3a96d57036ea7d0aea8e2c2943f09de70 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-18Created custom exceptions for VM instance creation.spisarski2-29/+51
Created VmInstanceSettingsError for errors creating VmInstanceSettings objects Created FloatingIpSettingsError for errors creating FloatingIpSettings objects Created VmInstanceCreationError for errors creating VM instances JIRA: SNAPS-132 Change-Id: I588ae34bf066c8440755a8bf4f3721b946533d99 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-18Created new class FlavorSettingsError.spisarski2-39/+48
Raising FlavorSettingsError in FlavorSettings instead of Exception. JIRA: SNAPS-131 Change-Id: I1cbd077f97bd9294e7bb87fc51c4125d0ef23f42 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-18Merge "Added proper assertion config NIC test."Steven Pisarski2-34/+27
2017-07-18Merge "Created new class AnsibleException."Steven Pisarski1-2/+8
2017-07-18Merge "Created new class NovaException."Steven Pisarski1-4/+9
2017-07-18Merge "Created new class NeutronException."Steven Pisarski2-15/+24
2017-07-17Created new class AnsibleException.spisarski1-2/+8
Raising AnsibleException in ansible_utils.py instead of Exception. JIRA: SNAPS-130 Change-Id: I72d7ea3779c9644559ae7dc4dbb26edc4da20594 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-17Added proper assertion config NIC test.spisarski2-34/+27
The test that exercises the OpenStackVmInstance class config_nic() now checks the Ansible return code. JIRA: SNAPS-124 Change-Id: I7840cd53eea2eacf7952d14be30870c8fa3aeab8 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-17Created new class NovaException.spisarski1-4/+9
Raising NovaException in nova_utils.py instead of Exception. Change-Id: I9564e43352114df18bccc794a5cd57e20880085f Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-17Last task necessary to stop users from easily obtaining OS objects.spisarski9-77/+129
Changed external interfaces still exposing OpenStack created APIs to either return SNAPS-OO domain objects or objects contained on the OpenStack generated objects as to not leak implementation details that would eventually break the library when new API versions are released. JIRA: SNAPS-125 Change-Id: Iab6d6d298c4c5da68daed4b1b252313a1595a295 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-17Merge "Created new class KeystoneException"Steven Pisarski1-2/+8