mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-09-01 14:35:29 +00:00
[2428] Check quoted "$INCLUDE" is accepted too
This commit is contained in:
@@ -150,10 +150,11 @@ TEST_F(MasterLoaderTest, basicLoad) {
|
|||||||
TEST_F(MasterLoaderTest, include) {
|
TEST_F(MasterLoaderTest, include) {
|
||||||
// Test various cases of include
|
// Test various cases of include
|
||||||
const char* includes[] = {
|
const char* includes[] = {
|
||||||
"include",
|
"$include",
|
||||||
"INCLUDE",
|
"$INCLUDE",
|
||||||
"Include",
|
"$Include",
|
||||||
"InCluDe",
|
"$InCluDe",
|
||||||
|
"\"$INCLUDE\"",
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
for (const char** include = includes; *include != NULL; ++include) {
|
for (const char** include = includes; *include != NULL; ++include) {
|
||||||
@@ -162,7 +163,7 @@ TEST_F(MasterLoaderTest, include) {
|
|||||||
clear();
|
clear();
|
||||||
// Prepare input source that has the include and some more data
|
// Prepare input source that has the include and some more data
|
||||||
// below (to see it returns back to the original source).
|
// below (to see it returns back to the original source).
|
||||||
const string include_str = "$" + string(*include) + " " +
|
const string include_str = string(*include) + " " +
|
||||||
TEST_DATA_SRCDIR + "/example.org\nwww 3600 IN AAAA 2001:db8::1\n";
|
TEST_DATA_SRCDIR + "/example.org\nwww 3600 IN AAAA 2001:db8::1\n";
|
||||||
stringstream ss(include_str);
|
stringstream ss(include_str);
|
||||||
setLoader(ss, Name("example.org."), RRClass::IN(),
|
setLoader(ss, Name("example.org."), RRClass::IN(),
|
||||||
|
Reference in New Issue
Block a user