diff options
author | Juan Vidal <juan.vidal.allende@ericsson.com> | 2017-02-15 09:55:11 +0000 |
---|---|---|
committer | Juan Vidal <juan.vidal.allende@ericsson.com> | 2017-02-16 09:01:22 +0000 |
commit | ca7b72ad1a50c353b7ffc4e2934e654f73603c62 (patch) | |
tree | 3c855bae997839c324a1ef3c407f31d7626b0b72 /sfc/tests/functest/sfc_one_chain_two_service_functions_different_computes.py | |
parent | 0a71385549cb564b78cde66ecedc8064d7bfd8a0 (diff) |
Fix is_ssh_blocked and is_http_blocked
This patch fixes JIRA SFC-79
Previously, those functions used regex matching against the command output.
Now, the return code from netcat is used. It should be easier and more
relieable.
Change-Id: I639c64b3fe0a0e3c0b59f73e5615b8737e676849
Signed-off-by: Juan Vidal <juan.vidal.allende@ericsson.com>
Diffstat (limited to 'sfc/tests/functest/sfc_one_chain_two_service_functions_different_computes.py')
-rw-r--r-- | sfc/tests/functest/sfc_one_chain_two_service_functions_different_computes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfc/tests/functest/sfc_one_chain_two_service_functions_different_computes.py b/sfc/tests/functest/sfc_one_chain_two_service_functions_different_computes.py index 71b69dff..e5a9f206 100644 --- a/sfc/tests/functest/sfc_one_chain_two_service_functions_different_computes.py +++ b/sfc/tests/functest/sfc_one_chain_two_service_functions_different_computes.py @@ -218,7 +218,7 @@ def main(): time.sleep(100) logger.info("Test HTTP") - if not test_utils.is_http_blocked(srv_prv_ip, client_ip): + if not test_utils.is_http_blocked(client_ip, srv_prv_ip): logger.info('\033[92mTEST 1 [PASSED] ==> HTTP WORKS\033[0m') update_json_results("Test 1: HTTP works", "Passed") else: @@ -235,7 +235,7 @@ def main(): test_utils.vxlan_firewall(sf1, port="80") logger.info("Test HTTP again") - if test_utils.is_http_blocked(srv_prv_ip, client_ip): + if test_utils.is_http_blocked(client_ip, srv_prv_ip): logger.info('\033[92mTEST 2 [PASSED] ==> HTTP Blocked\033[0m') update_json_results("Test 2: HTTP Blocked", "Passed") else: |