summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
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>
2017-06-01Refactor keystone endpoint tests to the proper test class.spisarski3-29/+37
Also added documentation for those three tests. Change-Id: I38a728ba9e258a821341621978953e0529a0c1a1 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-05-25Updated installation documents and fixed problems found during investigation.spisarski6-16/+68
The code changes are primarily required when the runtime environment is Windows. JIRA: SNAPS-75 Change-Id: Ia2134861dd96e1d2c4b597f42fb348929e787a51 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-05-22Find packages in setup.pyCédric Ollivier1-1/+2
Change-Id: I73c46d1c9bfaabcd7d2ba793d4c2e8244e549de1 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-22Merge "Fixed error in ansible_utils_tests.py and added ansible helper method ↵Steven Pisarski3-8/+19
to the OpenStackVMInstance class."
2017-05-20Fix typo in setup.pyCédric Ollivier1-1/+1
It forbids gating in functest. Change-Id: I3f0b943678ee4af869073b56ca1235da23d98b1a Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-19Fixed error in ansible_utils_tests.py and added ansible helperspisarski3-8/+19
method to the OpenStackVMInstance class. Test error was due to the image configuration having the incorrect user applied. The helper method will make it easier for adhoc ansible playbooks to be applied to running instances. JIRA: SNAPS-83 Change-Id: I6b229e0adb836dd3d5ea7b468d38d93f880589a2 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-05-19Add the function of getting endpointLinda Wang2-7/+62
Functest is trying to leverage SNAPS-OO library to replace some utility functions, in which def get_endpoint is called by testcases onos, odl, multisite and cloudify_ims. JIRA: SNAPS-78 Change-Id: Icb2778e0337a5d4246762ac3037773b39d5d554d Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-05-17bugfix: get_security_group_by_id always return first elementMorgan Richomme2-22/+46
add check on id before return value fixed kwarg into the neutron.list_security_groups to the correct one 'id' added unit test to ensure this function always works as designed JIRA: SNAPS-82 Change-Id: I965e1dd54fd1efa8c2d7f6efb87c78ab24cca0e5 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2017-05-16Added support for offline testingspisarski18-391/+1174
Expanded the image_metadata used by the tests for overriding default images for not only supporting 3part images but also to support offline testing as required by Functest. JIRA: SNAPS-67 Change-Id: I6975e7b51fa879fe984af64402939c465df95184 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-05-16Ensure creators' constructors cannot raise exceptions.spisarski9-49/+56
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-08Merge "Restricted dependency of the novaclient."Steven Pisarski1-1/+1
2017-05-08Merge "Modified code to support both Python 2.7 and 3.x"Steven Pisarski29-685/+704
2017-05-08Fixed some redundant dict() key checks that can cause runtime errors.spisarski1-7/+7
Change-Id: I9d05e6cc69526b7424b65e171da1fa4e99e02149 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-05-08Modified code to support both Python 2.7 and 3.xspisarski29-685/+704
* 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-05-04Restricted dependency of the novaclient.spisarski1-1/+1
The 8.0.0 version is not backwards compatible with 7.1 JIRA: SNAPS-73 Change-Id: I76f52e0e1e212e1e4053ade6279b1117ab740cde Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-05-03Changed image metadata to support cirros, ubuntu, and centos.spisarski5-96/+114
The image metadata that was designed for multi-part form support did not take into account tests that require ubuntu or centos tests. JIRA: SNAPS-76 Change-Id: I95c7b74b8f7d7b78c3842b5e716fd7b466107c9c Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-05-03Merge "Refactored multi-part images."Steven Pisarski6-671/+387
2017-05-02Merge "Matching test_check_vm_ip_dhcp on ip only"Steven Pisarski1-8/+3
2017-05-02Matching test_check_vm_ip_dhcp on ip onlyDan Radez1-8/+3
No nee dto look for the string surrounding the ip that's being looked for in this test. simplifying the code to only look for the ip Change-Id: I80e6336c58573e5970eafe2608daf7c61e43b717 Signed-off-by: Dan Radez <dradez@redhat.com>
2017-04-27Merge "Fixed test for security groups when checking for project/tenant ID"Steven Pisarski1-3/+11
2017-04-27Refactored multi-part images.spisarski6-671/+387
The logic used for creating multi-part images for the Danube release was copied all throughout the tests, which was not sustainable. This patch encapsulates the kernel and ramdisk images within the same OpenStackImage object as the disk image. JIRA: SNAPS-59 Change-Id: I45ec0ccc666accb4e768c41e249e6130dc07f6d1 Signed-off-by: spisarski <s.pisarski@cablelabs.com>