Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
flame-clmc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
flame
flame-clmc
Commits
bcc866d9
Commit
bcc866d9
authored
7 years ago
by
Nikolay Stanchev
Browse files
Options
Downloads
Patches
Plain Diff
Fixed failing integration test of aggregator with influx
parent
e7757e48
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/service/clmcservice/aggregation/aggregator.py
+1
-1
1 addition, 1 deletion
src/service/clmcservice/aggregation/aggregator.py
src/test/clmctest/monitoring/test_e2eresults.py
+4
-6
4 additions, 6 deletions
src/test/clmctest/monitoring/test_e2eresults.py
with
5 additions
and
7 deletions
src/service/clmcservice/aggregation/aggregator.py
+
1
−
1
View file @
bcc866d9
...
...
@@ -223,7 +223,7 @@ class AggregatorThread(Thread):
self
.
aggregator
.
stop
()
def
set
_event_lock
(
self
,
event
):
def
add
_event_lock
(
self
,
event
):
"""
Auxiliary method to set a thread-safe event lock object to the aggregator (used for testing).
...
...
This diff is collapsed.
Click to expand it.
src/test/clmctest/monitoring/test_e2eresults.py
+
4
−
6
View file @
bcc866d9
...
...
@@ -46,7 +46,7 @@ class TestE2ESimulation(object):
print
(
"
Starting aggregator...
"
)
event
=
threading
.
Event
()
e2e_aggregator
.
set
_event_lock
(
event
)
e2e_aggregator
.
add
_event_lock
(
event
)
e2e_aggregator
.
start
()
event
.
wait
()
# wait until the aggregator thread has set the event lock (it has reached its run method and is ready to start)
...
...
@@ -67,11 +67,11 @@ class TestE2ESimulation(object):
(
'
SELECT count(*) FROM
"
CLMCMetrics
"
.
"
autogen
"
.
"
service_delays
"'
,
{
"
time
"
:
"
1970-01-01T00:00:00Z
"
,
"
count_response_time
"
:
24
,
"
count_request_size
"
:
24
,
"
count_response_size
"
:
24
}),
(
'
SELECT count(*) FROM
"
CLMCMetrics
"
.
"
autogen
"
.
"
e2e_delays
"'
,
{
"
time
"
:
"
1970-01-01T00:00:00Z
"
,
"
count_delay_forward
"
:
38
,
"
count_delay_reverse
"
:
38
,
"
count_delay_service
"
:
38
,
"
count_avg_request_size
"
:
38
,
"
count_avg_response_size
"
:
38
,
"
count_avg_bandwidth
"
:
38
}),
{
"
time
"
:
"
1970-01-01T00:00:00Z
"
,
"
count_delay_forward
"
:
46
,
"
count_delay_reverse
"
:
46
,
"
count_delay_service
"
:
46
,
"
count_avg_request_size
"
:
46
,
"
count_avg_response_size
"
:
46
,
"
count_avg_bandwidth
"
:
46
}),
(
'
SELECT mean(*) FROM
"
CLMCMetrics
"
.
"
autogen
"
.
"
e2e_delays
"'
,
{
"
time
"
:
"
1970-01-01T00:00:00Z
"
,
"
mean_delay_forward
"
:
8.010964912280702
,
"
mean_delay_reverse
"
:
1
2.881578947368423
,
"
mean_delay_service
"
:
2
3.4210526315789
5
,
{
"
time
"
:
"
1970-01-01T00:00:00Z
"
,
"
mean_delay_forward
"
:
7.856884057971015
,
"
mean_delay_reverse
"
:
1
3.391304347826088
,
"
mean_delay_service
"
:
25
,
'
mean_avg_request_size
'
:
10485760
,
'
mean_avg_response_size
'
:
1024
,
'
mean_avg_bandwidth
'
:
104857600
}),
])
def
test_simulation
(
self
,
influx_db
,
query
,
expected_result
):
...
...
@@ -104,5 +104,3 @@ class TestE2ESimulation(object):
assert
expected_result
.
get
(
key
)
==
actual_result
.
get
(
key
),
"
E2E Simulation test failure
"
assert
expected_result
==
actual_result
,
"
E2E Simulation test failure
"
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