Skip to content
Snippets Groups Projects
Commit 68ced8ae authored by Carlos Natalino Da Silva's avatar Carlos Natalino Da Silva
Browse files

Fixing bind address and clearning services.

parent 14428242
No related branches found
No related tags found
2 merge requests!142Release TeraFlowSDN 2.1,!138Fixing the tests of the optical cybersecurity components
...@@ -77,6 +77,7 @@ unit_test opticalattackdetector: ...@@ -77,6 +77,7 @@ unit_test opticalattackdetector:
after_script: after_script:
- docker rm -f $IMAGE_NAME - docker rm -f $IMAGE_NAME
- docker rm -f redis - docker rm -f redis
- docker rm -f dbscanserving
- docker network rm teraflowbridge - docker network rm teraflowbridge
rules: rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH)' - if: '$CI_PIPELINE_SOURCE == "merge_request_event" && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "develop" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH)'
......
...@@ -43,8 +43,11 @@ def optical_attack_detector_service(): ...@@ -43,8 +43,11 @@ def optical_attack_detector_service():
@pytest.fixture(scope="session") @pytest.fixture(scope="session")
def optical_attack_detector_client(optical_attack_detector_service): def optical_attack_detector_client(optical_attack_detector_service: OpticalAttackDetectorService):
_client = OpticalAttackDetectorClient() _client = OpticalAttackDetectorClient(
host=optical_attack_detector_service.bind_address,
port=optical_attack_detector_service.bind_port,
)
yield _client yield _client
_client.close() _client.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment