summaryrefslogtreecommitdiffstats
path: root/testcases
AgeCommit message (Collapse)AuthorFilesLines
2016-10-11Bug fix in odl-sfc testcaseManuel Buil1-0/+5
Test is stopping if the route to the VMs ip range is already there because the command that adds that, exits with code 1 and set -e is activated. Now it is checked if it is there and if not, the command is executed Change-Id: I820a55aff2572aadcb1950fa9218b114a9058c57 Signed-off-by: Manuel Buil <manuel.buil@ericsson.com> (cherry picked from commit e2c2ff612e7086ce2a1520029f5f58e75186ec17)
2016-10-11Small fixes in sfc testcaseGeorge Paraskevopoulos3-3/+3
Change-Id: Ib1c4fb64fdf72bcae99d05db3c3a41721c78ce27 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com> (cherry picked from commit a2454ab0d260494b0777171d0892fbb82a48b468)
2016-10-06Remove old tacker setupGeorge Paraskevopoulos2-37/+3
No need to install tacker here. We do it with fuel-plugin-tacker. Change-Id: Ic912048b8a0f169b062ac14788d94757c81bf073 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com> (cherry picked from commit acb35acb2a413612484f1669ea7859e2a8d6c789)
2016-09-27Move sfc custom flavor creationGeorge Paraskevopoulos2-0/+12
The custom flavor that is needed for the sfc test case is created in the tacker deployment phase. The result of this is that when we use alternative methods of deploying tacker (i.e. the tacker fuel plugin) the test fails. Changes: - Move the flavor creation inside the test case code - Add an optional public parameter in the [get_or_]create_flavor utility functions. Change-Id: Iea13f172076770dde3876b7e27edc9b7ca9b28db Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com> (cherry picked from commit 40f68e35389cf19d3fb200d1655ecb055c85d1eb)
2016-09-27make logger in vping a local variableSerenaFeng1-4/+0
JIRA: FUNCTEST-493 Change-Id: I9f0c91b3fdbfb62c277b2c452ec124f67b21c653 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn> (cherry picked from commit 52ee1e53e8ee40f2b941a4db69a359586d0a8092)
2016-09-26vPing ssh outpust wrong loggerSerenaFeng1-2/+5
set logger file according to case_name rather than use fixed 'vping_userdata' JIRA: FUNCTEST-490 Change-Id: I65169a59ec1978410fdbd6dadc82da024a4504c7 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn> (cherry picked from commit 702a991e4a24320b99cd86525394089de724e7cf)
2016-09-22Increment counter in sfc_colorado1colorado.1.0George Paraskevopoulos1-0/+7
Avoid infinite loop Change-Id: I2b024b188dcf0cdddb924c5bd13c9dfe81183bdd Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com> (cherry picked from commit 8f6343fb8020a8e609f771b0a52d49dc2f1c4f43)
2016-09-22Open secgroups and add check_ssh in sfc_colorado1George Paraskevopoulos2-15/+64
- Open port 22 in every security group - Add check_ssh for sfc_colorado1 - Replace exits with continue statements in sfc_colorado1 test loop Change-Id: Ic7a7ba67c729667621cc0d1114ee2a42d8846247 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com> (cherry picked from commit 4b07146f7d667c04159d57d681102995f6060f86)
2016-09-21Add SSH connectivity checkGeorge Paraskevopoulos1-7/+32
- Remove sleep after floating IP assignment - Add ssh connection check - Fix iptables instruction Change-Id: I1a7aa7f928592f148ff4bcd20167e4684f7a7dbe Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com> (cherry picked from commit b9e50a3e0869cef0ff6ac11355abc2387c86839c)
2016-09-20Bug fix for the SFC-CI test caseManuel Buil4-4/+516
A iteration is added so that the test is run several times. We are experiencing that ODL requires one deployment for things to work Change-Id: Ic70e8f2dabbf03827dd6d7396d2ab8177140cc97 Signed-off-by: Manuel Buil <manuel.buil@ericsson.com> (cherry picked from commit 89195402a303f6340b5f409b1df2e8bab1304270)
2016-09-16Added support for custom images and flavors in tempestjuraj.linkes1-6/+45
Change-Id: I9335ed1517097e83175a265b603a6707adf476b6 Signed-off-by: juraj.linkes <jlinkes@cisco.com> (cherry picked from commit 0fa8de695dd6b50b7b01131376aefef9c13c21c1)
2016-09-14Merge "Push FAIL to DB for onos-sfc" into stable/coloradoJose Lausuch1-101/+50
2016-09-14Add delay after SF floating IP assignmentGeorge Paraskevopoulos1-5/+5
JIRA: https://jira.opnfv.org/browse/SFC-48 The assignment of floating IPs to service functions needs some time to complete, otherwise we get ssh failures Change-Id: Ia3e789be95d20801ee2c741a473d407e936f4fb6 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com> (cherry picked from commit a684becbcffc993322209b525a64f10ee10d7ab5)
2016-09-14Push FAIL to DB for onos-sfcwuwenbin21-101/+50
Change-Id: Ifae2cba32d9a0df44ae46e642129931692f65a7c Signed-off-by: wuwenbin2 <wuwenbin2@huawei.com> (cherry picked from commit f551726bb9ec6ea77f76c66869daf9a1a4596bb5)
2016-09-13SFC testcase IP tables policyGeorge Paraskevopoulos1-0/+7
Add iptables rule to open requests. Tacker client fails to connect without this firewall rule. Change-Id: I7ca0258110571d8aacdf8214830e4fce5a172c59 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com> (cherry picked from commit a5bdcbf651016ed552967ed124c5fb2a19ad3d98)
2016-09-13[ODL-SFC] Add push resulst to DBjose.lausuch1-22/+38
Change-Id: I314cbda828f6ebda70f7fb4e7d39e781696bc073 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit b2c633fc572d842ea093ecab51356290eca1e692)
2016-09-12Exclude Tempest basicops case also in noha scenariosMorgan Richomme1-0/+6
FUNCTEST-470 Change-Id: I7bfd52b5e18e22d78437821906244a8e32ce38a3 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com> (cherry picked from commit 8cfb05465b9069960e45ffdf50e5cf987f0e8693)
2016-09-09Optimize onos-sfcwuwenbin22-244/+245
1.Delete print and format in onos-sfc 2.Split class into serveral methods in Sfc.py 3.Update Fail process 4.Use vars of HTTP status code Change-Id: Ifb2fc5c570e2c2aa2cfb173eadb32c688a84969e Signed-off-by: wuwenbin2 <wuwenbin2@huawei.com> (cherry picked from commit ccb598c098c813cab4e3e4a3e0f3b2bf0d994489)
2016-09-08make use of functest_utils.get_parameter_from_yamlSerenaFeng13-270/+274
JIRA: FUNCTEST-463 Change-Id: I1d54a65c5bfa2542f2fd3a2e408967641e6e4ac9 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn> (cherry picked from commit 55d301a2622ff5b63d431b9272caa68224d53843)
2016-09-08Exclude some Rally/Nova tests from lxd noha scenarioMorgan Richomme1-0/+1
JIRA: FUNCTEST-464 Change-Id: I0b5014eabccd60c9efaacc4ee529e7b44fd070b2 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com> (cherry picked from commit 1d0e2d8bfb0a0cd070551d57c7669c02e86196ea)
2016-09-08remove imported FUNCTEST_REPO objectSerenaFeng8-29/+33
According to openstack style guidelines in http://docs.openstack.org/developer/hacking/ **** Do not import objects, only modules (*) **** so direct FUNCTEST_REPO import should be avoided from functest.utils.functest_utils import FUNCTEST_REPO as FUNCTEST_REPO JIRA: FUNCTEST-459 Change-Id: Iac0d07a54957cd7419391de183660ac1ce0efd49 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-09-07Add blacklist handling for rally test casesJuha Kosonen3-18/+73
Test cases can be excluded from execution based on installer/scenario via blacklist file. JIRA: FUNCTEST-451 Change-Id: I17bbd5f1364a890b88bc196cbc5f49c492df1cb1 Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
2016-09-07Exclude Rally/Nova tests for lxd scenarioMorgan Richomme1-0/+7
JIRA: FUNCTEST-464 Change-Id: I521f1ccd88579ba411d3691e4c222a2e8b41e1f8 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-09-07Fix image format set for rally test casesJuha Kosonen2-3/+4
Always use image format defined in config_functest.yaml when creating glance images. JIRA: FUNCTEST-460 Change-Id: Ica6b35605301bc14290daa23a1480114cf6294c0 Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com> (cherry picked from commit b49d6129e2f6a15be9de7b7f04fbec0bd15ee8e6)
2016-09-06Merge "Reduce logging in the SFC test case" into stable/coloradoJose Lausuch2-4/+47
2016-09-06[Promise] Fix bug opening the json result filejose.lausuch1-2/+2
Change-Id: I8882ffc8139095a79b6542c508a6293ae231f232 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit 56fa7f26dae9c41235ea1251e1b7d2ea1b389b7c)
2016-09-06[Promise test case] Use proper way to get parameters from yamljose.lausuch1-37/+38
Since there is a function in functest_utils to get a value from the config_functest.yaml directly, there is no need to load again that file. Better to use common functions that are designed for that. Also, Replace location of the results json file to the results directory. It will be also pushed to artifacts repository. Change-Id: Ic6422ed78ccd0f8b40b519342a7dcf38c502924e Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit 861ad3fe18c6ee672c8c82d5d8ad39c6131fdf85)
2016-09-06Reduce logging in the SFC test caseGeorge Paraskevopoulos2-4/+47
JIRA: FUNCTEST-446 Reduce the logs that appear in the Jenkins CI console to make the output of the SFC test case more readable - Redirect tacker installation logs to results folder /home/opnfv/functest/results/odl-sfc.log - Split odl-sfc preparation into a new script - Pipe STDERR in the sfc.py script so that "Added to known hosts" messages do not show in the output Change-Id: Ibf871ade6827d4817f33623b935c5f1d904086bb Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2016-09-06Merge "Remove all logers as utils method args." into stable/coloradoJose Lausuch14-28/+12
2016-09-06Merge "Print all the Parser test output to a log file" into stable/coloradojose.lausuch1-6/+9
2016-09-06Remove all logers as utils method args.Carlos Goncalves14-28/+12
As it modifies method params, it could break the testcases. JIRA: FUNCTEST-428 Conflicts: testcases/features/copper.py testcases/features/doctor.py testcases/features/domino.py Change-Id: I4263d9bd812f1803e513464e3c321cc4a7281958 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 8bfe49ee5a6d7b93b3ce7fb6aae0072acb1171d9)
2016-09-06Add support of arm for doctorcristinapauna1-2/+9
This is half of the fix to make the doctor suite run on arm. The other half is at https://gerrit.opnfv.org/gerrit/#/c/20369/ In this fix I set an enviroment variable, to be used by the doctor suite when ran with functest. The variable is set only when present in config_functest.yaml, which we use as a custom file when running functest on arm. Change-Id: If34d3e7734a194bf9fe8b525a362e029767caa4f Signed-off-by: cristinapauna <cristina.pauna@enea.com> (cherry picked from commit 53b8060cd60c163315d706a6035e30eb66fe8d15)
2016-09-05Redirect dominio's output to a log fileCarlos Goncalves1-2/+7
Change-Id: Ic4daa57ddbf6587660f982acd915cd4363d3ccbc Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu> (cherry picked from commit e0e414259aded62e66b2795ae789ae81d632902b)
2016-09-05Print all the Copper test output to a log fileCarlos Goncalves1-6/+10
To keep the jenkins console clean and readable, dump all the output that the Copper test case generates to a log file and push it to artifact repository at the end. Change-Id: If4812c7e92b4d050757ca07333f7c353a0220056 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu> (cherry picked from commit 7442f6fb3ec962481d45a8ee0d12ad96242d9c0e)
2016-09-05[Doctor test case] Redirect output to a log fileCarlos Goncalves1-5/+12
The output shown in the Jenkins console will now be redirected to a file which will be available and linked to the artifacts repository. Change-Id: I2e9b5c2ab681a787aa0fc249844cc13feb581764 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu> (cherry picked from commit de6ca443b6ea60111f57bfe1cc6153463847c209)
2016-09-05Switch print to logging.infoCédric Ollivier4-31/+43
It follows the recommendations described in the next review [1]. [1] https://gerrit.opnfv.org/gerrit/#/c/19795/ Change-Id: Ie7ce28451122c554f135caad068844c0303deaeb Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 0ae5f5fc64868e8c68eb330fa5aa219abdbdfee0)
2016-09-05Revert excluding floating IP cases from odl_l3vitikkan1-19/+0
Only restrictions table in release notes is updated. Change-Id: I8f27a876058eabe1c490fc5980de5626aed665a3 Signed-off-by: vitikkan <viktor.tikkanen@nokia.com> (cherry picked from commit beb0b0c8fddbdfd45fef0a7e9548b52e48f94c45)
2016-09-05Exclude test cases that use floating IP from odl_l3 scenariosvitikkan1-0/+19
All the tempest_smoke_serial test cases that use floating IP addresses for accessing instances are excluded because of ODL bug https://bugs.opendaylight.org/show_bug.cgi?id=5586 JIRA: FUNCTEST-445 Change-Id: I19468be108a25e989c0cfef031bbe5f2b9db0964 Signed-off-by: vitikkan <viktor.tikkanen@nokia.com> (cherry picked from commit 0e29b1b97d1b996706aca692872fca5488a3acf7)
2016-09-02Print all the Parser test output to a log filejose.lausuch1-6/+9
To keep the jenkins console clean and readable, dump all the output that the Parser test case generates to a log file and push it to artifact repository at the end. Change-Id: I04c8507fda535c7bcb0919fc3bc5877336664942 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit fde68435a66f999a0121b20c64e671ac06086cb3)
2016-09-02stop hardcoded FUNCTEST_REPO path everywhereSerenaFeng9-41/+32
functest repo is used by almost every testcase, each place we get it like: REPOS_DIR = os.getenv('repos_dir') FUNCTEST_REPO = ("%s/functest" % REPOS_DIR) provide a common interface in functest_util.py JIRA: FUNCTEST-453 Change-Id: Ie0635dacc761ed2d05b7e606530368844f32ebaf Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn> (cherry picked from commit 470f573a3ac2eb1783efec6da01a3bee33360c65)
2016-09-02Merge "Refactor SFC testcase" into stable/coloradoJose Lausuch1-49/+54
2016-09-02unify functest_yaml obtain processSerenaFeng9-51/+24
functest_yaml is needed in almost all of the testcases, the obtain process is the same: with open(os.environ["CONFIG_FUNCTEST_YAML"]) as f: functest_yaml = yaml.safe_load(f) f.close() abstract a method to unify the process, and provide the interface JIRA: FUNCTEST-447 Change-Id: I96a9a9962d7b466f10bbd3b5ab2495957524e22a Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn> (cherry picked from commit f4d0a05011e961a363c6d99522684ecdeb959716)
2016-09-01Fix some bugsboucherv1-1/+1
Change-Id: Iaf0859775933ba09cbbe170af3ce4ed1e6d3e9a1 Signed-off-by: boucherv <valentin.boucher@orange.com> (cherry picked from commit 26f493bf3bb06a0ceb959294397ff653b92da202)
2016-09-01Add a specific logger for orchestrator classboucherv2-60/+45
JIRA: FUNCTEST-428 Change-Id: I1aab08f8f92df3b5527e6f8121cdf45aec2f5c17 Signed-off-by: boucherv <valentin.boucher@orange.com> (cherry picked from commit dbbf8da5725f18eede541c82f6adac90a955f43d)
2016-08-31Refactor SFC testcaseGeorge Paraskevopoulos1-49/+54
- Change the way the test checks if the vxlan_tool has started. Now the vxlan_tool is detected even if another python process is up. - Log the exceptions in the vxlan_tool check block. The exceptions that occur are not destructive for the testcase but it's better to be visible. - Add a 60 seconds sleep before the testcase starts to give plenty of time to ODL to add the correct flows. - Move the testcase success/fail check blocks inside the try blocks. The checks are performed on the stdout variable which is in scope only inside the try blocks. Change-Id: I49dec176fb83117e9896ac1d19e8a5bd95e3d7cf Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com> (cherry picked from commit 563a540585768d900d70ce79f2a871a9d1fab03e)
2016-08-31delete useless FUNCTEST_REPO variableSerenaFeng5-5/+0
FUNCTEST_REPO appears in lots of feature testcases, but never be used, delete it clean the code JIRA: FUNCTEST-448 Change-Id: I4a9a10eac29e09b481563ed2c33f4122dd9ee3de Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn> (cherry picked from commit 834f81f0ad708b930f66aec1fd8b36e2cfb8b32b)
2016-08-31Fix problem with SFC testBrady Johnson1-0/+5
- If its not possible to get the IPs, then exit - Patch Set 2: addressed code review comments Change-Id: I16e22513b32e2b0da311ebcc280f3611570634a3 Signed-off-by: Brady Johnson <brady.allen.johnson@ericsson.com> (cherry picked from commit 429ea989e665ebc3dac381c2629662f327dd9a46)
2016-08-30disable test case does not make sense for LXD.Narinder Gupta1-0/+11
This patch will disable the test cases which does not make sense to run on LXD deployments. Change-Id: I683b3714aa5af3c750ca57fab9fceff907b7d646 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com> (cherry picked from commit 029a659b4198611dc93b6b41f42c3939a98de5bd)
2016-08-30update fuel ref in tacker setup scriptFerenc Cserepkei1-1/+1
Since the poc script is fixed it's fuel commit hash in the setup script have to be updated to select the fixed poc script. Change-Id: I1fd22e4dc216fd2889adea0c9889df1d4a1bf476 Signed-off-by: Ferenc Cserepkei <ferenc.cserepkei@ericsson.com> (cherry picked from commit 0d1faa954ec5a5e2911a2ec6df2f0a5f8782a623)
2016-08-30Exclude floating-ip related tempest tests to blacklist for bgpvpn scenariojose.lausuch1-0/+2
Change-Id: I7115018e64a2413209313b9a432d3d1b59e841d1 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit fbe4b77d39e0520e2f34a81dae7010b0f01d2aa2)