summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-07-05Refactor OSCreds to leverage kwargs instead of named parameters.spisarski7-113/+365
JIRA: SNAPS-109 Change-Id: I423ede964cce9fc3b4e5b27f1e8f0dd7603d9ff1 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-05Merge "Add a warning of keypair creation"Steven Pisarski1-0/+4
2017-07-02Add a warning of keypair creationboucherv1-0/+4
Put a warning if the public key already exist in OpenStack but the private key file is not found Change-Id: Ie2dc5b9f6a6abb0831e1826130d5c283cf3f34ec Signed-off-by: boucherv <valentin.boucher@orange.com>
2017-06-30Sync requirements.txt with OpenStack (novaclient)Cédric Ollivier1-1/+1
It completes "Use neutron to create floating IPs" [1] [1] https://gerrit.opnfv.org/gerrit/#/c/36389/ Change-Id: I11c591d86509fa41b4b0c4a7a758ff0ceed321c2 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-29Fixed tests to delete security groups.spisarski1-8/+38
Change-Id: I140618a310bae050bea29df665b98881c6052980 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-29Merge "Changed credentials for deploying heat templates."Steven Pisarski1-9/+16
2017-06-29Changed credentials for deploying heat templates.spisarski1-9/+16
The old credentials had been working on other pods but are not working with our latest deployed by Kolla. This change does not affect any of the functionality included in the tests. It simply takes the administrative user credentials and changes the project to the newly created one. Change-Id: I76c605797b68f902f2ee5c679bd5b8a50c48a501 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-29Merge "Fixed test to not download images when configured with a disk file path."Steven Pisarski1-3/+19
2017-06-29FIX mistake in import keypairboucherv1-1/+1
Change-Id: I3d0a3111efcb4200c9b867663a45c07a3b47c09d Signed-off-by: boucherv <valentin.boucher@orange.com>
2017-06-28Fixed test to not download images when configured with a disk file path.spisarski1-3/+19
JIRA: FUNCTEST-809 Change-Id: I078578ba9881eeeb8942d22cb342e87e17f6f879 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-27Added offline test support to NovaUtilsInstanceTests missed initially.spisarski1-1/+1
JIRA: FUNCTEST-809 Change-Id: I3a54af6fc64f93a72059d0ff205024fa765ceb52 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-27Enable snaps work using public endpointLinda Wang4-2/+12
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-22Use neutron to create floating IPs.spisarski12-627/+1376
This patch moves the floating IP creation out of nova and into neutron. Other changes include the use of domain objects for VM and Floating IP instances, addition of new nova_utils tests to exercise the create server functionality, and more PEP8 compliance. JIRA: SNAPS-92 Change-Id: I16c12b26b56008901633e90ae307586ad2045f9b Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-22Enable https for Openstack in SnapsLinda Wang4-8/+22
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-21Fixed launcher app to support new settings kwargs.spisarski17-287/+356
Additionally, found issue with importing ansible libraries. Needed to rename the snaps.provisioning.ansible package to 'ansible_pb'. JIRA: SNAPS-107 & SNAPS-93 Change-Id: I8c8628d3af5ce30849229ed47bfbb0ecaad5b3ad Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-21Merge "Changes UserSettings constructor to use kwargs."Steven Pisarski2-55/+62
2017-06-21Merge "Changes StackSettings constructor to use kwargs."Steven Pisarski2-101/+150
2017-06-21Merge "Changes SecurityGroupSettings & SecurityGroupRuleSettings constructor ↵Steven Pisarski2-248/+341
to use kwargs."
2017-06-21Merge "Changes to RouterSettings constructors to use kwargs."Steven Pisarski2-129/+195
2017-06-21Merge "Changes to ProjectSettings constructors to use kwargs."Steven Pisarski2-64/+92
2017-06-21Merge "Changes to NetworkSettings, SubnetSettings, and PortSettings ↵Steven Pisarski2-263/+323
constructors to use kwargs."
2017-06-21Merge "Changes to KeypairSettings constructor to use kwargs."Steven Pisarski2-59/+84
2017-06-21Merge "Changes to VMInstanceSettings and FloatingIPSettings constructors."Steven Pisarski2-631/+1134
2017-06-21Merge "Changes ImageSettings constructor to use kwargs."Steven Pisarski2-223/+388
2017-06-21Merge "Changes FlavorSettings constructor to use kwargs."Steven Pisarski2-115/+157
2017-06-20Changes UserSettings constructor to use kwargs.spisarski2-55/+62
And changed line lengths to 79 for pep8. JIRA: SNAPS-104 Change-Id: I04413ccd783b5ccdac0f6d8e76780e728f765962 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-20Changes StackSettings constructor to use kwargs.spisarski2-101/+150
And changed line lengths to 79 for pep8. JIRA: SNAPS-103 Change-Id: Iacc3a42cbf3bebe7336d17fc4a4574590f15b93a Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-20Changes SecurityGroupSettings & SecurityGroupRuleSettings constructor to use ↵spisarski2-248/+341
kwargs. And changed line lengths to 79 for pep8. JIRA: SNAPS-102 Change-Id: Ifa878ba01694eaa17ee05cea5dbbe9bc8bde3cd0 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-20Changes to RouterSettings constructors to use kwargs.spisarski2-129/+195
And changed line lengths to 79 for pep8 JIRA: SNAPS-101 Change-Id: I2b63e4130644ad422aa1f81bcf2627e97d97c035 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-20Changes to ProjectSettings constructors to use kwargs.spisarski2-64/+92
And changed line lengths to 79 for pep8 Change-Id: I3ea32e221608d759466973071dd86f9037ad2996 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-20Changes to NetworkSettings, SubnetSettings, and PortSettings constructors to ↵spisarski2-263/+323
use kwargs. And changed line lengths to 79 for pep8 JIRA: SNAPS-99 Change-Id: Iedb3ff663dc9d71ce774b5c4c1d0bef601f792da Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-20Changes to KeypairSettings constructor to use kwargs.spisarski2-59/+84
And changed line lengths to 79 for pep8. JIRA: SNAPS-98 Change-Id: I01f7f459bc46ed818d75d30f8bea7b1e09b5b376 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-20Changes to VMInstanceSettings and FloatingIPSettings constructors.spisarski2-631/+1134
Removed named parameters and replaced with kwargs. JIRA: SNAPS-97 Change-Id: I9e313c342a8fd5a99f3ce6e7274406f8a29b8c8b Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-19Changes ImageSettings constructor to use kwargs.spisarski2-223/+388
And changed line lengths to 79 for pep8. JIRA: SNAPS-96 Change-Id: Ibda4954a4d9a6be4b94a7b2de61d03b25afff8db Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-19Merge "Missed image config for configuring multiple NICs test"Steven Pisarski6-4/+86
2017-06-19Changes FlavorSettings constructor to use kwargs.spisarski2-115/+157
And changed line lengths to 79 for pep8. JIRA: SNAPS-95 Change-Id: Icd3ac79c66049b596c14273abb146d957d6e4e67 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-19Merge "Ignore several files"Steven Pisarski1-0/+3
2017-06-14Merge "Leverage on pbr (Python Build Reasonableness)"Steven Pisarski3-40/+31
2017-06-14Ignore several filesCédric Ollivier1-0/+3
Change-Id: Ie00d9a995e1cf96f2754d30fc0a77f3254c811c7 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-14Leverage on pbr (Python Build Reasonableness)Cédric Ollivier3-40/+31
It also updates requirements according to OpenStack stable/ocata except for nova client version as snaps needs nova support of floating IP which has been removed in pike [1] (8.0.0 [2]). It must be reverted to >=6.0.0,!=7.0.0 as soon as snaps calls the related neutron commands. [1] https://github.com/openstack/python-novaclient/blob/master/releasenotes/notes/pike-rm-deprecated-net-272aeb62b329a5bc.yaml [2] https://docs.openstack.org/releasenotes/python-novaclient/unreleased.html Change-Id: Iaa0285471da5f2f73cbfef038c9902e1c39fa009 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-06-14Need to move file resources required by tests.spisarski7-33/+6
Functest was not installing the heat resource files required by the snaps tests being run by Functest as the heat template file used by the tests as it was under the repository's root directory which is causing tests to fail. Change-Id: I214d2e61e92f7dfa2e9859dded1e7ea08706314d Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-13Changed logic to return only active availability zones.spisarski1-2/+3
Change-Id: I75d92976f4486933d432a8066159dbb66c12daf5 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-13Create download directory if not exists before downloading image file.spisarski1-1/+7
Change-Id: I6d51681d4e0d58b96a00bfeb144d6bfcb8ae04e6 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-11Missed image config for configuring multiple NICs testspisarski6-4/+86
JIRA: SNAPS-89 Change-Id: I640aee39842272ca8dd6245be10c2fb3a899020e Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-11Fixed problems found in Functest after implementing offline testing.spisarski3-3/+4
JIRA: FUNCTEST-809 Change-Id: I5e579b141eb513b0f9db36959014b8f945afe6a0 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-07Removed current working directory logic retrieving test file resources.spisarski11-21/+88
Some of the SNAPS tests leverage file resources contained within the project. These resources were being accessed via relative paths which required the test clients to ensure that the CWD was the <repo>/snaps directory. Replaced that logic to leverage the import pkg_resources making the tests much more flexible and robust. JIRA: SNAPS-89 Change-Id: Ic9c429ee53e4dd785641e11e1ed4de5aeeab54d1 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-07Merge "Added custom security group with ICMP and SSH rules."Steven Pisarski3-25/+111
2017-06-06Added custom security group with ICMP and SSH rules.spisarski3-25/+111
This was done for all tests exercising floating IPs. Also added check to all of these tests to ensure the VMs all have received their private IP address via DHCP. JIRA: FUNCTEST-834 Change-Id: I88ae2fecc3f8e507641adf24cb65a0583f4db24c Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-05Added support for applying Heat Templatesspisarski11-0/+953
Second patch expanded support to both files and dict() objects. Third patch exposes new accessor for status and outputs. JIRA: SNAPS-86 Change-Id: Ie7e8d883b4cc1a08dbe851fc9cbf663396334909 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-06-01Fixed RST warning.spisarski1-1/+1
Change-Id: I45f6161c51a018d91c9363980d6a6b279532101c Signed-off-by: spisarski <s.pisarski@cablelabs.com>