]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Tests: add regression tests for cachemgr_passwd parsing
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 1 Nov 2016 13:00:30 +0000 (02:00 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 1 Nov 2016 13:00:30 +0000 (02:00 +1300)
test-suite/squidconf/mgr_passwd [new file with mode: 0644]

diff --git a/test-suite/squidconf/mgr_passwd b/test-suite/squidconf/mgr_passwd
new file mode 100644 (file)
index 0000000..11d0ee2
--- /dev/null
@@ -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