Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TFS
controller
Commits
68ced8ae
Commit
68ced8ae
authored
1 year ago
by
Carlos Natalino Da Silva
Browse files
Options
Downloads
Patches
Plain Diff
Fixing bind address and clearning services.
parent
14428242
No related branches found
No related tags found
2 merge requests
!142
Release TeraFlowSDN 2.1
,
!138
Fixing the tests of the optical cybersecurity components
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/opticalattackdetector/.gitlab-ci.yml
+1
-0
1 addition, 0 deletions
src/opticalattackdetector/.gitlab-ci.yml
src/opticalattackdetector/tests/test_unitary.py
+5
-2
5 additions, 2 deletions
src/opticalattackdetector/tests/test_unitary.py
with
6 additions
and
2 deletions
src/opticalattackdetector/.gitlab-ci.yml
+
1
−
0
View file @
68ced8ae
...
@@ -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)'
...
...
This diff is collapsed.
Click to expand it.
src/opticalattackdetector/tests/test_unitary.py
+
5
−
2
View file @
68ced8ae
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment