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
231ab1e6
Commit
231ab1e6
authored
1 year ago
by
Waleed Akbar
Browse files
Options
Downloads
Patches
Plain Diff
"test_stop_collector" and "test_select_collectors" are added
parent
e2c690c1
No related branches found
No related tags found
2 merge requests
!294
Release TeraFlowSDN 4.0
,
!207
Resolve "(CTTC) Separation of Monitoring"
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/telemetry_frontend/tests/test_unitary.py
+13
-1
13 additions, 1 deletion
src/telemetry_frontend/tests/test_unitary.py
with
13 additions
and
1 deletion
src/telemetry_frontend/tests/test_unitary.py
+
13
−
1
View file @
231ab1e6
...
@@ -16,8 +16,9 @@ import os
...
@@ -16,8 +16,9 @@ import os
import
pytest
import
pytest
import
logging
import
logging
from
typing
import
Union
from
typing
import
Union
from
common.proto.context_pb2
import
Empty
from
common.Constants
import
ServiceNameEnum
from
common.Constants
import
ServiceNameEnum
from
common.proto.telemetry_frontend_pb2
import
CollectorId
from
common.proto.telemetry_frontend_pb2
import
CollectorId
,
CollectorList
from
common.proto.context_pb2_grpc
import
add_ContextServiceServicer_to_server
from
common.proto.context_pb2_grpc
import
add_ContextServiceServicer_to_server
from
context.client.ContextClient
import
ContextClient
from
context.client.ContextClient
import
ContextClient
from
common.tools.service.GenericGrpcService
import
GenericGrpcService
from
common.tools.service.GenericGrpcService
import
GenericGrpcService
...
@@ -167,3 +168,14 @@ def test_start_collector(telemetryFrontend_client):
...
@@ -167,3 +168,14 @@ def test_start_collector(telemetryFrontend_client):
LOGGER
.
debug
(
str
(
response
))
LOGGER
.
debug
(
str
(
response
))
assert
isinstance
(
response
,
CollectorId
)
assert
isinstance
(
response
,
CollectorId
)
def
test_stop_collector
(
telemetryFrontend_client
):
LOGGER
.
warning
(
'
test_stop_collector requesting
'
)
response
=
telemetryFrontend_client
.
StopCollector
(
'
1
'
)
LOGGER
.
debug
(
str
(
response
))
assert
isinstance
(
response
,
Empty
)
def
test_select_collectors
(
telemetryFrontend_client
):
LOGGER
.
warning
(
'
test_select_collector requesting
'
)
response
=
telemetryFrontend_client
.
SelectCollectors
()
LOGGER
.
debug
(
str
(
response
))
assert
isinstance
(
response
,
CollectorList
)
\ No newline at end of file
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