e439e927ed
Refactor the metrics end-to-end tests so they can be run with our e2e test framework. Runs fabio/prometheus and a collection of jobs that will cause metrics to be measured. We then query Prometheus to ensure we're publishing those allocation metrics and some metrics from the clients as well. Includes adding a placeholder for running the same tests on Windows.
25 lines
734 B
Go
25 lines
734 B
Go
package e2e
|
|
|
|
import (
|
|
"testing"
|
|
|
|
_ "github.com/hashicorp/nomad/e2e/affinities"
|
|
_ "github.com/hashicorp/nomad/e2e/allocstats"
|
|
_ "github.com/hashicorp/nomad/e2e/clientstate"
|
|
_ "github.com/hashicorp/nomad/e2e/connect"
|
|
_ "github.com/hashicorp/nomad/e2e/consul"
|
|
_ "github.com/hashicorp/nomad/e2e/consultemplate"
|
|
_ "github.com/hashicorp/nomad/e2e/deployment"
|
|
_ "github.com/hashicorp/nomad/e2e/example"
|
|
_ "github.com/hashicorp/nomad/e2e/hostvolumes"
|
|
_ "github.com/hashicorp/nomad/e2e/metrics"
|
|
_ "github.com/hashicorp/nomad/e2e/nomad09upgrade"
|
|
_ "github.com/hashicorp/nomad/e2e/nomadexec"
|
|
_ "github.com/hashicorp/nomad/e2e/spread"
|
|
_ "github.com/hashicorp/nomad/e2e/taskevents"
|
|
)
|
|
|
|
func TestE2E(t *testing.T) {
|
|
RunE2ETests(t)
|
|
}
|