caddy/caddytest/integration
Dave Henderson d16ede358a
metrics: Fix hidden panic while observing with bad exemplars (#3733)
* metrics: Fixing panic while observing with bad exemplars

Signed-off-by: Dave Henderson <dhenderson@gmail.com>

* Minor cleanup

The server is already added to the context. So, we can simply use that
to get the server name, which is a field on the server.

* Add integration test for auto HTTP->HTTPS redirects

A test like this would have caught the problem in the first place

Co-authored-by: Matthew Holt <mholt@users.noreply.github.com>
2020-09-17 21:46:24 -06:00
..
caddyfile_adapt httpcaddyfile: Ensure handle_path is sorted equally to handle (#3676) 2020-09-16 20:01:22 -06:00
testdata caddyfile: Add args on imports (#3423) 2020-06-01 10:43:06 -06:00
autohttps_test.go metrics: Fix hidden panic while observing with bad exemplars (#3733) 2020-09-17 21:46:24 -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
handler_test.go browse: align template to struct field renames from 4940325 (#3706) 2020-09-08 10:45:48 -06:00
map_test.go caddyhttp: Add 'map' handler (#3199) 2020-06-26 15:12:37 -06:00
reverseproxy_test.go reverseproxy: Correct alternate port for active health checks (#3693) 2020-09-17 10:25:34 -06:00
sni_test.go refactored caddytest helpers (#3285) 2020-04-27 13:23:46 +12:00
stream_test.go reverse_proxy: fix bidirectional streams with encodings (fix #3606) (#3620) 2020-08-03 20:50:38 -06:00