summaryrefslogtreecommitdiff
path: root/regress/usr.sbin
diff options
context:
space:
mode:
authorAndre de Oliveira <andre@cvs.openbsd.org>2014-05-09 11:53:29 +0000
committerAndre de Oliveira <andre@cvs.openbsd.org>2014-05-09 11:53:29 +0000
commite26944596a4202eb65c020c72dbb583dd3678139 (patch)
tree4464669cdf18b0ddca1b54dc9f098a6bf12490da /regress/usr.sbin
parent9807b0fcda249e9e65458aedf54c76d928949ea7 (diff)
Adds a couple tests for relayd parser, specially recent modifications reyk@ did
to the grammar. ok reyk
Diffstat (limited to 'regress/usr.sbin')
-rw-r--r--regress/usr.sbin/relayd/args-http-change-path.pl24
-rw-r--r--regress/usr.sbin/relayd/args-http-mark-marked.pl22
2 files changed, 46 insertions, 0 deletions
diff --git a/regress/usr.sbin/relayd/args-http-change-path.pl b/regress/usr.sbin/relayd/args-http-change-path.pl
new file mode 100644
index 00000000000..780eda6261b
--- /dev/null
+++ b/regress/usr.sbin/relayd/args-http-change-path.pl
@@ -0,0 +1,24 @@
+use strict;
+use warnings;
+
+our %args = (
+ client => {
+ noclient => 1,
+ nocheck => 1,
+ },
+ relayd => {
+ protocol => [ "http",
+ 'request path change "path" to "foobarchangedpath" marked 55',
+ ],
+ loggrep => {
+ qr/relayd.conf\:.*action only supported for headers/ => 1
+ },
+ dummyrun => 1,
+ },
+ server => {
+ noserver => 1,
+ nocheck => 1,
+ },
+);
+
+1;
diff --git a/regress/usr.sbin/relayd/args-http-mark-marked.pl b/regress/usr.sbin/relayd/args-http-mark-marked.pl
new file mode 100644
index 00000000000..6720dd791da
--- /dev/null
+++ b/regress/usr.sbin/relayd/args-http-mark-marked.pl
@@ -0,0 +1,22 @@
+use strict;
+use warnings;
+
+our %args = (
+ client => {
+ noclient => 1,
+ nocheck => 1,
+ },
+ relayd => {
+ protocol => [ "http",
+ 'request path mark "*" with 99 marked 55',
+ ],
+ loggrep => { "either mark or marked" => 1 },
+ dummyrun => 1,
+ },
+ server => {
+ noserver => 1,
+ nocheck => 1,
+ },
+);
+
+1;