summaryrefslogtreecommitdiffstats
path: root/snaps
AgeCommit message (Collapse)AuthorFilesLines
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-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
2017-07-17Created new class KeystoneExceptionspisarski1-2/+8
Raising KeystoneException in keystone_utils.py instead of Exception JIRA: SNAPS-127 Change-Id: Ife37c9df79c5c85dfdb07e239268c05b7c9a91bd Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-17Created new class GlanceException.spisarski1-23/+39
Raising GlanceException in glance_utils.py instead of Exception. JIRA: SNAPS-126 Change-Id: I11b2d9a1ff439c1a4a52b4be30584fe8af877c73 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-17Created new class NeutronException.spisarski2-15/+24
Raising NeutronException in neutron_utils.py instead of Exception. JIRA: SNAPS-128 Change-Id: I567db38a5dfcaae9bbfc6c74558521b0e28d9d46 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-13Created domain classes for networks and subnets.spisarski9-198/+232
Created Network and Subnet domain classes so neutron_utils.py functions returning these types of objects will not be leaking out implementation details as each API version can change these data structures which is now being handled by the SNAPS neutron utility. JIRA: SNAPS-113 Change-Id: Id95dd0f8c2618c20a1a73a428abb95686dfa8251 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-13Merge "Created domain class for routers."Steven Pisarski10-54/+263
2017-07-13Created domain class for routers.spisarski10-54/+263
Created Router domain class so neutron_utils.py functions returning router objects will not be leaking out implementation details as each API version can change these data structures and this should all be handled by the SNAPS neutron utility. JIRA: SNAPS-115 & SNAPS-14 Change-Id: Ib6d36a735d835a6ed4ede489b14e33a261458fed Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-13Created domain class for roles.spisarski6-25/+102
Create Role domain class so keystone_utils.py functions returning role objects will not be leaking out implementation details as each API version can change these data structures and this should all be handled by the SNAPS neutron utility. JIRA: SNAPS-119 Change-Id: I6918a45c1c414ee6b104ec36e63c540d6f656e30 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-13Created domain class for ports.spisarski8-27/+76
Create Port domain class so neutron_utils.py functions returning port objects will not be leaking out implementation details as each API version can change these data structures and this should all be handled by the SNAPS neutron utility. JIRA: SNAPS-118 Change-Id: If031a094a9da284e2838691c3b3490359f710c61 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-13Crteated domain class for projects.spisarski4-5/+74
Created Project domain class so keystone_utils.py functions returning project objects will not be leaking out implementation details as each API version can change these data structures and this should all be handled by the SNAPS keystone utility. JIRA: SNAPS-114 Change-Id: Id7bce929604278c8228622161eba1838ecd5e067 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-12Fix the unittest of get_endpointLinda Wang1-5/+5
The endpoints according to interface may be same or different on different deployment, which depends on the configuration during the deployment. Change-Id: Id2127a3c3fe0eca4b10a98c548d10391912f9610 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-07-12Merge "Created domain classes for security groups."Steven Pisarski10-115/+265
2017-07-11Created domain classes for security groups.spisarski10-115/+265
Created SecurityGroup and SecurityGroupRule classes so the neutron_utils for security groups will be returning objects of these types instead of the OpenStack objects returned by the API calls. JIRA: SNAPS-116 Change-Id: I76ed1f85f7d54b984fc6f6ac28cee7680a1109e5 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-11Added ability to add a user to a role.spisarski7-73/+208
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-11Merge "Allow ssh when testing via ansible"Steven Pisarski1-3/+7
2017-07-11Allow ssh when testing via ansibleCédric Ollivier1-3/+7
Change-Id: I5a518242fec9c3434040bbfa0d725e16068cff25 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-07-10Fixed stack create status check on error.spisarski1-1/+2
Was checking for the status string of "ERROR" when "CREATE_FAILED" should have been used. This bug caused the heat stack test to hang instead of raising an exception. Change-Id: I91e04d58bed083fd8b93ec908c766c0ddc4828de Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-10Merge "Changed validation logic to check for DHCP lease before SSH connection."Steven Pisarski1-9/+8
2017-07-10Changed validation logic to check for DHCP lease before SSH connection.spisarski1-9/+8
Change-Id: Ifa5c481963d0a9607107465915eb7ab12501e21d Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-07Fix get_endpointLinda Wang2-6/+24
One specific service type has the same endpoint url if interface is admin or internal, while it is different from that with public interface, except the admin and internal endpoint url for service identity has same ip but different ports. Change-Id: I19c260222286d8b4aa3f0d3b7d273e192b13a96b Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-07-07Created domain object for users.spisarski5-25/+120
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-07-07Created domain object for keypairs.spisarski4-5/+81
OpenStack implementation details were leaking out into the keypair creator. JIRA: SNAPS-112 Change-Id: Idd22ca9f8ebec7b21c337ca003e01169efec34cb Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-07Merge "Created domain object for flavors."Steven Pisarski5-20/+183
2017-07-06Completed tests for creating networks of different types.spisarski1-44/+37
Change-Id: I33601da3f51d7acc60bd646e1d783a07afd8ea45 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-06Created domain object for flavors.spisarski5-20/+183
OpenStack implementation details were leaking out into the flavor creator. JIRA: SNAPS-111 Change-Id: I59a77d02e30065a7f4560e74295b2084a83686df Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-06Added support for using '~' for SSH key location.spisarski5-40/+71
While testing changes, fixed problems found with querying for floating IPs which also required adding network data to the VMInst domain object. JIRA: SNAPS-85 Change-Id: I0ecf3a6885ce84fe14c4a6db09269c56dc0ad9fc Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-05Making test user password dynamic for testing against secure pods.spisarski1-1/+2
Change-Id: I7c281062fc89a2ff4721e6bee9e90042c59273c5 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-05Merge "Refactor OSCreds to leverage kwargs instead of named parameters."Steven Pisarski6-104/+360