summaryrefslogtreecommitdiffstats
path: root/testcases/functest_utils.py
AgeCommit message (Collapse)AuthorFilesLines
2015-12-28Support for removing hanging portsViktor Tikkanen1-0/+13
Sometimes we have situations when all the routers are deleted but there are still ports with network:router_gateway device owner. Such ports can be deleted only after clearing the device owner information. update_neutron_port() function is added into functest_utils.py and taken into use in clean_openstack.py. Change-Id: I1c9ba2ac499edecec99849b5e895be0248ffd84f Signed-off-by: Viktor Tikkanen <viktor.tikkanen@nokia.com>
2015-12-23Add 'check if file exists' when creating the glance imagejose.lausuch1-2/+7
Change-Id: I2f61d130ac49ca0cc6bdde6b3da209ec37f24452 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-12-14OpenStack cleanup scriptjose.lausuch1-1/+117
This is needed in case any test case doesn't clean what it creates in openstack. (This has been happening sometimes for Tempest, for example) This script will remove: - nova instances - glance images - cinder volumes - networks/subnets/ports - routers - floating ips - security groups - users and tenants (not admin) It won't remove the defaults. Change-Id: Ie09a5ad481fc3d1b92f124362aea6906665a1629 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-12-09Create a common network for functest for all the testsjose.lausuch1-0/+11
Some installers provide a private network by default, if that is the case, it will not create another one. This is needed for Rally/Tempest to work. Removed from vPing test case, since it will use that network as well. Change-Id: Iaff8a9e18026fe5aba31e567a4a8d5faf4a0bb6b Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-12-07condensing python code in utils check_credentialsDan Radez1-19/+2
comment said: TODO: there must be a short way to do this doing if os.environ["something"] == "" throws an error This does the same thing removing the try catches using conditionals and list functions Change-Id: I614e0aa49ab62aeeb738bdd36ef55452d585d8fb Signed-off-by: Dan Radez <dradez@redhat.com>
2015-11-30Add functions to retrieve POD name in FunctestMorgan Richomme1-0/+15
JIRA: FUNCTEST-108 Change-Id: I3453933e12cd7af9b06f50b327873f7516609566 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2015-10-29Fix error when deleting the network in vPing test.jose.lausuch1-0/+7
JIRA: FUNCTEST-93 Change-Id: I9472c1183eea86b0c018059aa17b76bd2932ad8e Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-10-28vIMS test integration and move "push_results_to_db" methodboucherv1-0/+18
Move "push_results_to_db" method to functest_util Updated some files for clearwater vIMS functional testing Change-Id: I21628b063470963e4e4425a0f89fefa33494e40d Signed-off-by: boucherv <valentin.boucher@orange.com>
2015-10-13Fix version number returnMorgan Richomme1-2/+1
JIRA: FUNCTEST-36 Change-Id: Icc4927abc5993535effd58658c3166b59afec93c Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2015-10-13add functions in utils and fix vPingMorgan Richomme1-38/+98
JIRA: FUNCTEST-36 Change-Id: I5bf315117edc25a6f92b3c4cc873e7626aaff5e0 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2015-10-09Bugfix: urllib-->urllib2.jose.lausuch1-1/+1
If there is no internet, it will not throw an error, but it will quit as expected with a proper message. Change-Id: I133d932d4713b6bb6f452736c71b38ce5c5a6310 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-10-07Dockerfile for Functestjose.lausuch1-1/+1
Includes also: - script to trigger Functest automatically within the container - common requirements file to install python modules - added new parameters in the config_functest.yaml - other small adjustements JIRA: FUNCTEST-29 Change-Id: I230631e43e5f7e14938b35903ecec1b17db0f88a Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-10-05vIMS deployment and cleanupboucherv1-2/+38
These scripts allow to : - Prepare platform (tenant, user, image, quota etc) - Deploy cloudify-manager-server - Deploy vIMS Clearwater - Undeploy vIMS - Undeploy cloudify-manager-server - Clean the platform vIMS test coming soon JIRA: FUNCTEST-38 Change-Id: I35be6433c6511d741a27b67fe24c3031f1e29fe5 Signed-off-by: boucherv <valentin.boucher@orange.com>
2015-10-02Add get_networks_list function in functest_utils.pyjose.lausuch1-20/+33
Change-Id: Ibafaf66f2c63a38d847cdd59a70da74475dc7c7e Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-09-18Adding some methods on functest_utils.pyunknown1-0/+87
These methodes allow to manage : - keystone user, tenant and role - glance image - nova flavor These methodes will be used on vIMS test-case. JIRA: FUNCTEST-38 Change-Id: Ib5f1fb5ef325ab0527115a36b9c6ce6b45aa84f6 Signed-off-by: boucherv <boucherv@live.fr>
2015-09-15Remove OS_REGION_NAME from OpenStack credentials checkjose.lausuch1-4/+0
Change-Id: I4de7a1cd68f3381d4e22848595ce4c52b1aaa29f Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-06-18functet_utils: bugfix check_internet_connectivity exceptjose.lausuch1-1/+1
JIRA: FUNCTEST-17 Change-Id: I28cdd11b1004507ae7b455f19a2555a17eae85c7 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-06-18replace default web site for testing internet connectivityMorgan Richomme1-1/+1
previous one was filtered in China JIRA: FUNCTEST-10 Change-Id: Ib5c7f1a6b69b12b2e78a3d8aca9dc78e5b7c652e Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2015-06-03functest_utils.py : bugfix: logg-->loggerjose.lausuch1-1/+1
JIRA: FUNCTEST-10 Change-Id: I6595aecb29b3b6881840a12d5594130fbd9b790e Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-06-02vPing.py: Fixed IPs for VMs, Not DHCPjose.lausuch1-0/+14
JIRA: FUNCTEST-3 Change-Id: Ib921262cfe153e47b88ba268199a66bc47950893 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-05-30Improvementsjose.lausuch1-0/+231
- Added: functest_utils.py for common util functions - Moved: a lot of functions from config_functest.py to functest_utils.py - Moved: create of functest-net from config_functest.py to vPing.py - Improvements and code cleaned JIRA: FUNCTEST-10 Change-Id: I0d3381576cbb24a999ea69e107baafea896a36e7 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>