2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-09-04 12:07:56 +00:00
Files
xcat-core/xCAT-test
Vinícius Ferrão 82c1ea93dd test(xcatd): pin the refusal of a document type declaration
Cover the three shapes a declaration can take: one that names an entity from
element text, one that names it from an attribute value, and one that carries
no entity at all. The parser must refuse each, and nothing may expand.

The attribute case is the one that matters most. The option that stops the
parser expanding an entity leaves an attribute alone, so a test that only used
element text would pass against a parser that still grows a request through an
attribute.

Cover an ordinary request as well, so a refusal that is too wide is visible:
the command, the node range and the argument must still arrive.

Run all of it against the parser of a recent XML::Simple and against the parser
this module builds for an older XML::Simple.
2026-09-02 14:08:07 -03:00
..
2018-04-26 15:15:47 -04:00