diff options
author | Mark Sargent <99003+sarge@users.noreply.github.com> | 2020-02-13 09:07:25 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-12 13:07:25 -0700 |
commit | eb80165583776d878256359f1635ffa9a17f0171 (patch) | |
tree | 867c44c12fb5d6923dc2cf68f040e53969fd26dc /caddyconfig/httpcaddyfile/parser_test.go | |
parent | 17d938fc54b347d54a4f56c1f0d6e92c65033548 (diff) |
tls: Add acme_ca_root and tls/ca_root to caddyfile (#3040)
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{ |