Skip to content

Commit

Permalink
fix tests for Nomad 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
lgfa29 committed Dec 14, 2023
1 parent 3d700fa commit 8493c57
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions nomad/resource_job_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1686,7 +1686,8 @@ func testResourceJob_lifecycleCheck(s *terraform.State) error {
"Interval": 600000000000,
"Delay": 15000000000,
"Mode": "delay",
"Attempts": 10
"Attempts": 10,
"RenderTemplates": false
}`), &expTaskRestart)

if diff := cmp.Diff(expTaskLifecycle, *taskGroup.Tasks[0].Lifecycle); diff != "" {
Expand Down Expand Up @@ -1853,6 +1854,7 @@ func testResourceJob_consulConnectCheck(s *terraform.State) error {
AddressMode: "auto",
OnUpdate: "require_healthy",
Provider: "consul",
Cluster: "default",
Connect: &api.ConsulConnect{
SidecarService: &api.ConsulSidecarService{
Tags: []string{"dashboard", "count"},
Expand Down Expand Up @@ -1963,7 +1965,8 @@ func testResourceJob_consulConnectIngressGatewayCheck(s *terraform.State) error
}
},
"OnUpdate": "require_healthy",
"Provider": "consul"
"Provider": "consul",
"Cluster": "default"
}
]`), &expServices)
if err != nil {
Expand Down Expand Up @@ -2040,7 +2043,8 @@ func testResourceJob_consulConnectTerminatingGatewayCheck(s *terraform.State) er
}
},
"OnUpdate": "require_healthy",
"Provider": "consul"
"Provider": "consul",
"Cluster": "default"
}
]`), &expServices)
if err != nil {
Expand Down

0 comments on commit 8493c57

Please sign in to comment.