From 90a223366be4ae52cd9c7f97eba40c9f2178bbf3 Mon Sep 17 00:00:00 2001 From: Simon Crowle <sgc@it-innovation.soton.ac.uk> Date: Mon, 26 Mar 2018 12:16:53 +0100 Subject: [PATCH] Corrects config test measurement table reference Also removes superfluous file state & API state tests --- clmctest/monitoring/StreamingSim.py | 13 ------------- clmctest/monitoring/test_MC_Config.py | 4 ++-- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/clmctest/monitoring/StreamingSim.py b/clmctest/monitoring/StreamingSim.py index 7d9fe16..29a7acf 100644 --- a/clmctest/monitoring/StreamingSim.py +++ b/clmctest/monitoring/StreamingSim.py @@ -289,18 +289,6 @@ def reportMC_ServiceState(streaming_sim_config): idbc.write_points( lp.generate_mc_serviceConfig("apache",250, 250, 9500, 4750, 0) ) -@pytest.fixture(scope='module') -def reportMC_ConfigFileState(streaming_sim_config): - """ - Report to determine whether the simulated streaming servers configuration on the endpoints is correct - """ - -@pytest.fixture(scope='module') -def reportMC_APIStatus(streaming_sim_config): - """ - Report to determine whether the simulated streaming servers API status call returns good - """ - ## ------------------------------------------------------------------------------------------------------ ## PYTEST FIXTURES END @@ -326,7 +314,6 @@ def run_simulation(generate=True): else: simulator.db_client.drop_database(simulator.influx_db_name) - if __name__ == "__main__": """ The main entry for this module. Code here is executed only if the StreamingSim.py file is executed, diff --git a/clmctest/monitoring/test_MC_Config.py b/clmctest/monitoring/test_MC_Config.py index e8e56df..37ee3bf 100644 --- a/clmctest/monitoring/test_MC_Config.py +++ b/clmctest/monitoring/test_MC_Config.py @@ -12,9 +12,9 @@ class TestMediaComponentConfig( object ): # For data sent to INFLUX, see reportMC_ServiceState function in StreamingSim.py @pytest.mark.parametrize( "query, expectedResult", [ - ('SELECT "serviceStopped", "avgServiceStopped", "serviceStarted", "avgServiceStarted" FROM "CLMCMetrics"."autogen"."mediaComponentConfig" WHERE ipendpoint=\'adaptive_streaming_I1_apache1\'', + ('SELECT "serviceStopped", "avgServiceStopped", "serviceStarted", "avgServiceStarted" FROM "CLMCMetrics"."autogen"."apache" WHERE ipendpoint=\'adaptive_streaming_I1_apache1\'', {"time" : "1970-01-01T00:00:00Z", "serviceStopped" : 1500, "avgServiceStopped" : 750, "serviceStarted" : 8500, "avgServiceStarted" : 4250}), - ('SELECT "serviceStopped", "avgServiceStopped", "serviceStarted", "avgServiceStarted" FROM "CLMCMetrics"."autogen"."mediaComponentConfig" WHERE ipendpoint=\'adaptive_streaming_I1_apache2\'', + ('SELECT "serviceStopped", "avgServiceStopped", "serviceStarted", "avgServiceStarted" FROM "CLMCMetrics"."autogen"."apache" WHERE ipendpoint=\'adaptive_streaming_I1_apache2\'', {"time" : "1970-01-01T00:00:00Z", "serviceStopped" : 250, "avgServiceStopped" : 250, "serviceStarted" : 9500, "avgServiceStarted" : 4750}) ]) -- GitLab