diff --git a/e2e/_suites/metricbeat/metricbeat_test.go b/e2e/_suites/metricbeat/metricbeat_test.go index b37d4b9736..9e48ec53f8 100644 --- a/e2e/_suites/metricbeat/metricbeat_test.go +++ b/e2e/_suites/metricbeat/metricbeat_test.go @@ -246,14 +246,14 @@ func (mts *MetricbeatTestSuite) installedAndConfiguredForVariantModule(serviceVa } func (mts *MetricbeatTestSuite) installedUsingConfiguration(configuration string) error { - if strings.HasPrefix(metricbeatVersion, "pr-") { - metricbeatVersion = metricbeatVersionBase - } - // at this point we have everything to define the index name mts.Version = metricbeatVersion mts.setIndexName() + if strings.HasPrefix(metricbeatVersion, "pr-") { + metricbeatVersion = metricbeatVersionBase + } + // use master branch for snapshots tag := "v" + metricbeatVersion if strings.Contains(metricbeatVersion, "SNAPSHOT") {