summaryrefslogtreecommitdiffstats
path: root/testcases/vPing/CI/libraries/vPing.py
AgeCommit message (Collapse)AuthorFilesLines
2015-12-24Fix timeout in vPing when booting a VMjose.lausuch1-2/+5
Change-Id: I9ee487dd5e142d2e92a92b0ba4ccc80b1a4cd063 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-12-22Use repos_dir env variable in all Functest scriptsjose.lausuch1-8/+9
JIRA: FUNCTEST-90 This way, we remove the 'functest repo' input parameter on the python scripts call and we make it simpler using the available repos_dir env variable which points to /home/opnfv/repos Change-Id: I7d74bf1bc8d89f8f14397fcb9dafc22ee1482f84 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-12-16Creation of image using python glance client instead of CLIjose.lausuch1-28/+23
Change-Id: I2d86701a0857976d9cdeddf7a807ae9ae7ab4912 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-12-09Create a common network for functest for all the testsjose.lausuch1-8/+8
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-11-30Add functions to retrieve POD name in FunctestMorgan Richomme1-25/+27
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-8/+19
JIRA: FUNCTEST-93 Change-Id: I9472c1183eea86b0c018059aa17b76bd2932ad8e Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-10-29Move creation of glance image to vPingjose.lausuch1-2/+34
Since we only need the glance image in Vping test case, we create it in the vping script, and not in config_functest.py JIRA: FUNCTEST-74 Change-Id: I906ba94344d836bc7835a3dcf478933ff622bd54 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-10-28vIMS test integration and move "push_results_to_db" methodboucherv1-18/+4
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-13forget to clean push function in vPingMorgan Richomme1-7/+0
JIRA: FUNCTEST-36 Change-Id: I081cc04093bcc090748ccb5560b77559b328167f Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2015-10-13add functions in utils and fix vPingMorgan Richomme1-1/+12
JIRA: FUNCTEST-36 Change-Id: I5bf315117edc25a6f92b3c4cc873e7626aaff5e0 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2015-09-22creation of scripts to generate Dashboard compatible json result filesMorgan Richomme1-1/+1
JIRA: FUNCTEST-45 Change-Id: I2336b830d3b5079f45c96bbb69061c8020ea637a Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2015-09-03change vPing to push results in Test DBMorgan Richomme1-99/+219
JIRA: FUNCTEST-36 Change-Id: I2b1fd1f633bc44971e63ab5344076934c144c115 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2015-06-02vPing.py: Fixed IPs for VMs, Not DHCPjose.lausuch1-28/+44
JIRA: FUNCTEST-3 Change-Id: Ib921262cfe153e47b88ba268199a66bc47950893 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-05-30Improvementsjose.lausuch1-86/+142
- 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>
2015-05-26Refactor functest environment. Bugfixes: arguments missingjose.lausuch1-0/+1
JIRA: FUNCTEST-10 Change-Id: I796542f32a75892ff66ea23115cbcddd72438323 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-05-26Refactor functest environment. Bugfixes: arg dependenciesjose.lausuch1-13/+13
JIRA: FUNCTEST-10 Change-Id: I4b392a76ecbafdc5e4f1909c26a17a934796ec23 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-05-26Refactor functest environmentjose.lausuch1-1/+1
Depends on: https://gerrit.opnfv.org/gerrit/#/c/642/ JIRA: FUNCTEST-10 Change-Id: I08404df8b38372a40f715d9bde2347fd67ce52a9 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-05-22vPing.py: bugfix: EXIT_CODE not definedjose.lausuch1-2/+1
JIRA: FUNCTEST-3 Change-Id: I710b7dc8569cef091e8c5db89f30a52ca074649a Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-05-20vPing.py: added timeout when building the VMsjose.lausuch1-6/+23
JIRA: FUNCTEST-3 Change-Id: I5dfc80bb7a42d92a684d57f30abbe837518422df Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-05-13vPing.py: code cleaned.jose.lausuch1-90/+47
JIRA: FUNCTEST-3 Change-Id: I25bb3df162a61d027afcb260b33cb5c1dc87a0d7 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-05-13vPing.py : changed #cloud-config to inject an sh scriptjose.lausuch1-11/+16
functest.yaml : vPing works now with a Cirros image JIRA: FUNCTEST-3 Change-Id: I37dce502f02c4d7c5b062abb934bcf6601543b02 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-05-12config.py bug fix: NEUTRON_NET_NAME parameter changed to ↵jose.lausuch1-6/+6
NEUTRON_PRIVATE_NET_NAME JIRA: FUNCTEST-10 Change-Id: I4386f11a3658771ad66bc06848a478ded31bf924 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-05-12config_functest.py:jose.lausuch1-1/+1
1) Added create public network. 2) functest.yaml is now copied instead of downloaded. JIRA: FUNCTEST-10 Change-Id: Ia79cc304d4c607a8fe1fd4e02e78658b7719bf23 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-05-11config_functest.py: added create neutron network.jose.lausuch1-3/+3
vPing.py: some adaptations and bug fixes JIRA: FUNCTEST-1 JIRA: FUNCTEST-3 Change-Id: Ie8ee80c2ab61904bf4b5025d23034ef0265b509e Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-05-10Added functest.yaml to centralize the common parameters for all scripts of ↵jose.lausuch1-13/+27
functest adapted scripts to get the parameters from the yaml JIRA: FUNCTEST-1 JIRA: FUNCTEST-3 Change-Id: Id761394c3cd0efec611c9c511adfee041c3f4c58 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-05-09vPing.py: improved, updated and working with Ubuntu Cloud image.jose.lausuch1-39/+133
TBD: get deployment from a functest configuration file JIRA: FUNCTEST-3 Change-Id: I15de42b7ab4ab5144fb825cc8f48d75fe5d22a1c Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-04-29First upload of vPing script, one of the 5 functest testcase. This Hello ↵morganrOL1-0/+169
world example consists in - Booting 2 VMs - Performing basic Ping - Check the Ping JIRA: FUNCTEST-3 Change-Id: I79d7624cfdd493b77f836e79287f69439a84e6e9 Signed-off-by: morganrOL <morgan.richomme@orange.com>