caddy/caddyconfig/caddyfile
Matthew Holt 160d199999
caddytest: Update Caddyfile tests for formatting, HTTP-only blocks
Previous commit improved the Caddyfile adapter so it doesn't unnecessarily add names to "skip" in "auto_https" when the server is already HTTP-only.

This commit updates the tests to reflect that change, while also fixing the Caddyfile formatting in many of the tests.

We also print the line number of the divergence between input and formatted version in Caddyfile adapt warnings - very useful for finding initial formatting problems.
2021-01-19 14:21:11 -07:00
..
testdata caddyfile: Add args on imports (#3423) 2020-06-01 10:43:06 -06:00
adapter.go caddytest: Update Caddyfile tests for formatting, HTTP-only blocks 2021-01-19 14:21:11 -07:00
dispenser.go chore: Fix typo in dispenser.go (#3456) 2020-05-27 08:13:57 -06:00
dispenser_test.go caddyfile: Move NewTestDispenser into non-test file (#3439) 2020-05-26 13:45:22 -06:00
formatter.go caddyfile: Fix minor bug in formatter 2020-12-16 15:22:16 -07:00
formatter_test.go caddyfile: Fix minor bug in formatter 2020-12-16 15:22:16 -07:00
lexer.go caddyfile: Export Tokenize function for lexing (#3549) 2020-07-20 13:55:51 -06:00
lexer_test.go caddyfile: Export Tokenize function for lexing (#3549) 2020-07-20 13:55:51 -06:00
parse.go caddyfile: Add support for env var defaults; add tests (#3682) 2020-11-23 12:51:35 -07:00
parse_test.go caddyfile: Add support for env var defaults; add tests (#3682) 2020-11-23 12:51:35 -07:00