aboutsummaryrefslogtreecommitdiffstats
path: root/tests/functest/odl-sfc/utils.py
AgeCommit message (Collapse)AuthorFilesLines
2016-12-15Make SFC installable as a python modulejose.lausuch1-402/+0
New directory structure: <root>/sfc <root>/sfc/lib/ <root>/sfc/tests <root>/sfc/tests/functest JIRA: SFC-60 After installing sfc, the imports would be: import sfc.tests.functest.x import sfc.lib.x Change-Id: Ib15172239aefdef65056d6598210a1b28a4b2eff Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-12-14Use timethis from functest utilsGeorge Paraskevopoulos1-16/+1
timethis is hosted now in the functest code. Use that and delete the local function Change-Id: Icfdfa0609cd5ac93e6852e77e09bc4b901894f18 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2016-12-13Merge "Use SSHUtils from releng"Manuel Buil1-1/+1
2016-12-13Use SSHUtils from relengGeorge Paraskevopoulos1-1/+1
JIRA: SFC-61 Releng is installed as a pip module and their SSHUtils module under "opnfv.utils.SSHUtils" is compatible with ours so we should use the one from releng repo Change-Id: I2f03eaa78b3b1b19c37b38ae77bef8553a076e7b Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2016-12-13Use ovs_logger module from relengGeorge Paraskevopoulos1-2/+22
JIRA: SFC-61 Releng is now installed as a python module and ovs_utils has been transfered there in "opnfv.utils.ovs_logger" module, so we should use that instead. ofctl_time_counter is still hosted here under utils.py as it's not generic enough to be moved in releng Change-Id: Ie721c95f20a7f515f7f2eb45b7f8edd0460a6ea8 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2016-12-09Merge "remove dependancy of prepare_odl_sfc.py"Manuel Buil1-0/+10
2016-12-09Refactoring test-2 with latest changesManuel Buil1-0/+5
JIRA : SFC-55 Adapting SFC-HA odl-sfc test-2 to the latest changes in SFC-52 Change-Id: I0252b97d99bce75a5cadf4d700bdee91913c6429 Signed-off-by: Manuel Buil <manuelbuil87@gmail.com>
2016-12-09remove dependancy of prepare_odl_sfc.pyVijayendra Radhakrishna1-0/+10
Pre setup files below are not required anymore prepare_odl_sfc.py compute_presetup_CI.bash server_presetup_CI.bash Files are not removed yet. Change-Id: I26cc8ba1a7c61f84fa06809217963ebd7f6b4b20 Signed-off-by: Vijayendra Radhakrishna <vradhakrishna@mvista.com>
2016-12-09Add DHCP security group rulesGeorge Paraskevopoulos1-1/+1
Change-Id: I084a213ace6ffeffdc69db2c496ffeaafbdf178f Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2016-12-08Remove needless returns, convert comments to docstringsRomanos Skiadas1-5/+1
Change-Id: I2ad10d68d71b2d29b68e8fb8b90ba633d67d75bc Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
2016-12-07Unindented return statement in download_image fixVijayendra Radhakrishna1-4/+2
- Add if else for better clarity Change-Id: Iad538139e872635a2af602468f50ceb68cbb93e3 Signed-off-by: Vijayendra Radhakrishna <vradhakrishna@mvista.com>
2016-12-01Refactor capture_time_logGeorge Paraskevopoulos1-33/+26
Make the logic simpler and generalize timing capabilities with a decorator. Also fetch functionality from this functest commit. https://gerrit.opnfv.org/gerrit/#/c/24559/ Change-Id: I0c6392f384021b8f8a3ce3f740c2e5f980e0078c Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2016-11-29odl-sfc refactor:Include sfc and utils libraryVijayendra Radhakrishna1-0/+395
- JIRA:SFC-54 - This has not yet taken care of pre-steps in exec_tests.sh - Commonly used functions moved to utils.py - Improvise Threading for capture_time_log using join and timeout - Add get_compute_nodes function and improvise on create_instance for multiple compute node use cases Change-Id: Ia05fea161b191bd548a3010d7e5ef02fcf69da20 Signed-off-by: Vijayendra Radhakrishna <vradhakrishna@mvista.com>