From: Amos Jeffries Date: Tue, 1 Nov 2016 13:00:30 +0000 (+1300) Subject: Tests: add regression tests for cachemgr_passwd parsing X-Git-Tag: SQUID_4_0_17~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=104e2656f5597fc5b2384f54f1ff5f8d9b4a32e7;p=thirdparty%2Fsquid.git Tests: add regression tests for cachemgr_passwd parsing --- diff --git a/test-suite/squidconf/mgr_passwd b/test-suite/squidconf/mgr_passwd new file mode 100644 index 0000000000..11d0ee2c95 --- /dev/null +++ b/test-suite/squidconf/mgr_passwd @@ -0,0 +1,22 @@ +# +# Tests for cachemgr_passwd directive + +# accept passwords +cachemgr_passwd password1 utilization +cachemgr_passwd password1 store_io + +# accept list of actions for one password +cachemgr_passwd password2 io counters + +# specaial case 'none' +cachemgr_passwd none menu +cachemgr_passwd none index + +# special case 'disable' +cachemgr_passwd disable + +# repeating actions should produce a warning +cachemgr_passwd none menu + +# unknown action ?? +cachemgr_passwd none blah_blah_blah