From 225c3209bc28d86aeb91ff648134b2f3f4d8d3e7 Mon Sep 17 00:00:00 2001 From: James Rasell Date: Wed, 9 Sep 2020 08:40:35 +0200 Subject: [PATCH] e2e: fix failure in running metrics test suite jobs. When running the Fabio and Prometheus jobs for the metrics suite it seems the outer directory is required in the call when registering the job. error: "e2e/input/fabio.nomad: no such file or directory" --- e2e/metrics/prometheus.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/metrics/prometheus.go b/e2e/metrics/prometheus.go index 87c9addbc14..04ae57a3bb0 100644 --- a/e2e/metrics/prometheus.go +++ b/e2e/metrics/prometheus.go @@ -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(), - "input/fabio.nomad", fabioID, "") + "metrics/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(), - "input/prometheus.nomad", prometheusID, "") + "metrics/input/prometheus.nomad", prometheusID, "") if len(prometheusAllocs) < 1 { return fmt.Errorf("prometheus failed to start") }