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"
|
2021-01-26 14:44:33 +00:00
|
|
|
|
2021-02-09 15:44:48 +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"
|
2020-03-16 12:53:04 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/csi"
|
2019-05-21 13:21:44 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/deployment"
|
2020-10-20 12:26:21 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/events"
|
2018-06-28 17:29:26 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/example"
|
2021-01-25 21:57:17 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/isolation"
|
2020-08-18 17:49:50 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/lifecycle"
|
2019-12-12 17:45:16 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/metrics"
|
2020-09-28 15:23:37 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/namespaces"
|
2020-10-12 17:43:04 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/networking"
|
2020-09-21 15:52:11 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/nodedrain"
|
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"
|
2021-03-26 20:17:49 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/oversubscription"
|
2021-03-24 21:42:10 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/parameterized"
|
2021-01-22 14:18:17 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/periodic"
|
2020-06-03 18:06:58 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/podman"
|
2020-09-28 15:23:37 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/quotas"
|
2020-12-17 23:21:46 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/remotetasks"
|
2020-09-09 20:59:07 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/rescheduling"
|
2021-01-11 10:34:19 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/scaling"
|
|
|
|
_ "github.com/hashicorp/nomad/e2e/scalingpolicies"
|
2020-10-09 21:31:38 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/scheduler_sysbatch"
|
|
|
|
_ "github.com/hashicorp/nomad/e2e/scheduler_system"
|
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"
|
2020-10-14 12:43:28 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/vaultsecrets"
|
2020-09-28 15:14:13 +00:00
|
|
|
_ "github.com/hashicorp/nomad/e2e/volumes"
|
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
|
|
|
}
|