e2e: move setup jobs for metrics test into that suite (#8842)

The fabio and prometheus workloads are specific to the metrics test and aren't
used by any other test suite.
This commit is contained in:
Tim Gross
2020-09-08 13:21:44 -04:00
committed by GitHub
parent e0f038c8c7
commit d24a80223a
3 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ func (tc *MetricsTest) setUpPrometheus(f *framework.F) error {
uuid := uuid.Generate()
fabioID := "fabio" + uuid[0:8]
fabioAllocs := e2eutil.RegisterAndWaitForAllocs(f.T(), tc.Nomad(),
"fabio/fabio.nomad", fabioID, "")
"input/fabio.nomad", fabioID, "")
if len(fabioAllocs) < 1 {
return fmt.Errorf("fabio failed to start")
}
@@ -36,7 +36,7 @@ func (tc *MetricsTest) setUpPrometheus(f *framework.F) error {
tc.fabioAddress = fmt.Sprintf("http://%s:9999", publicIP)
prometheusID := "prometheus" + uuid[0:8]
prometheusAllocs := e2eutil.RegisterAndWaitForAllocs(f.T(), tc.Nomad(),
"prometheus/prometheus.nomad", prometheusID, "")
"input/prometheus.nomad", prometheusID, "")
if len(prometheusAllocs) < 1 {
return fmt.Errorf("prometheus failed to start")
}