Commit ab31e2fb authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[trac999] in the defaultQueryACL test, make sure the spec default isn't loaded.

parent 21a333f5
......@@ -256,6 +256,12 @@ TEST_F(ResolverConfig, defaultQueryACL) {
EXPECT_EQ(REJECT, server.getQueryACL().execute(createClient("192.0.2.1")));
EXPECT_EQ(REJECT, server.getQueryACL().execute(
createClient("2001:db8::1")));
// The following would be allowed if the server had loaded the default
// configuration from the spec file. In this context it should not have
// happened, and they should be rejected just like the above cases.
EXPECT_EQ(REJECT, server.getQueryACL().execute(createClient("127.0.0.1")));
EXPECT_EQ(REJECT, server.getQueryACL().execute(createClient("::1")));
}
TEST_F(ResolverConfig, emptyQueryACL) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment