630babb886
* Prevent Job Statuses from being calculated twice https://github.com/hashicorp/nomad/pull/8435 introduced atomic eval insertion iwth job (de-)registration. This change removes a now obsolete guard which checked if the index was equal to the job.CreateIndex, which would empty the status. Now that the job regisration eval insetion is atomic with the registration this check is no longer necessary to set the job statuses correctly. * test to ensure only single job event for job register * periodic e2e * separate job update summary step * fix updatejobstability to use copy instead of modified reference of job * update envoygatewaybindaddresses copy to prevent job diff on null vs empty * set ConsulGatewayBindAddress to empty map instead of nil fix nil assertions for empty map rm unnecessary guard
47 lines
1.6 KiB
Go
47 lines
1.6 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/events"
|
|
_ "github.com/hashicorp/nomad/e2e/example"
|
|
_ "github.com/hashicorp/nomad/e2e/lifecycle"
|
|
_ "github.com/hashicorp/nomad/e2e/metrics"
|
|
_ "github.com/hashicorp/nomad/e2e/namespaces"
|
|
_ "github.com/hashicorp/nomad/e2e/networking"
|
|
_ "github.com/hashicorp/nomad/e2e/nodedrain"
|
|
_ "github.com/hashicorp/nomad/e2e/nomad09upgrade"
|
|
_ "github.com/hashicorp/nomad/e2e/nomadexec"
|
|
_ "github.com/hashicorp/nomad/e2e/periodic"
|
|
_ "github.com/hashicorp/nomad/e2e/podman"
|
|
_ "github.com/hashicorp/nomad/e2e/quotas"
|
|
_ "github.com/hashicorp/nomad/e2e/rescheduling"
|
|
_ "github.com/hashicorp/nomad/e2e/scaling"
|
|
_ "github.com/hashicorp/nomad/e2e/scalingpolicies"
|
|
_ "github.com/hashicorp/nomad/e2e/spread"
|
|
_ "github.com/hashicorp/nomad/e2e/systemsched"
|
|
_ "github.com/hashicorp/nomad/e2e/taskevents"
|
|
_ "github.com/hashicorp/nomad/e2e/vaultsecrets"
|
|
_ "github.com/hashicorp/nomad/e2e/volumes"
|
|
)
|
|
|
|
func TestE2E(t *testing.T) {
|
|
if os.Getenv("NOMAD_E2E") == "" {
|
|
t.Skip("Skipping e2e tests, NOMAD_E2E not set")
|
|
} else {
|
|
framework.Run(t)
|
|
}
|
|
}
|