Skip to content

Commit

Permalink
ci: update Nomad to 1.6.0-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lgfa29 committed Jul 11, 2023
1 parent 4faeaa2 commit 972e540
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
test:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
Expand All @@ -30,7 +30,7 @@ jobs:
NOMAD_LICENSE: ${{ secrets.NOMAD_LICENSE }}
run: ./scripts/start-nomad.sh
- name: Run acceptance tests
run: NOMAD_TOKEN=${{ env.NOMAD_TOKEN }} make testacc
run: NOMAD_TOKEN=${{ env.NOMAD_TOKEN }} TESTARGS='-run TestResourceJob' make testacc
env:
NOMAD_TOKEN: 00000000-0000-0000-0000-000000000000
- name: Stop nomad
Expand Down
8 changes: 4 additions & 4 deletions nomad/resource_job_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1603,7 +1603,7 @@ func testResourceJob_scalingPolicyDASCheck(s *terraform.State) error {
}

func testResourceJob_serviceDeploymentInfoCheck(s *terraform.State) error {
resourcePath := "nomad_job.service"
resourcePath := "nomad_job.service_with_deployment"
resourceState := s.Modules[0].Resources[resourcePath]
if resourceState == nil {
return fmt.Errorf("resource %s not found in state", resourcePath)
Expand Down Expand Up @@ -2981,7 +2981,7 @@ resource "nomad_job" "test_das" {
`

var testResourceJob_serviceDeploymentInfo = `
resource "nomad_job" "service" {
resource "nomad_job" "service_with_deployment" {
detach = false
jobspec = <<EOT
job "foo-service-with-deployment" {
Expand All @@ -2991,12 +2991,12 @@ job "foo-service-with-deployment" {
update {
min_healthy_time = "1s"
healthy_deadline = "2s"
progress_deadline = "3s"
progress_deadline = "10s"
}
task "sleep" {
driver = "raw_exec"
config {
command = "sleep"
command = "/bin/sleep"
args = ["3600"]
}
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/getnomad.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

set -e

NOMAD_VERSION=1.5.0
NOMAD_VERSION='1.6.0-beta.1'
if [[ -n "$NOMAD_LICENSE" || -n "$NOMAD_LICENSE_PATH" ]]; then
NOMAD_VERSION=${NOMAD_VERSION}+ent
fi
Expand Down

0 comments on commit 972e540

Please sign in to comment.