Commit 45a86174 authored by Michael Schurter's avatar Michael Schurter
Browse files

Add jobspec test for check method/header

No related merge requests found
Showing with 11 additions and 0 deletions
+11 -0
......@@ -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=="},
},
},
},
},
......
......@@ -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=="]
}
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment