From: claudio Date: Fri, 4 Feb 2022 13:11:14 +0000 (+0000) Subject: Test that a non conforming xmlns attribute results in a failure. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=ed4e4a4ab0592fa809fd3dce6eefb89f760b2957;p=openbsd Test that a non conforming xmlns attribute results in a failure. --- diff --git a/regress/usr.sbin/rpki-client/Makefile.inc b/regress/usr.sbin/rpki-client/Makefile.inc index a115532c6fe..d73cfe28fa0 100644 --- a/regress/usr.sbin/rpki-client/Makefile.inc +++ b/regress/usr.sbin/rpki-client/Makefile.inc @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.inc,v 1.17 2022/02/04 13:05:47 claudio Exp $ +# $OpenBSD: Makefile.inc,v 1.18 2022/02/04 13:11:14 claudio Exp $ .PATH: ${.CURDIR}/../../../../usr.sbin/rpki-client @@ -83,3 +83,7 @@ run-regress-test-rrdp: test-rrdp ./test-rrdp \ -n < ${.CURDIR}/../rrdp/billion_lol.xml 2>&1 | tee rrdp-r6.out cmp ${.CURDIR}/../rrdp/rrdp-r6.out rrdp-r6.out + + ./test-rrdp \ + -n < ${.CURDIR}/../rrdp/notification_xmlns.xml 2>&1 | tee rrdp-r7.out + cmp ${.CURDIR}/../rrdp/rrdp-r7.out rrdp-r7.out diff --git a/regress/usr.sbin/rpki-client/rrdp/notification_xmlns.xml b/regress/usr.sbin/rpki-client/rrdp/notification_xmlns.xml new file mode 100644 index 00000000000..f15bc25538a --- /dev/null +++ b/regress/usr.sbin/rpki-client/rrdp/notification_xmlns.xml @@ -0,0 +1,4 @@ + + + + diff --git a/regress/usr.sbin/rpki-client/rrdp/rrdp-r7.out b/regress/usr.sbin/rpki-client/rrdp/rrdp-r7.out new file mode 100644 index 00000000000..18266348323 --- /dev/null +++ b/regress/usr.sbin/rpki-client/rrdp/rrdp-r7.out @@ -0,0 +1,2 @@ +test-rrdp: parse failed - non conforming attribute 'xmlns' found in notification elem +test-rrdp: stdin: parse error at line 1: parsing aborted