diff options
Diffstat (limited to 'caddyconfig/httpcaddyfile/parser_test.go')
-rw-r--r-- | caddyconfig/httpcaddyfile/parser_test.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/caddyconfig/httpcaddyfile/parser_test.go b/caddyconfig/httpcaddyfile/parser_test.go index ae5751c..8a62356 100644 --- a/caddyconfig/httpcaddyfile/parser_test.go +++ b/caddyconfig/httpcaddyfile/parser_test.go @@ -45,6 +45,24 @@ func TestParse(t *testing.T) { expectWarn: false, expectError: true, }, + { + input: ` + { + email test@anon.com + acme_ca https://ca.custom + acme_ca_root /root/certs/ca.crt + } + + https://caddy { + tls { + ca https://ca.custom + ca_root /root/certs/ca.crt + } + } + `, + expectWarn: false, + expectError: false, + }, } { adapter := caddyfile.Adapter{ |