summaryrefslogtreecommitdiffstats
path: root/testcases/vPing
AgeCommit message (Collapse)AuthorFilesLines
2016-03-22Try configdrive in vping userdata test casecarey.xu1-0/+2
JIRA: FUNCTEST-158 Change-Id: Ic4205a4a7d125bc2b160403daf5e577d6d29c34f Signed-off-by: carey.xu <carey.xuhan@huawei.com> (cherry picked from commit 43f0967f0966c63e6176885abc1b0a396387ad59)
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> (cherry picked from commit 8960264f843abd8c261b0effe9014d1be5cd4dae)
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> (cherry picked from commit 4789710123718723adbc84ab6445ac141e074a9b)
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> (cherry picked from commit 62131c3f53e66b6305bdd163037d452483821cfd)
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> (cherry picked from commit 81892929f7fc0949b08eb79c93583658a2b87c50)
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> (cherry picked from commit 12c1b110e91b2c062b378561f3fb271fe0626aec)
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> (cherry picked from commit 9812bf270c6ef1a5f0582bd8be3c5a3776e73960)
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> (cherry picked from commit abc81e24d33b9bf8d2f8fb05dc5f5f57443abe93)
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> (cherry picked from commit ab3413a15aeb3b3669da94fa383ec07212eeb915)
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> (cherry picked from commit 5bb53025a593bbda834ef6ad325faba5aa073f7f)
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> (cherry picked from commit 438a29faf556a9dcc2a304180ce77a32cc748e35)
2016-01-27FUNCTEST-128CNlukai1-1/+1
Modify the ssh output match Change-Id: Ic21823781aa77bdc216dac4c048cd04884516a53 Signed-off-by: CNlukai <lukai1@huawei.com> (cherry picked from commit 77e92f96dd56659d14d496d86d3814ea69fb2b3d)
2016-01-27FUNCTEST-127CNlukai1-16/+21
FIx the condition judgment of vping Change-Id: I58abace66fb73e0531affc651194473718dfacd5 Signed-off-by: CNlukai <lukai1@huawei.com> (cherry picked from commit ecc77fad440a63627755e7ff042a98f34f3e9b75)
2016-01-26Add timeout in paramiko ssh commandjose.lausuch1-6/+6
Change-Id: I7ef30c08a2335400a79b8a7baf91a27e5eea02e1 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit a43fac229e1be8c6af2c72a4be9d9c1c95614d21)
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> (cherry picked from commit c208b3c1104fc210d73eabf6361efbd3ea62e265)
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>