diff --git a/jobspec/parse_test.go b/jobspec/parse_test.go index 80b67d4db..5da56a277 100644 --- a/jobspec/parse_test.go +++ b/jobspec/parse_test.go @@ -450,9 +450,14 @@ func TestParse(t *testing.T) { { Name: "check-name", Type: "http", + Path: "/", Interval: 10 * time.Second, Timeout: 2 * time.Second, InitialStatus: capi.HealthPassing, + Method: "POST", + Header: map[string][]string{ + "Authorization": {"Basic ZWxhc3RpYzpjaGFuZ2VtZQ=="}, + }, }, }, }, diff --git a/jobspec/test-fixtures/service-check-initial-status.hcl b/jobspec/test-fixtures/service-check-initial-status.hcl index 3b919aeaf..e275001be 100644 --- a/jobspec/test-fixtures/service-check-initial-status.hcl +++ b/jobspec/test-fixtures/service-check-initial-status.hcl @@ -11,9 +11,15 @@ job "check_initial_status" { check { name = "check-name" type = "http" + path = "/" + method = "POST" interval = "10s" timeout = "2s" initial_status = "passing" + + header { + Authorization = ["Basic ZWxhc3RpYzpjaGFuZ2VtZQ=="] + } } } }