Skip to content
Snippets Groups Projects
Commit ae11159e authored by MJB's avatar MJB
Browse files

updated monitoring test to be consistent with naming on platform

parent 01c3c1f8
Branches
Tags
No related merge requests found
...@@ -21,11 +21,11 @@ hosts: ...@@ -21,11 +21,11 @@ hosts:
host: 8081 host: 8081
ip_address: "203.0.113.140" ip_address: "203.0.113.140"
location: "DC1" location: "DC1"
sfc_id: "MS_Template_1" sfc_id: "media_service_A"
sfc_id_instance: "MS_I1" sfc_id_instance: "MS_I1"
sf_id: "adaptive_streaming" sf_id: "test-sf-clmc-agent-build"
sf_id_instance: "adaptive_streaming_I1" sf_id_instance: "ms-A.ict-flame.eu"
ipendpoint_id: "adaptive_streaming_I1_apache1" ipendpoint_id: "endpoint1.ms-A.ict-flame.eu"
influxdb_url: "http://203.0.113.100:8086" influxdb_url: "http://203.0.113.100:8086"
database_name: "CLMCMetrics" database_name: "CLMCMetrics"
- name: ipendpoint2 - name: ipendpoint2
...@@ -38,11 +38,11 @@ hosts: ...@@ -38,11 +38,11 @@ hosts:
host: 8082 host: 8082
ip_address: "203.0.113.141" ip_address: "203.0.113.141"
location: "DC2" location: "DC2"
sfc_id: "MS_Template_1" sfc_id: "media_service_A"
sfc_id_instance: "MS_I1" sfc_id_instance: "MS_I1"
sf_id: "adaptive_streaming" sf_id: "test-sf-clmc-agent-build"
sf_id_instance: "adaptive_streaming_I1" sf_id_instance: "ms-A.ict-flame.eu"
ipendpoint_id: "adaptive_streaming_I1_apache2" ipendpoint_id: "endpoint2.ms-A.ict-flame.eu"
influxdb_url: "http://203.0.113.100:8086" influxdb_url: "http://203.0.113.100:8086"
database_name: "CLMCMetrics" database_name: "CLMCMetrics"
- name: test-runner - name: test-runner
......
...@@ -27,9 +27,9 @@ class TestSimulation(object): ...@@ -27,9 +27,9 @@ class TestSimulation(object):
('SELECT count(*) FROM "CLMCMetrics"."autogen"."vm_res_alloc"', ('SELECT count(*) FROM "CLMCMetrics"."autogen"."vm_res_alloc"',
{"time": "1970-01-01T00:00:00Z", "count_cpu": 12, "count_memory": 12, "count_storage": 12}), {"time": "1970-01-01T00:00:00Z", "count_cpu": 12, "count_memory": 12, "count_storage": 12}),
('SELECT count(*) FROM "CLMCMetrics"."autogen"."mpegdash_service_config" WHERE ipendpoint=\'adaptive_streaming_I1_apache1\'', ('SELECT count(*) FROM "CLMCMetrics"."autogen"."mpegdash_service_config" WHERE ipendpoint=\'endpoint1.ms-A.ict-flame.eu\'',
{"time" : "1970-01-01T00:00:00Z", "count_avg_running" : 3604, "count_avg_starting" : 3604, "count_avg_stopped" : 3604, "count_avg_stopping" : 3604, "count_running" : 3604, "count_starting" : 3604, "count_stopped" : 3604, "count_stopping" : 3604}), {"time" : "1970-01-01T00:00:00Z", "count_avg_running" : 3604, "count_avg_starting" : 3604, "count_avg_stopped" : 3604, "count_avg_stopping" : 3604, "count_running" : 3604, "count_starting" : 3604, "count_stopped" : 3604, "count_stopping" : 3604}),
('SELECT count(*) FROM "CLMCMetrics"."autogen"."mpegdash_service_config" WHERE ipendpoint=\'adaptive_streaming_I1_apache2\'', ('SELECT count(*) FROM "CLMCMetrics"."autogen"."mpegdash_service_config" WHERE ipendpoint=\'endpoint2.ms-A.ict-flame.eu\'',
{"time" : "1970-01-01T00:00:00Z", "count_avg_running" : 3604, "count_avg_starting" : 3604, "count_avg_stopped" : 3604, "count_avg_stopping" : 3604, "count_running" : 3604, "count_starting" : 3604, "count_stopped" : 3604, "count_stopping" : 3604}), {"time" : "1970-01-01T00:00:00Z", "count_avg_running" : 3604, "count_avg_starting" : 3604, "count_avg_stopped" : 3604, "count_avg_stopping" : 3604, "count_running" : 3604, "count_starting" : 3604, "count_stopped" : 3604, "count_stopping" : 3604}),
]) ])
def test_simulation( self, run_simulator, influx_db, query, expected_result ): def test_simulation( self, run_simulator, influx_db, query, expected_result ):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment