1# Copyright (C) 2016-2019 Dridi Boukelmoune 2# All rights reserved. 3# 4# This program is free software: you can redistribute it and/or modify 5# it under the terms of the GNU General Public License as published by 6# the Free Software Foundation, either version 3 of the License, or 7# (at your option) any later version. 8# 9# This program is distributed in the hope that it will be useful, 10# but WITHOUT ANY WARRANTY; without even the implied warranty of 11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12# GNU General Public License for more details. 13# 14# You should have received a copy of the GNU General Public License 15# along with this program. If not, see <http://www.gnu.org/licenses/>. 16 17varnishtest "Check vcl.load failure on invalid regex" 18 19server s1 "" -start 20 21varnish v1 -arg "-j none" 22varnish v1 -vcl+backend "" -start 23 24varnish v1 -errvcl "vmod-querystring: regex error" { 25 import querystring; 26 27 backend be { .host = "${bad_ip}"; .port = "9080"; } 28 29 sub vcl_init { 30 new bad = querystring.filter(); 31 bad.add_regex("utm(_.*"); 32 } 33} 34