cd1c6173f4
This changeset provides two basic e2e tests for CSI plugins targeting common AWS use cases. The EBS test launches the EBS plugin (controller + nodes) and registers an EBS volume as a Nomad CSI volume. We deploy a job that writes to the volume, stop that job, and reuse the volume for another job which should be able to read the data written by the first job. The EFS test launches the EFS plugin (nodes-only) and registers an EFS volume as a Nomad CSI volume. We deploy a job that writes to the volume, stop that job, and reuse the volume for another job which should be able to read the data written by the first job. The writer jobs mount the CSI volume at a location within the alloc dir.
35 lines
1 KiB
Go
35 lines
1 KiB
Go
// 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'
|
|
package e2e
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/hashicorp/nomad/e2e/framework"
|
|
|
|
_ "github.com/hashicorp/nomad/e2e/affinities"
|
|
_ "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/csi"
|
|
_ "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/systemsched"
|
|
_ "github.com/hashicorp/nomad/e2e/taskevents"
|
|
)
|
|
|
|
func TestE2E(t *testing.T) {
|
|
if os.Getenv("NOMAD_E2E") == "" {
|
|
t.Skip("Skipping e2e tests, NOMAD_E2E not set")
|
|
} else {
|
|
framework.Run(t)
|
|
}
|
|
}
|