From 104e2656f5597fc5b2384f54f1ff5f8d9b4a32e7 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Wed, 2 Nov 2016 02:00:30 +1300 Subject: [PATCH] Tests: add regression tests for cachemgr_passwd parsing --- test-suite/squidconf/mgr_passwd | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 test-suite/squidconf/mgr_passwd 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 -- 2.47.2