Adds the ability for mockPromMetrics in the job-componentsTestContext to properly gather metrics by labels. This was necessary to test count_by_field in standard-assets.
Add clusterManagerType to JobHarnessOptions used by the base-test-harness. This will set context.sysconfig.teraslice.cluster_manager_type, which must be kubernetes for prom metrics to be enabled.
This PR makes the following changes:
mockPromMetrics
in thejob-components
TestContext
to properly gather metrics by labels. This was necessary to testcount_by_field
instandard-assets
.clusterManagerType
toJobHarnessOptions
used by thebase-test-harness
. This will setcontext.sysconfig.teraslice.cluster_manager_type
, which must bekubernetes
for prom metrics to be enabled.