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