Prometheus: Fix running of health check query based on access mode (#42189)

* Prometheus: Use this.query for health check

* Update alertMessage in e2e tests
This commit is contained in:
Ivana Huckova
2021-11-24 12:43:39 +01:00
committed by GitHub
parent 10f844e3ad
commit 1b4f6b19cb
2 changed files with 29 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ const dataSourceName = 'PromExemplar';
const addDataSource = () => {
e2e.flows.addDataSource({
type: 'Prometheus',
expectedAlertMessage: 'Bad Gateway',
expectedAlertMessage: 'Error reading Prometheus',
name: dataSourceName,
form: () => {
e2e.components.DataSource.Prometheus.configPage.exemplarsAddButton().click();