]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Maintenance: Add ACL key change tests (#1269)
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Tue, 7 Feb 2023 20:22:54 +0000 (20:22 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Thu, 9 Feb 2023 14:34:54 +0000 (14:34 +0000)
Squid bans key changes in req_header/rep_header and note ACLs
since 4a3b853.

test-suite/squidconf/note-key-change.conf [new file with mode: 0644]
test-suite/squidconf/note-key-change.conf.instructions [new file with mode: 0644]
test-suite/squidconf/req-header-key-change.conf [new file with mode: 0644]
test-suite/squidconf/req-header-key-change.conf.instructions [new file with mode: 0644]

diff --git a/test-suite/squidconf/note-key-change.conf b/test-suite/squidconf/note-key-change.conf
new file mode 100644 (file)
index 0000000..5ce8b60
--- /dev/null
@@ -0,0 +1,9 @@
+## Copyright (C) 1996-2023 The Squid Software Foundation and contributors
+##
+## Squid software is distributed under GPLv2+ license and includes
+## contributions from numerous individuals and organizations.
+## Please see the COPYING and CONTRIBUTORS files for details.
+##
+
+acl banned note color green
+acl banned note weight heavy
diff --git a/test-suite/squidconf/note-key-change.conf.instructions b/test-suite/squidconf/note-key-change.conf.instructions
new file mode 100644 (file)
index 0000000..8d87f4e
--- /dev/null
@@ -0,0 +1 @@
+expect-failure ERROR:.configuration.failure:.Attempt.to.change.the.value.of.the.annotation.name.argument
diff --git a/test-suite/squidconf/req-header-key-change.conf b/test-suite/squidconf/req-header-key-change.conf
new file mode 100644 (file)
index 0000000..23561cb
--- /dev/null
@@ -0,0 +1,9 @@
+## Copyright (C) 1996-2023 The Squid Software Foundation and contributors
+##
+## Squid software is distributed under GPLv2+ license and includes
+## contributions from numerous individuals and organizations.
+## Please see the COPYING and CONTRIBUTORS files for details.
+##
+
+acl barred req_header X-1 bar
+acl barred req_header X-2 bar
diff --git a/test-suite/squidconf/req-header-key-change.conf.instructions b/test-suite/squidconf/req-header-key-change.conf.instructions
new file mode 100644 (file)
index 0000000..84eba07
--- /dev/null
@@ -0,0 +1 @@
+expect-failure ERROR:.configuration.failure:.Attempt.to.change.the.value.of.the.header-name.argument