summaryrefslogtreecommitdiffstats
path: root/sdnvpn/test/functest/testcase_4.py
AgeCommit message (Collapse)AuthorFilesLines
2018-04-19Make sdnvpn logging properPeriyasamy Palanisamy1-3/+2
* Currently no log messages are getting written into log file due to file handler is registered for logger object created at different modules. Now corresponding handler is registered for logger objects. * Making sdnvpn Feature class to use its parent class logger object to avoid unnecessary logger object creation. Change-Id: I4ec61951ba4ac39cecc137dbb818da72f0b43b35 Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2018-04-09router and network association failurePeriyasamy Palanisamy1-3/+4
comment few sub tests till ODL provides fix for BGPVPN having both router and network association: https://jira.opnfv.org/browse/SDNVPN-94. Till then let us comment required subtests in testcase_4.py and update the release note for fraser. Change-Id: I498ee95c74b525f65e40a540e0f1162d78ec5504 Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2018-03-01update python modules shebang line for python intrepreter directivePeriyasamy Palanisamy1-1/+1
Change-Id: I1929a5b86a89a96fbf5c21b3bc419c9237034aba Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2018-02-26Host openstack utils in SDNVPNCédric Ollivier1-1/+1
SDNVPN is the last project using the deprecated openstack utils which are being removed from Functest tree. All methods unused by SDNVPN could be safely removed in a second change. This patch aims at publishing them asis. Change-Id: I4e479e6def2c691799c9bd86ba325e3d1544ef0d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2018-02-15Use bgvpn-delete and create instead of updatetomsou1-5/+43
Testcases 1 and 4 fail because of netvirt bug [1] The same functionality is now achieved by using bgvpn-delete and bgpvpn-create cli commands instead of bgpvpn-update [1] https://jira.opendaylight.org/browse/NETVIRT-1067 Change-Id: Iaba6e06d0f39e356bf364b0640c707b0a83470d7 Signed-off-by: tomsou <soth@intracom-telecom.com> Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2017-11-09Merge "Fix instance boot when metadata exists"Tim Irnich1-6/+5
2017-11-08use glance_client for image cleanupPeriyasamy Palanisamy1-1/+2
Change-Id: Ia192a1b26c5f31b6d3465a060c3d8a3097e6ebd4 Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2017-11-06Fix instance boot when metadata existstomsou1-6/+5
The way that a instance is considered as UP is pretty strict and returns ERROR in case of instances with userdata This patch differentiates the instances that are supposed to boot till login prompt and those with userdata parameter JIRA: SDNVPN-177 Change-Id: Ic4755366df006669475c90cc0693ac802256f379 Signed-off-by: tomsou <soth@intracom-telecom.com>
2017-10-16SDNVPN-184: resources are not cleaned if tc failsPeriyasamy Palanisamy1-176/+185
* moved the cleanup code inside the finally block in each test case Change-Id: Ifc0fee58451923117c54040c716dad6827fbc7fa Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
2017-09-08Fix the config.yaml including for each testcasetomsou1-1/+2
At each testcase, adapt the way config.yaml is included via sdnvpn.lib.config.TestcaseConfig(). The full path should be included, instead of just the testcase name JIRA: SDNVPN-180 Change-Id: I34828cc3681f08b843db49c6a221602b5b2022bf Signed-off-by: tomsou <soth@intracom-telecom.com>
2017-09-04Adapt SDNVPN Functest test according to new frameworkjose.lausuch1-9/+1
- Inherit from TestCase class in Functest - Remove any push to DB method, since Functest takes care of it After this change, we will be able to load this module from Functest and make a python call instead of a bash call. Change-Id: I80bdb7eaac3a2d1f48e32bafa381a42cadb36138 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-07-25Refactor imports and invocation of main functionpanageo21-5/+5
In all testcases there are some inconcistencies of import statements. Additionally the main function of each testcase should be called through sys.exit(main()) JIRA: SDNVPN-173 Change-Id: I6fdf0dc6598ca4789b6de6b50d1b8b85a8de923c Signed-off-by: panageo2 <panageo@intracom-telecom.com>
2017-06-29Merge "Adapt the floating ip handling in functest"Nikolas Hermanns1-5/+4
2017-06-28Transfer utils functions from functestpanageo21-4/+4
Transfer functions: - create_bgpvpn - create_network_association - create_router_association - update_bgpvpn - delete_bgpvpn - get_bgpvpn - get_bgpvpn_routers - get_bgpvpn_networks from functest/utils/openstack_utils.py to sdnvpn/lib/utils.py JIRA: SDNVPN-164 JIRA: FUNCTEST-840 Change-Id: Ic64d8ee85e74601b0fe51e1c452cf83fa6b0203b Signed-off-by: panageo2 <panageo@intracom-telecom.com>
2017-06-27Adapt the floating ip handling in functesttomsou1-5/+4
Comply with the new floating ip management in functest (https://gerrit.opnfv.org/gerrit/#/c/36415) JIRA: SDNVPN-165 Change-Id: I39e380caf07568e2370246afcf483eb8adb3def6 Signed-off-by: tomsou <soth@intracom-telecom.com>
2017-05-31Cleanup after testcase runningtomsou1-8/+28
After every testcase running cleanup neutron and nova elements: - Allocated floating IPs (nova) - Created instances (nova) - Created images (nova) - Created router-subnet interfaces (neutron) - Created gateaway routers (neutron) - Created routers (neutron) - Created subnets (neutron) - Created networks (neutron) - Created bgpvpns (neutron) JIRA: SDNVPN-145 JIRA: SDNVPN-148 Change-Id: Id6df004bb9d0d394e2cf39692b624607167c9a6c Signed-off-by: tomsou <soth@intracom-telecom.com>
2017-05-17Update logger via logging.getLogger()Linda Wang1-2/+3
1. The module functest.utils.functest_logger has been deleted and logger has been reconfigured in functest [1]. 2. Update all related modules to get loggers via logging.getLogger(). [1] https://gerrit.opnfv.org/gerrit/#/c/34019/ JIRA: FUNCTEST-824 Change-Id: I89f5d15342b5f257fbc2700655e255a4e28bd36f Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-03-15Implement a get VM IP function in utils to be used within test casestomsou1-4/+4
Change-Id: Iaedbfb2fc626eb7d88badee2530593b43c0d1152 Signed-off-by: tomsou <soth@intracom-telecom.com>
2017-02-12Add and update license headersjose.lausuch1-1/+1
Change-Id: I8ccb23c9ffa0d511427ad089b033973ffe96360f Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-12-22Bug fixes after the Functest refactorjose.lausuch1-1/+1
Change-Id: I20b9629bd3c9945e98edb94056f459d9f75eec5d Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-12-16Modify tests to require 100% subtest success, fix tempestRomanos Skiadas1-3/+4
This is required to better align with functest, since that will handle overall success/failure status. Also if a subestest failed, there were expected failures that could seem like they pass making the overall success % look the same, which would make the test look fine, even thought it failed. Some tests check things that are known not to work. Disable these until they are fixed upstream. Also remove the success_criteria field from the config. Fail the test if any subtest fails. This has the added benefit that it fixes the tempest suite, which was still trying to read the value of `succes_criteria` that had been renamed to `success_criteria`. JIRA: SDNVPN-89 Change-Id: Iba5e5cc0db6c371f29a4cbba66ca16c4a1838e12 Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
2016-12-15Make sdnvpn a packageRomanos Skiadas1-0/+210
- Clean up the test/functest folder and move things to lib/ & artifacts/ - Add a new top level folder for the sdnvpn python code Change-Id: I5fdc7fa5475fb800f488a17d3481158c9c4f84e1 Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>