From 920a1fab671cfb62939902ddca2bc793d84fb973 Mon Sep 17 00:00:00 2001 From: Göktürk Yüksek Date: Thu, 5 May 2016 19:24:46 -0400 Subject: xml-test/invalid-attributes: test for invalid and disallowed attributes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Göktürk Yüksek --- .../invalid-attributes-0.1.ebuild | 11 +++++++ xml-test/invalid-attributes/metadata.xml | 38 ++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 xml-test/invalid-attributes/invalid-attributes-0.1.ebuild create mode 100644 xml-test/invalid-attributes/metadata.xml diff --git a/xml-test/invalid-attributes/invalid-attributes-0.1.ebuild b/xml-test/invalid-attributes/invalid-attributes-0.1.ebuild new file mode 100644 index 0000000..3076b2a --- /dev/null +++ b/xml-test/invalid-attributes/invalid-attributes-0.1.ebuild @@ -0,0 +1,11 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="Metadata example with invalid attribute values and locations" +HOMEPAGE="https://wiki.gentoo.org/wiki/GLEP:68" +LICENSE="HPND" +SLOT="0" +KEYWORDS="~amd64" diff --git a/xml-test/invalid-attributes/metadata.xml b/xml-test/invalid-attributes/metadata.xml new file mode 100644 index 0000000..66902dc --- /dev/null +++ b/xml-test/invalid-attributes/metadata.xml @@ -0,0 +1,38 @@ + + + + + Tests for invalid attribute values and attributes appearing + in elements that they're not supposed to. + + There's a multitude of invalid attribute values and combinations. + We only consider a few sane cases that are likely to happen: + - type attribute in upstream maintainer (allowed only in downstream) + - status attribute in downstream maintainer (allowed only in upstream) + - invalid values for enumerated attributes: type, status, lang + + We also introduce multiple violations in a single element to test + repoman's ability to display errors. + + + + larry@gentoo.org + + Moo + + + + + Gen B0rk + + + gentoo/gen-b0rk + + -- cgit v1.2.3-65-gdbad