Error handle non existent provisioner downstream and disable debug route logging
This commit is contained in:
parent
497ec0c79b
commit
93c3c2bf2e
3 changed files with 28 additions and 14 deletions
|
@ -240,6 +240,18 @@ func TestHandler_verifyContentType(t *testing.T) {
|
|||
url string
|
||||
}
|
||||
var tests = map[string]func(t *testing.T) test{
|
||||
"fail/provisioner-not-set": func(t *testing.T) test {
|
||||
return test{
|
||||
h: Handler{
|
||||
linker: NewLinker("dns", "acme"),
|
||||
},
|
||||
url: url,
|
||||
ctx: context.Background(),
|
||||
contentType: "foo",
|
||||
statusCode: 500,
|
||||
err: acme.NewErrorISE("provisioner expected in request context"),
|
||||
}
|
||||
},
|
||||
"fail/general-bad-content-type": func(t *testing.T) test {
|
||||
return test{
|
||||
h: Handler{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue