BIND 10 trac2212, updated. f6949dfefe1a650d9eba5d3c4218dbde16c925ff [2212] also ported loadZoneWithoutDataSrc test.
BIND 10 source code commits
bind10-changes at lists.isc.org
Tue Oct 23 07:23:28 UTC 2012
The branch, trac2212 has been updated
via f6949dfefe1a650d9eba5d3c4218dbde16c925ff (commit)
from 5c14165126baa35b1da0fe06ed7803aac07ae0b1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit f6949dfefe1a650d9eba5d3c4218dbde16c925ff
Author: JINMEI Tatuya <jinmei at isc.org>
Date: Tue Oct 23 00:23:10 2012 -0700
[2212] also ported loadZoneWithoutDataSrc test.
-----------------------------------------------------------------------
Summary of changes:
.../auth/tests/datasrc_clients_builder_unittest.cc | 11 +++++++++++
1 file changed, 11 insertions(+)
-----------------------------------------------------------------------
diff --git a/src/bin/auth/tests/datasrc_clients_builder_unittest.cc b/src/bin/auth/tests/datasrc_clients_builder_unittest.cc
index 93e61fa..f66edfe 100644
--- a/src/bin/auth/tests/datasrc_clients_builder_unittest.cc
+++ b/src/bin/auth/tests/datasrc_clients_builder_unittest.cc
@@ -440,6 +440,17 @@ TEST_F(DataSrcClientsBuilderTest, loadUnreadableZone) {
zoneChecks(clients_map, rrclass); // zone shouldn't be replaced
}
+TEST_F(DataSrcClientsBuilderTest, loadZoneWithoutDataSrc) {
+ // try to execute load command without configuring the zone beforehand.
+ // it should fail.
+ EXPECT_THROW(builder.handleCommand(
+ Command(LOADZONE,
+ Element::fromJSON(
+ "{\"class\": \"IN\", "
+ " \"origin\": \"test1.example\"}"))),
+ TestDataSrcClientsBuilder::InternalCommandError);
+}
+
TEST_F(DataSrcClientsBuilderTest, loadZoneInvalidParams) {
configureZones();
More information about the bind10-changes
mailing list