diff options
author | Loïc Hoguin <[email protected]> | 2018-11-19 12:24:28 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2018-11-19 12:24:28 +0100 |
commit | ae96aa6e494d8cb4bf3525ecf7575552d1e6f5e9 (patch) | |
tree | 31885b948e783233d348923490f63edec3662d7d /test/static_handler_SUITE.erl | |
parent | 84aea5d24d9e3bdcfc336da02d906bd33dfe0b47 (diff) | |
download | cowboy-ae96aa6e494d8cb4bf3525ecf7575552d1e6f5e9.tar.gz cowboy-ae96aa6e494d8cb4bf3525ecf7575552d1e6f5e9.tar.bz2 cowboy-ae96aa6e494d8cb4bf3525ecf7575552d1e6f5e9.zip |
Add an additional test to the static test suite
Diffstat (limited to 'test/static_handler_SUITE.erl')
-rw-r--r-- | test/static_handler_SUITE.erl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/static_handler_SUITE.erl b/test/static_handler_SUITE.erl index 7ac31f8..69bd284 100644 --- a/test/static_handler_SUITE.erl +++ b/test/static_handler_SUITE.erl @@ -195,6 +195,7 @@ execute(Req=#{path := Path}, Env) -> <<"/bad/options">> -> ct_helper:ignore(cowboy_static, content_types_provided, 2); <<"/bad/options/mime">> -> ct_helper:ignore(cowboy_rest, set_content_type, 2); <<"/bad/options/etag">> -> ct_helper:ignore(cowboy_static, generate_etag, 2); + <<"/bad/options/charset">> -> ct_helper:ignore(cowboy_static, charsets_provided, 2); _ -> ok end, {ok, Req, Env}. @@ -279,6 +280,11 @@ bad_options(Config) -> {500, _, _} = do_get("/bad/options", Config), ok. +bad_options_charset(Config) -> + doc("Bad cowboy_static extra options: invalid charset option."), + {500, _, _} = do_get("/bad/options/charset", Config), + ok. + bad_options_etag(Config) -> doc("Bad cowboy_static extra options: invalid etag option."), {500, _, _} = do_get("/bad/options/etag", Config), |