open-nomad/jobspec/test-fixtures/service-check-bad-header.hcl

29 lines
529 B
HCL
Raw Normal View History

2017-08-17 22:25:51 +00:00
job "check_bad_header" {
2019-10-11 12:00:05 +00:00
type = "service"
2017-08-17 22:25:51 +00:00
2019-10-11 12:00:05 +00:00
group "group" {
count = 1
2017-08-17 22:25:51 +00:00
2019-10-11 12:00:05 +00:00
task "task" {
service {
tags = ["bar"]
port = "http"
2017-08-17 22:25:51 +00:00
2019-10-11 12:00:05 +00:00
check {
name = "check-name"
type = "http"
path = "/"
method = "POST"
interval = "10s"
timeout = "2s"
initial_status = "passing"
header {
Authorization = "Should be a []string!"
2017-08-17 22:25:51 +00:00
}
}
2019-10-11 12:00:05 +00:00
}
2017-08-17 22:25:51 +00:00
}
2019-10-11 12:00:05 +00:00
}
2017-08-17 22:25:51 +00:00
}