varnishtest "param edge cases"

varnish v1 -vcl {backend foo {.host = "127.0.0.1";}} -start


varnish v1 -clierr "106" "param.set default_ttl -1"
varnish v1 -clierr "106" "param.set acceptor_sleep_max 20"
varnish v1 -clierr "200" "param.set prefer_ipv6 off"
varnish v1 -clierr "200" "param.set prefer_ipv6 no"
varnish v1 -clierr "200" "param.set prefer_ipv6 disable"
varnish v1 -clierr "200" "param.set prefer_ipv6 false"
varnish v1 -clierr "200" "param.set prefer_ipv6 on"
varnish v1 -clierr "200" "param.set prefer_ipv6 yes"
varnish v1 -clierr "200" "param.set prefer_ipv6 enable"
varnish v1 -clierr "200" "param.set prefer_ipv6 true"
varnish v1 -clierr "106" "param.set prefer_ipv6 foobar"
varnish v1 -clierr "106" "param.set http_max_hdr 0"
varnish v1 -clierr "106" "param.set http_max_hdr 1000000"
varnish v1 -clierr "106" "param.set workspace_thread 1b"
varnish v1 -clierr "106" "param.set workspace_thread 1m"
varnish v1 -clierr "106" "param.set workspace_thread 1x"
varnish v1 -clierr "106" "param.set workspace_thread x"
varnish v1 -clierr "106" "param.set user ///"
varnish v1 -clierr "106" "param.set user ///"
varnish v1 -clierr "106" {param.set pool_sess "\""}
varnish v1 -clierr "200" {param.set thread_pool_max 110}
varnish v1 -clierr "106" {param.set thread_pool_min 111}
varnish v1 -clierr "200" {param.set thread_pool_min 51}
varnish v1 -clierr "106" {param.set thread_pool_max 50}
varnish v1 -clierr "200" {param.set thread_pool_max 51}
varnish v1 -clierr "200" {param.set thread_pool_max unlimited}
varnish v1 -clierr "106" {param.show fofofofo}
varnish v1 -cliok "param.show changed"
varnish v1 -cliok "param.show "
varnish v1 -cliok "param.show -l"

varnish v1 -clijson "param.show -j pool_req"
varnish v1 -clijson "param.show -j pool_sess"
varnish v1 -clijson "param.show -j changed"
varnish v1 -clijson "param.show -j"
varnish v1 -clierr "106" "param.show -j -l"
varnish v1 -clierr "106" "param.show -j fofofofo"
