mirror of
https://github.com/kemko/nomad.git
synced 2026-01-10 12:25:42 +03:00
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:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user