From: Eduard Bagdasaryan Date: Tue, 7 Feb 2023 20:22:54 +0000 (+0000) Subject: Maintenance: Add ACL key change tests (#1269) X-Git-Tag: SQUID_6_0_1~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eaf9a41332ca85460f32b7d93fae803319132226;p=thirdparty%2Fsquid.git Maintenance: Add ACL key change tests (#1269) Squid bans key changes in req_header/rep_header and note ACLs since 4a3b853. --- diff --git a/test-suite/squidconf/note-key-change.conf b/test-suite/squidconf/note-key-change.conf new file mode 100644 index 0000000000..5ce8b600d7 --- /dev/null +++ b/test-suite/squidconf/note-key-change.conf @@ -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 index 0000000000..8d87f4ecbd --- /dev/null +++ b/test-suite/squidconf/note-key-change.conf.instructions @@ -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 index 0000000000..23561cbf2f --- /dev/null +++ b/test-suite/squidconf/req-header-key-change.conf @@ -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 index 0000000000..84eba0791a --- /dev/null +++ b/test-suite/squidconf/req-header-key-change.conf.instructions @@ -0,0 +1 @@ +expect-failure ERROR:.configuration.failure:.Attempt.to.change.the.value.of.the.header-name.argument