diff --git a/clmctest/monitoring/test_simresults.py b/clmctest/monitoring/test_simresults.py index 02d3913e9ce719d4841ee2fb12019315c5206e43..a18f282c68a12c3cb6927d84395de13a310f7398 100644 --- a/clmctest/monitoring/test_simresults.py +++ b/clmctest/monitoring/test_simresults.py @@ -43,12 +43,22 @@ class TestSimulation(object): ('SELECT count(*) FROM "CLMCMetrics"."autogen"."mpegdash_service_config" WHERE ipendpoint=\'adaptive_streaming_I1_apache2\'', {"time": "1970-01-01T00:00:00Z", "count_avg_running": 3609, "count_avg_starting": 3609, "count_avg_stopped": 3609, "count_avg_stopping": 3609, "count_running": 3609, "count_starting": 3609, "count_stopped": 3609, "count_stopping": 3609}), - ('SELECT mean(avg_placing) as "avg_placing" FROM "CLMCMetrics"."autogen"."endpoint_config" WHERE avg_placing <> 0', - {"time": "1970-01-01T00:00:00Z", "avg_placing": 0.9272727272727274}), - ('SELECT mean(avg_booting) as "avg_booting" FROM "CLMCMetrics"."autogen"."endpoint_config" WHERE avg_booting <> 0', - {"time": "1970-01-01T00:00:00Z", "avg_booting": 0.8727272727272727}), - ('SELECT mean(avg_connecting) as "avg_connecting" FROM "CLMCMetrics"."autogen"."endpoint_config" WHERE avg_connecting <> 0', - {"time": "1970-01-01T00:00:00Z", "avg_connecting": 0.9272727272727272}), + ('SELECT mean(avg_placing) as "avg_placing" FROM "CLMCMetrics"."autogen"."endpoint_config" WHERE avg_placing <> 0 and ipendpoint=\'adaptive_streaming_I1_apache1\'', + {"time": "1970-01-01T00:00:00Z", "avg_placing": 9.4}), + ('SELECT mean(avg_booting) as "avg_booting" FROM "CLMCMetrics"."autogen"."endpoint_config" WHERE avg_booting <> 0 and ipendpoint=\'adaptive_streaming_I1_apache1\'', + {"time": "1970-01-01T00:00:00Z", "avg_booting": 9.6}), + ('SELECT mean(avg_connecting) as "avg_connecting" FROM "CLMCMetrics"."autogen"."endpoint_config" WHERE avg_connecting <> 0 and ipendpoint=\'adaptive_streaming_I1_apache1\'', + {"time": "1970-01-01T00:00:00Z", "avg_connecting": 10.2}), + ('SELECT mean(avg_connected) as "avg_connected" FROM "CLMCMetrics"."autogen"."endpoint_config" WHERE avg_connected <> 0 and ipendpoint=\'adaptive_streaming_I1_apache1\'', + {"time": "1970-01-01T00:00:00Z", "avg_connected": 3605.0}), + ('SELECT mean(avg_placing) as "avg_placing" FROM "CLMCMetrics"."autogen"."endpoint_config" WHERE avg_placing <> 0 and ipendpoint=\'adaptive_streaming_I1_apache2\'', + {"time": "1970-01-01T00:00:00Z", "avg_placing": 9.4}), + ('SELECT mean(avg_booting) as "avg_booting" FROM "CLMCMetrics"."autogen"."endpoint_config" WHERE avg_booting <> 0 and ipendpoint=\'adaptive_streaming_I1_apache2\'', + {"time": "1970-01-01T00:00:00Z", "avg_booting": 9.6}), + ('SELECT mean(avg_connecting) as "avg_connecting" FROM "CLMCMetrics"."autogen"."endpoint_config" WHERE avg_connecting <> 0 and ipendpoint=\'adaptive_streaming_I1_apache2\'', + {"time": "1970-01-01T00:00:00Z", "avg_connecting": 10.2}), + ('SELECT mean(avg_connected) as "avg_connected" FROM "CLMCMetrics"."autogen"."endpoint_config" WHERE avg_connected <> 0 and ipendpoint=\'adaptive_streaming_I1_apache2\'', + {"time": "1970-01-01T00:00:00Z", "avg_connected": 3605.0}), ('SELECT mean(avg_stopped) as "avg_stopped" FROM "CLMCMetrics"."autogen"."mpegdash_service_config" WHERE avg_stopped <> 0', {"time": "1970-01-01T00:00:00Z", "avg_stopped": 0.15}),