1
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-16 21:56:40 -05:00
caddy/caddytest/integration
Ye Zhihao 8b80a3201f
httpcaddyfile: Bring enforce_origin and origins to admin config (#3595)
* Bring `ensure_origin` and `origins` to caddyfile admin config

* Add unit test for caddyfile admin config update

* Add caddyfile adapt test for typical admin setup

* httpcaddyfile: Replace admin config error message when there's more arguments than needed

Replace d.Err() to d.ArgErr() since the latter provides similarly informative error message

Co-authored-by: Matt Holt <mholt@users.noreply.github.com>

Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
2020-08-03 13:44:38 -06:00
..
caddyfile_adapt httpcaddyfile: Bring enforce_origin and origins to admin config (#3595) 2020-08-03 13:44:38 -06:00
testdata caddyfile: Add args on imports (#3423) 2020-06-01 10:43:06 -06:00
caddyfile_adapt_test.go caddytest: Refactor Caddyfile adapt tests to separate files (#3398) 2020-05-14 17:53:28 -04:00
caddyfile_test.go refactored caddytest helpers (#3285) 2020-04-27 13:23:46 +12:00
map_test.go caddyhttp: Add 'map' handler (#3199) 2020-06-26 15:12:37 -06:00
sni_test.go refactored caddytest helpers (#3285) 2020-04-27 13:23:46 +12:00
stream_test.go reverse_proxy: flush HTTP/2 response when ContentLength is unknown (#3561) 2020-07-20 12:14:46 -06:00