summaryrefslogtreecommitdiffstats
path: root/sdnvpn/test/functest
AgeCommit message (Collapse)AuthorFilesLines
2017-08-02Install run_sdnvpn_tests.py in $PATHCédric Ollivier1-0/+0
It eases how Functest runs it (see testcases.yaml [1]). The former run_tests.py is renamed to avoid duplicated binaries (see [2] and [3]). [1] https://git.opnfv.org/functest/tree/functest/ci/testcases.yaml [2] https://git.opnfv.org/sfc/tree/sfc/tests/functest/run_tests.py [3] https://git.opnfv.org/promise/tree/promise/test/functest/run_tests.py Change-Id: I50219cad42bf0e085c2edf2e1abe149c2e057a99 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-07-25Refactor imports and invocation of main functionpanageo27-36/+35
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-07-24Merge "Add test case 9"Tim Irnich2-0/+83
2017-07-24Fix log gathering functionalitytomsou1-1/+1
Some fixes on https://gerrit.opnfv.org/gerrit/#/c/37261/ JIRA: SDNVPN-170 Change-Id: I2f396f509181b45bfccb76fbfd904d7591000df9 Signed-off-by: tomsou <soth@intracom-telecom.com>
2017-07-18Add test case 9panageo22-0/+83
Development of a new test that checks all nodes and succeeds if all OVS br-int interfaces have fail_mode=secure JIRA: SDNVPN-168 Change-Id: Iff14f60e2d25c1769cdec7cec126425937780eb7 Signed-off-by: panageo2 <panageo@intracom-telecom.com>
2017-07-12Adding log gatheringNikolas Hermanns1-1/+7
Change-Id: I0f13e5aa8aea25e549c9ffede63085a86153cdba Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
2017-06-29Merge "Adapt the floating ip handling in functest"Nikolas Hermanns6-28/+25
2017-06-29Merge "Transfer utils functions from functest"Nikolas Hermanns5-19/+20
2017-06-28Transfer utils functions from functestpanageo25-19/+20
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 functesttomsou6-28/+25
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-06-20Restore peering within testcase3 for Apextomsou1-16/+13
Change-Id: I7f3a4892e6ef73fb13512e427fab3e42ff1b69d9 Signed-off-by: tomsou <soth@intracom-telecom.com>
2017-05-31Cleanup after testcase runningtomsou6-39/+152
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-25Fix fail of pinging a floating IP- testcase8tomsou1-0/+1
-Raise the upper bound for ping action JIRA: SDNVPN-154 Change-Id: Ifadf58f551f706a90cc17b0b1f8d05718e4908f9 Signed-off-by: tomsou <soth@intracom-telecom.com>
2017-05-17Update logger via logging.getLogger()Linda Wang8-16/+24
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-05-09Fix the zrpcd running check within testcase3tomsou1-1/+1
Check specifically the "running" state of the zrpcd service JIRA: SDNVPN-150 Change-Id: I1b63f25dfab5fd4507cc219fb1c21291064a8bab Signed-off-by: tomsou <soth@intracom-telecom.com>
2017-05-04Removing peering testcase for ApexNikolas Hermanns1-13/+17
Change-Id: Ifad3f84fcb0c5dfa07aca43d74a027e3522abb87 Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
2017-05-03Clean always and change orderNikolas Hermanns1-18/+19
Change-Id: Ic9e0d374a4fe5278888b28fe2694c546840d55b4 Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
2017-05-03Remove dependence inetNikolas Hermanns1-1/+0
A new ubuntu image with quagga included was uploaded to artifacts.opnfv.org/sdnvpn/ ubuntu-16.04-server-cloudimg-amd64-disk1.img Change-Id: I7e48ebbc2b00b7e771f43b26303acc66c2c48457 Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
2017-05-02Cleanup br-ex/br-quagga from testcase_3tomsou1-0/+2
After the peering between Quagga and ODL within testcase 3 cleanup br-ex (for fuel) or br-quagga (for apex) interfaces JIRA: SDNVPN-13 Change-Id: I3e7bf91d4e47dfd7fe2a5068ed40ea4b2be48c6d Signed-off-by: tomsou <soth@intracom-telecom.com>
2017-04-07remove unused tempest blacklistNikolas Hermanns1-9/+0
Change-Id: Ica6365f41f1d4cf46244604b2ccb889bad051680 Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
2017-04-06Correct testcase 8 descriptionNikolas Hermanns1-4/+6
jira: SDNVPN-138 Change-Id: If56b58b003ce2e024883a015a964e3ff3ded53f5 Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
2017-04-04Do not stop tests if exception in testcaseNikolas Hermanns1-1/+8
Change-Id: I9e3db350be4b1ca60d6feaf2961034b50b50deb5 Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
2017-04-03Merge "Fix security group rule conflict"Nikolas Hermanns3-3/+10
2017-03-30Update url for ubuntu image downloading- testcase3tomsou1-2/+2
The url that the testcase3 uses to download ubuntu image (https://cloud-images.ubuntu.com/releases/16.04/release/ ubuntu-16.04-server-cloudimg-amd64-disk1.img) is unstable. This change updates it, using the one from the OPNFV artifact repo JIRA: SDNVPN-133 Change-Id: Ic7265b572064f1df7ce30ab5249b1bdb61c63777 Signed-off-by: tomsou <soth@intracom-telecom.com>
2017-03-29Merge "Prepare run_tests to be called directly to main()"Jose Lausuch1-10/+9
2017-03-28Fix security group rule conflicttomsou3-3/+10
-open_icmp_ssh function, that creates security group rules for icmp and http (here the name of the function is misleading), is splitted into 2 new functions one for each rule (open_icmp() and open_http_port()). Test cases that used the old function have been updated -In the original implementation of open_icmp_ssh() and open_bgp_port(), the direction parameter was missing. This was leading to an error message -A check for the existence of security group rule has been added and used before the creation of each security group rule. If a rule already exists, an info message is printed and the testcase continues This change is strongly dependent on https://gerrit.opnfv.org/gerrit/#/c/31925 of Functest repo. NOT TO BE MERGED before JIRA: SDNVPN-103 Change-Id: Icb96954556f6d7294cf3454f045dbca4b9be672d Signed-off-by: tomsou <soth@intracom-telecom.com>
2017-03-28Remove quagga fix in the testcaseNikolas Hermanns1-12/+1
Solves partly: JIRA: SDNVPN-130 Change-Id: I1cf99e9294925545f6fece660983e32f6543f2b8 Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
2017-03-27Prepare run_tests to be called directly to main()jose.lausuch1-10/+9
Instead of python -> bash -> python, call the BGPVPN test using main() Change-Id: I8cca741814937e0a7a1d8b848fa8658e4f0d6fb5 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-03-24Fix testcase3 (peering subcase) for Apextomsou1-5/+15
- Fix runnning bgp related commands on Karaf: update util.run_odl_cmd() in order to be able to run commands on karaf client. Otherwise karaf commands fail - Ensure zrpcd/bgpd to run on controller side properly: Add missing quagga run folder, change owner and add user quagga into quaggavt group, in case of apex installer - Update the way of handling br-ex information and parsing out the controller external ip and mask: In case we have multiple ip/netmask assigned on br-ex the separation was faulty and an extra line, containing the second ip address, was added into ext_net_mask variable JIRA: SDNVPN-118 Change-Id: I62468c94fd945ba30e419bd30d9cd85502f28eeb Signed-off-by: tomsou <soth@intracom-telecom.com>
2017-03-22Merge "Set unlimited port quotas"Nikolas Hermanns1-1/+2
2017-03-22Testcase 3 Apex compatibility fixesRomanos Skiadas1-17/+20
- Workaround a bug releng in getting opedaylight nodes - Add some sudo commands because the path is not properly set otherwise it seems - remove needless command that gets ip information from the compute, since that is already available from when the command was ran on the controller - Handle attaching the quagga instance to Apex's br-ex ovs bridge Change-Id: I870f1049d9cce696ec26376a09db5f9e9bac0bf9 Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
2017-03-18Set unlimited port quotasRomanos Skiadas1-1/+2
Change-Id: I6de4bc921f1823f58395e27d804b863b79d23030 JIRA: SDNVPN-126 Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
2017-03-17Create flavor for Quagga ubuntu VMtomsou2-2/+4
- Implement a new function in lib/utils ensures (gets or creates) a new flavor existence - Use this new function within Testcase3, in order to create a flavor big enough to start ubuntu with JIRA: SDNVPN-120 Change-Id: I5c7d9c855f083b96bfd056bb5d935baa851420c9 Signed-off-by: tomsou <soth@intracom-telecom.com>
2017-03-16Merge "Fix most end-to-end issues with testcase 3 and reenable it"Nikolas Hermanns2-111/+81
2017-03-16Fix most end-to-end issues with testcase 3 and reenable itRomanos Skiadas2-111/+81
- Make the test work end-to-end on Fuel - Use the instance log to verify quagga started - Don't attempt to check for peering, as that is for a future release - Use the external IP of the controller for peering - Fix not getting the output of OpenDaylight commands Change-Id: Ia7bb533ab65e0fca6b7f48bb64133f6d8f3ff8ae JIRA: SDNVPN-114 Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
2017-03-15Implement a get VM IP function in utils to be used within test casestomsou4-10/+10
Change-Id: Iaedbfb2fc626eb7d88badee2530593b43c0d1152 Signed-off-by: tomsou <soth@intracom-telecom.com>
2017-03-15Set unlimited instance quotas to fix CItomsou1-0/+7
JIRA: SDNVPN-115 Change-Id: I4e24800e897702b8b5aa5ef0227925d66d552f02 Signed-off-by: tomsou <soth@intracom-telecom.com>
2017-03-14Fix quagga peering by working around the NATRomanos Skiadas1-4/+33
Quagga peering doesn't seem to work over the NATted openstack external network. To work around this, directly patch the quagga instance to the external network and give it a fixed IP in that network. Then, all the peering traffic goes over that patched interface. Change-Id: I8d9d8fef4e86839c821f83e564d5c49cc15e43ae JIRA: SDNVPN-114 Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
2017-03-13Fix typo in quagga script and call to glanceRomanos Skiadas1-2/+2
Change-Id: I80ce2f3b442bc7862486368822c8fe2cd13a0f1b JIRA: SDNVPN-114 Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
2017-03-13Fix bgpd.conf path and duplication in tc_3Romanos Skiadas1-6/+0
Change-Id: I78e521fddd8a156d5c9597d6307ac9b6f2571f5c Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
2017-03-07Fix functest failing in apex case- testcase3tomsou1-14/+5
- Check the INSTALLER_TYPE environment variable - Differentiate fuel from apex case JIRA: SDNVPN-101 Change-Id: I10fa26f5c0b7f95601b29db86e756a20c9e921ec Signed-off-by: tomsou <soth@intracom-telecom.com>
2017-03-06Merge "Set unlimited network and subnet quotas to fix CI"Nikolas Hermanns1-0/+7
2017-03-02Set unlimited network and subnet quotas to fix CIRomanos Skiadas1-0/+7
Change-Id: I0804580fa5d89550911a5caf08dc00f9c9523bb1 JIRA: SDNVPN-100 Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
2017-03-02Implement quagga peeringRomanos Skiadas2-13/+175
- Create an openstack instance - Assign it a floating IP - Execute a quagga bootstrap script using cloud init - Tell ODL to peer with the instance - Start an instance in a VPN - make sure the route was exchanged between the peered quagga and ODL Change-Id: I73bcaec5425df2b953c2bceaca7d4f09ff28f3d0 Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
2017-02-23Implement testcase 3: Quagga-ODL integrationtomsou2-2/+117
Testcase 3, which verifies OpenDaylight can start and communicate with zrpcd/Quagga - Verify that zrpdc service is running - Issue bgp speaker start to OpenDaylight - Verify that zrpcd has started bgpd JIRA: SDNVPN-98 Change-Id: Ia0c497292a724161259c669425229d189a317ba2 Signed-off-by: tomsou <soth@intracom-telecom.com> Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
2017-02-21TC 8:Fix argument passed to create_glance_imageRomanos Skiadas1-1/+1
Change-Id: Ibed4febf84f4384ffcca951bd95d5284add454ea Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
2017-02-17Enable floating IP and router assoc testRomanos Skiadas1-1/+1
Change-Id: I2bc538fd055a14c5295f955ed700674cf60ad452 Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
2017-02-16Merge "Fix incompatibility with new tempest functest API"Jose Lausuch1-4/+9
2017-02-12Add and update license headersjose.lausuch8-8/+8
Change-Id: I8ccb23c9ffa0d511427ad089b033973ffe96360f Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2017-02-08Fix incompatibility with new tempest functest APIRomanos Skiadas1-4/+9
Change-Id: I2f2bf9ed9dd775bec222d2faa241ffd1920aa516 JIRA: SDNVPN-93 Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com> Signed-off-by: tomsou <soth@intracom-telecom.com>