aboutsummaryrefslogtreecommitdiffstats
path: root/sfc/tests/functest/sfc_parent_function.py
AgeCommit message (Collapse)AuthorFilesLines
2019-05-10Allow TCs to consume config info from user's filePanagiotis Karalis1-35/+64
The SFC TCs are bound by the installers. This means that the SFC TCs could not run on server or VM which all components (e.g. OS, ODL, etc) are deployed manually and not by an installer, because some information are retrieved directly from installer through deploy factory module. A new yaml file is created by user in order for the important information to be consumed by the respective test scenario during test execution. JIRA: SFC-142 Change-Id: I051bb6406b8aa433c19e4df10396b4789448d42b Signed-off-by: Panagiotis Karalis <pkaralis@intracom-telecom.com>
2019-01-25Fix Two Chains Test and Enabled all Testcasesgvrangan1-7/+117
- Method added to support Port Chain update - Used the new method to modify the test as follows - Create two Port Chains (one VNF per chain) - Block ssh in one vnf and http in the other - Test communication - Swap the flow classifiers in the chains so that ssh packets are sent to vnf where http is blocked and vice versa - Fix extracting odl username/password from ml2_conf - Checking flow classifiers are implemented - Fixed odl cleanup Change-Id: I1f0f3a3b829d6c73d1bb1a774ebf3484912b84b7 Signed-off-by: gvrangan <venkatrangang@hcl.com>
2019-01-21Simplify deletion test and fix unittestManuel Buil1-21/+19
Removing the port groups when deleting the first chain simplifies things because we don't need port_groups to be a variable of the SfcCommonTestCase class There were also some missing unittest Change-Id: I6ae780bdc72116907a9e6037571c29f28a6ba334 Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-11-26Migrate SNAPS to Openstack-SDKNikos Mimigiannis1-60/+36
JIRA: SFC-137 This patch replaces SNAPS library with openstack_SDK library for TCs with mano component: no-mano Change-Id: I99b9a5f54a273f61ecff05a11616440d5e85e55b Signed-off-by: Nikos Mimigiannis <nmimi@intracom-telecom.com>
2018-11-14Fix bug in the symmetric test caseManuel Buil1-12/+14
The symmetric testcase requires the neutron port of the server to check that the classification rules were written in the flow tables. This patch adds that. Change-Id: I7ce930b102409f2772771a9c5b0e6de99bb293a0 Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-09-03Remove port security from vnfs when no-manoManuel Buil1-1/+2
If the ports have security enabled, the traffic is dropped due to the anti-spoofing Change-Id: I6fbc63a3d959d9d55dfd1d64e12e1d0e7ec48bcb Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-08-31Decouple tacker from testsManuel Buil1-55/+181
Support n-sfc too and abstract a bit the MANO layer so that other MANO components can be inserted into the test Change-Id: I3fb59fbf40b4207bf1721092cd8ff0559e1d9d90 Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-08-30Merge "Bug fix: Bad usage of positional argument"Manuel Buil1-2/+2
2018-08-29Improve readability of the testsManuel Buil1-5/+5
The method name "create_custom_av" does not clearly say what it is doing. Changing it to "create_vnf" clarifies the code better Change-Id: Ic3f874bdb22891d348e5609130b8e4f0f3f8c3e8 Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-08-29Bug fix: Bad usage of positional argumentManuel Buil1-2/+2
av_zone is passed as a positional argument, however, the create_instance method does not define av_zone as positional: https://github.com/opnfv/sfc/blob/master/sfc/lib/openstack_utils.py#L136-L137 so we should not pass it as a positional argument Change-Id: I035012ef3ffce3318e0bece712cb6bdad8e8cdd0 Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-06-15Fix "Remove the annoying WARNINGS when using XCI"Bill Morrisson1-1/+5
When executing the SFC tests in XCI, we constantly get a whole bunch of annoying "InsecureRequestWarning" messages which does not allow to follow what is going on in the test. This patch filters all those errors leaving the output of the functest results clean. Change-Id: I3bd9519676222d00ee4a2c8d47084737cd9768aa Signed-off-by: Bill Morrisson <billmorrissonjr@gmail.com>
2018-06-12Rethink the clean up processPanagiotis Karalis1-17/+9
Using the '--nocleanup' parameter as part of command, the cleanup mechanism could be disable. Otherwise, the cleanup method is executed even if a exception has been raised. Change-Id: I9638369900f599793393feb5184c30b74f1b7c7e Signed-off-by: Panagiotis Karalis <pkaralis@intracom-telecom.com>
2018-06-07Provide support for VNFsManuel Buil1-0/+9
Currently it is not possible to define different images for client/server and VNFs. This functionality is important to have in order to test different VNFs Change-Id: Ibc3b3f1102d52529701748d37f795cdf05269410 Signed-off-by: Manuel Buil <mbuil@suse.com>
2018-06-01Fix the logging to be compatible with functestPanagiotis Karalis1-1/+1
In order to collect logs from SFC test scenarios running through functest framework (mainly for troubleshooting purposes), the logging mechanism has been updated accordingly. JIRA: SFC-125 Change-Id: Ide7c32519afa6ece299d0ac1dcb168609a2e3945 Signed-off-by: Panagiotis Karalis <pkaralis@intracom-telecom.com>
2018-05-22Fix symmetric test case result summaryJaime Caamaño Ruiz1-4/+6
Correctly print in test summary whether we are testing HTTP uplink or HTTP uplink. Change-Id: Ib8d4cc4a5e794384720d7023032c5340039e2ff1 Signed-off-by: Jaime Caamaño Ruiz <jcaamano@suse.com>
2018-05-15Clean up Test Case codePanagiotis Karalis1-0/+519
Too much of duplicated code has been obeserved in test cases. With this patch a small refactoring is necessery to our test cases code. So they can be more generic and more flexible. To achieve that the addition of new parent class is essential, hence all the rest test case classes will inherit from the aforementioned parent class. Change-Id: I6a50d8330a06321742b3bb03cc999682d4a4e6a1 Signed-off-by: Panagiotis Karalis <pkaralis@intracom-telecom.com>