aboutsummaryrefslogtreecommitdiffstats
path: root/testcases/vPing/CI/libraries
AgeCommit message (Collapse)AuthorFilesLines
2016-02-24Add jenkins build tag for result apiboucherv2-2/+4
Ex: jenkins-functest-compass-intel-pod8-daily-master-19 this will bring together all tests passed on the same functest run JIRA: FUNCTEST-140 Change-Id: I3c1cd8137184509ee5fdeeb2df5399d4c71e3f67 Signed-off-by: boucherv <valentin.boucher@orange.com>
2016-02-19Fix message outputs taken from the console log in vPing_sshjose.lausuch1-4/+18
Change-Id: Id169167d90d60b8266913a8451699969abb4ef7c Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-02-18Remove network failed message check form vping_sshjose.lausuch1-2/+1
Change-Id: I72d97af3ddd76f698ce54918cf92f98c8f5a7fd4 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-02-17Release floating ip after vPing_ssh testjose.lausuch1-35/+34
Also, check the console to see if the instance fails when sending the discover to the dhcp agent Change-Id: I314051886b9580a42bb88f2d88a9bdbf2a9e198a Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-02-16Create vPing_userdata instances with dynamic ports created by nova/neutronjose.lausuch2-108/+113
Change-Id: I1808763f6ccf1ac90b8a696c48ecdfba03d782fb Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-02-16Create vPing instances with dynamic ports created by nova/neutronjose.lausuch1-147/+117
Also, - check if the used network is already created to not create it again - check if the image already exists to not create it again - check if the sec group already exists to not create it again Change-Id: I243619a1538444d836fdda84a86b834668aaf456 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-02-11Add project in push_to_db function of functests utils to allow external ↵Morgan Richomme2-0/+2
project onboarded in Functest to push their results Change-Id: I3a065e6ce82b1a87bbd07810f13df7d146655933 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-02-10Add -n|--no-clean flag to vPing,Tempest,Rally,vIMS scriptsjose.lausuch2-0/+12
Use --no-clean flag in run_tests.sh to tell the test scripts to cleanup or not the resources Change-Id: I597eca5199e1eaf16b1f03a223222d33e4adf170 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-02-10Rename the vPing scripts proplery and adapt documentationjose.lausuch2-2/+2
Change-Id: Idb498eb7cefd938006661f42f1bf1772395d9d47 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-02-02Create security groups with ICMP and SSH rules for vPing testsjose.lausuch1-17/+59
JIRA: FUNCTEST-133 Some installers don't allow icmp and TCP port 22 (SSH) in the default security group. To avoid any dependency with the installer, vPing will create its own security group with those rules and delete it afterwards. Change-Id: I6f31f21c240d80eed8bead638af51aa7e1e92aad Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-02-02Report vPing timeouts to the DB with duration = 0 and test status=NOKjose.lausuch2-37/+38
JIRA: FUNCTEST-132 Change-Id: Ida0c485504fd07db29b0c33ac59da6944da303a9 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-01-27Remove possible message "No handlers could be found for logger paramiko"jose.lausuch1-0/+1
Change-Id: Ib6324b96489551cd88eb1639cb61d38bff898638 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-01-27FUNCTEST-128CNlukai1-1/+1
Modify the ssh output match Change-Id: Ic21823781aa77bdc216dac4c048cd04884516a53 Signed-off-by: CNlukai <lukai1@huawei.com>
2016-01-27FUNCTEST-127CNlukai1-16/+21
FIx the condition judgment of vping Change-Id: I58abace66fb73e0531affc651194473718dfacd5 Signed-off-by: CNlukai <lukai1@huawei.com>
2016-01-26Add timeout in paramiko ssh commandjose.lausuch1-6/+6
Change-Id: I7ef30c08a2335400a79b8a7baf91a27e5eea02e1 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-01-26Replace 'No vPing detected' by a better understandable messagejose.lausuch2-6/+4
Some people got confused about that message although the test succeded Change-Id: I9bdbb5545f06e85805f29b3dfca6156da86c3ffb Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-01-26Add whitespace in the vPing2 commandjose.lausuch1-1/+1
Change-Id: I5bf8eb21e5b09238e1281a1cd292444e9cb2df05 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-01-26Merge "Use paramiko library to SSH and SCP the instances in vPing2"Morgan Richomme1-26/+57
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>
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>
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>
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>
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>
2016-01-18bug 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>
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>
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>
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>