2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-29 21:18:02 +00:00

[2428] Test two more error cases

Shorter and longer version of INCLUDE.
This commit is contained in:
Michal 'vorner' Vaner 2012-12-13 12:12:37 +01:00
parent 58664e2ecc
commit bb1f38e03f

View File

@ -283,6 +283,8 @@ struct ErrorCase {
// Check the unknown directive. The rest looks like ordinary RR, // Check the unknown directive. The rest looks like ordinary RR,
// so we see the $ is actually special. // so we see the $ is actually special.
{ "$UNKNOWN 3600 IN A 192.0.2.1", "Unknown $ directive" }, { "$UNKNOWN 3600 IN A 192.0.2.1", "Unknown $ directive" },
{ "$INCLUD " TEST_DATA_SRCDIR "/example.org", "Include too short" },
{ "$INCLUDES " TEST_DATA_SRCDIR "/example.org", "Include too short" },
{ "$INCLUDE", "Missing include path" }, { "$INCLUDE", "Missing include path" },
{ "$INCLUDE /file/not/found", "Include file not found" }, { "$INCLUDE /file/not/found", "Include file not found" },
{ "$INCLUDE /file/not/found and here goes bunch of garbage", { "$INCLUDE /file/not/found and here goes bunch of garbage",