From 0bb189a09bd4cfcb0842b634322ce3f9c2d15bbf Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Thu, 4 Jun 2020 17:02:25 -0400 Subject: [PATCH] Improve PrometheusCaptureContext spec --- .../metrics_capture/prometheus_capture_context_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/models/manageiq/providers/kubernetes/container_manager/metrics_capture/prometheus_capture_context_spec.rb b/spec/models/manageiq/providers/kubernetes/container_manager/metrics_capture/prometheus_capture_context_spec.rb index 3a48ed9d50..31960d9c05 100644 --- a/spec/models/manageiq/providers/kubernetes/container_manager/metrics_capture/prometheus_capture_context_spec.rb +++ b/spec/models/manageiq/providers/kubernetes/container_manager/metrics_capture/prometheus_capture_context_spec.rb @@ -52,6 +52,11 @@ data = context.collect_metrics expect(data).to be_a_kind_of(Hash) + expect(data.keys).to include(start_time, end_time) + expect(data[start_time].keys).to include( + "cpu_usage_rate_average", + "mem_usage_absolute_average" + ) end end end