suite: Test Service Monitors templates: - servicemonitor.yaml tests: - it: should not render Service Monitor if metrics.enabled = false or metrics.prometheusExport = false set: metrics.enabled: false metrics.prometheusExport: false asserts: - hasDocuments: count: 0 template: servicemonitor.yaml - it: should render Service Account if metrics.enabled = true and metrics.authProxy.enabled = true set: metrics.enabled: true metrics.prometheusExport: true asserts: - hasDocuments: count: 1 template: servicemonitor.yaml