2020-01-22 13:48:52 +00:00
|
|
|
// This package exists to wrap our e2e provisioning and test framework so that it
|
|
|
|
// can be run via 'go test ./e2e'. See './framework/framework.go'
|
2018-06-28 17:29:26 +00:00
|
|
|
package e2e
|
|
|
|
|
|
|
|
import (
|
2020-01-22 13:48:52 +00:00
|
|
|
"os"
|
2018-06-28 17:29:26 +00:00
|
|
|
"testing"
|
|
|
|
|
2020-01-22 13:48:52 +00:00
|
|
|
"github.com/hashicorp/nomad/e2e/framework"
|
|
|
|
|
2018-12-19 00:39:45 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/affinities"
|
2019-01-26 00:51:20 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/clientstate"
|
2019-09-03 22:46:03 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/connect"
|
2019-01-26 05:06:50 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/consul"
|
2019-01-04 15:37:11 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/consultemplate"
|
2019-05-21 13:21:44 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/deployment"
|
2018-06-28 17:29:26 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/example"
|
2019-09-17 18:45:00 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/hostvolumes"
|
2019-12-12 17:45:16 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/metrics"
|
2019-01-23 19:44:42 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/nomad09upgrade"
|
2019-04-28 21:35:42 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/nomadexec"
|
2018-12-17 20:39:14 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/spread"
|
2019-01-04 23:19:00 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/taskevents"
|
2018-06-28 17:29:26 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestE2E(t *testing.T) {
|
2020-01-22 13:48:52 +00:00
|
|
|
if os.Getenv("NOMAD_E2E") == "" {
|
|
|
|
t.Skip("Skipping e2e tests, NOMAD_E2E not set")
|
|
|
|
} else {
|
|
|
|
framework.Run(t)
|
|
|
|
}
|
2018-06-28 17:29:26 +00:00
|
|
|
}
|