Skip to content

Commit

Permalink
e2e add deployment to the list of e2e tests, minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
langmartin committed May 21, 2019
1 parent dd9d9ee commit 1ae24b3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions e2e/deployment/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ func (tc *DeploymentTest) TestDeploymentAutoPromote(f *framework.F) {

// Deployment is eventually running
e2eutil.WaitForDeployment(t, nomadClient, deploy.ID, run, structs.DeploymentStatusDescriptionRunning)

deploy, _, _ = nomadClient.Deployments().Info(deploy.ID, nil)
require.Equal(t, run, deploy.Status)
require.Equal(t, structs.DeploymentStatusDescriptionRunning, deploy.StatusDescription)
}
Expand Down
2 changes: 1 addition & 1 deletion e2e/deployment/input/deployment_auto0.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ job "deployment_auto.nomad" {
max_parallel = 2
auto_promote = true
canary = 2
min_healthy_time = "5s"
min_healthy_time = "2s"
}

task "two" {
Expand Down
2 changes: 1 addition & 1 deletion e2e/deployment/input/deployment_auto1.nomad
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ job "deployment_auto.nomad" {
max_parallel = 2
auto_promote = true
canary = 2
min_healthy_time = "5s"
min_healthy_time = "2s"
}

task "two" {
Expand Down
1 change: 1 addition & 0 deletions e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
_ "github.com/hashicorp/nomad/e2e/clientstate"
_ "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/nomad09upgrade"
_ "github.com/hashicorp/nomad/e2e/nomadexec"
Expand Down
2 changes: 1 addition & 1 deletion e2e/e2eutil/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,6 @@ func WaitForDeployment(t *testing.T, nomadClient *api.Client, deployID string, s
)

}, func(err error) {
t.Fatalf("failed to wait on alloc: %v", err)
t.Fatalf("failed to wait on deployment: %v", err)
})
}

0 comments on commit 1ae24b3

Please sign in to comment.