aboutsummaryrefslogtreecommitdiffstats
path: root/testcases/vPing/CI/libraries
AgeCommit message (Collapse)AuthorFilesLines
2016-01-26Add whitespace in the vPing2 commandjose.lausuch1-1/+1
Change-Id: I5bf8eb21e5b09238e1281a1cd292444e9cb2df05 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit f4a91d2805ead7991616d7cebdaa607d15f6f60d)
2016-01-26Use paramiko library to SSH and SCP the instances in vPing2jose.lausuch1-26/+57
Change-Id: I584c24fee5eae072c6885967170e5aded5fce172 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit e4b116d2054966e158ac647eea332aba8b84b89f)
2016-01-22Put scenario in version field on the Test DB (rather that git indication)Morgan Richomme2-4/+4
Change-Id: I22f7ff3841d7fca637e400d92926d2e1b1755371 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com> (cherry picked from commit 59063638116508f7ce4f7612def938bb9eb0e938)
2016-01-20Detect if userdata is not supported by nova in vPing-userdata testjose.lausuch1-6/+19
Also, reduce the number of output messages from every second to every 10 sec Change-Id: Iadaf94991c2d3361460fb34bc8d8910dcc599af6 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit 8544a1146370356bed7ccd85ad63fb4b652d1281)
2016-01-20create 2 vPing scenario:vping and vping-userdataMorgan Richomme1-1/+1
the new vping scenario does not use the userdata/cloudinit functions JIRA: FUNCTEST-3 Change-Id: Ia535a50a9cfd50d520b87c2dd9195747a61b0f1f Signed-off-by: Morgan Richomme <morgan.richomme@orange.com> (cherry picked from commit 4475765f05a24e14f1d90db28941ff5ba5ca1be7)
2016-01-20Added vPing2 using SCP and SSH instead of nova userdatajose.lausuch2-0/+541
Change-Id: I194f88a4d213e5ad2225241420a9254878f4f7f4 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit 625dde8e972f2586e986a46225ce87ebd3823b79)
2016-01-19bug fix: duration time not initialized in case of VPing error (timeout)Morgan Richomme1-7/+11
JIRA: FUNCTEST-3 Change-Id: I115bf46f341e742970a911bb049a99ca8bb7aa70 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com> (cherry picked from commit 537911794f3f1c9e7a10bb38fe379b2a68a950e6)
2016-01-15Change novaclient usagejose.lausuch1-2/+2
Avoid having this warning: UserWarning: 'novaclient.v2.client.Client' is not designed to be initialized directly. Change-Id: I1a9154d97be14007bcb988a5ccd630eadf2e8a5f Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit eb12e95f822c70566cb417e5b5d85a65df14b79c)
2016-01-13Place config_functest.yaml outside the functest repojose.lausuch1-1/+1
If config_functest.yaml is given it will be placed in: /home/opnfv/functest/conf/config_functest.yaml If not given: copy default from repo to that location Change-Id: I816bf5ccf8e0a5b8ebde2a0ab924657533f49127 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit 00b51ffe114702ce207aa7ba2e40f01984c0c57c)
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>