Skip to content
Snippets Groups Projects
Commit 3bf3e831 authored by Nikolay Stanchev's avatar Nikolay Stanchev
Browse files

Issue #67 - added test for mean values of e2e measurements

parent ae7d576e
No related branches found
No related tags found
No related merge requests found
...@@ -130,7 +130,7 @@ class Simulator(object): ...@@ -130,7 +130,7 @@ class Simulator(object):
sim_time += self.TICK sim_time += self.TICK
end_time = sim_time end_time = sim_time
print("Start time: {0}, End time: {1}".format(start_time, end_time)) print("Simulation finished. Start time: {0}, End time: {1}".format(start_time, end_time))
if __name__ == "__main__": if __name__ == "__main__":
......
...@@ -64,6 +64,9 @@ class TestE2ESimulation(object): ...@@ -64,6 +64,9 @@ class TestE2ESimulation(object):
{"time": "1970-01-01T00:00:00Z", "count_response_time": 24}), {"time": "1970-01-01T00:00:00Z", "count_response_time": 24}),
('SELECT count(*) FROM "E2EMetrics"."autogen"."e2e_delays"', ('SELECT count(*) FROM "E2EMetrics"."autogen"."e2e_delays"',
{"time": "1970-01-01T00:00:00Z", "count_D_path_F": 24, "count_D_path_R": 24, "count_D_service": 24}), {"time": "1970-01-01T00:00:00Z", "count_D_path_F": 24, "count_D_path_R": 24, "count_D_service": 24}),
('SELECT mean(*) FROM "E2EMetrics"."autogen"."e2e_delays"',
{"time": "1970-01-01T00:00:00Z", "mean_D_path_F": 13.159722222222223, "mean_D_path_R": 3.256944444444444, "mean_D_service": 32.791666666666664}),
]) ])
def test_simulation(self, influx_db, query, expected_result): def test_simulation(self, influx_db, query, expected_result):
""" """
......
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