BIND 10 trac1627, updated. ec5d0a92e4116303f8af5bdaac93f369fe5fde3a [1627] Add a couple more testcases
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Mar 29 22:16:13 UTC 2012
The branch, trac1627 has been updated
via ec5d0a92e4116303f8af5bdaac93f369fe5fde3a (commit)
via c44511a89fd14a2000bcc1d233853764c3188753 (commit)
from 35c0f080ae896d1e146e942052ed2413b2e2b57a (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 ec5d0a92e4116303f8af5bdaac93f369fe5fde3a
Author: Mukund Sivaraman <muks at isc.org>
Date: Fri Mar 30 03:45:26 2012 +0530
[1627] Add a couple more testcases
* Case when no file is specified
* Case where both origin and file are not specified
commit c44511a89fd14a2000bcc1d233853764c3188753
Author: Mukund Sivaraman <muks at isc.org>
Date: Fri Mar 30 03:41:23 2012 +0530
[master] Fix testcase name
-----------------------------------------------------------------------
Summary of changes:
src/bin/auth/tests/config_unittest.cc | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/bin/auth/tests/config_unittest.cc b/src/bin/auth/tests/config_unittest.cc
index 6fc4cef..96e447c 100644
--- a/src/bin/auth/tests/config_unittest.cc
+++ b/src/bin/auth/tests/config_unittest.cc
@@ -299,7 +299,7 @@ TEST_F(MemoryDatasrcConfigTest, remove) {
EXPECT_EQ(AuthSrv::InMemoryClientPtr(), server.getInMemoryClient(rrclass));
}
-TEST_F(MemoryDatasrcConfigTest, adDuplicateZones) {
+TEST_F(MemoryDatasrcConfigTest, addDuplicateZones) {
EXPECT_THROW(parser->build(
Element::fromJSON(
"[{\"type\": \"memory\","
@@ -313,6 +313,13 @@ TEST_F(MemoryDatasrcConfigTest, adDuplicateZones) {
}
TEST_F(MemoryDatasrcConfigTest, addBadZone) {
+ // origin and file are missing
+ EXPECT_THROW(parser->build(
+ Element::fromJSON(
+ "[{\"type\": \"memory\","
+ " \"zones\": [{}]}]")),
+ AuthConfigError);
+
// origin is missing
EXPECT_THROW(parser->build(
Element::fromJSON(
@@ -320,6 +327,13 @@ TEST_F(MemoryDatasrcConfigTest, addBadZone) {
" \"zones\": [{\"file\": \"example.zone\"}]}]")),
AuthConfigError);
+ // file is missing
+ EXPECT_THROW(parser->build(
+ Element::fromJSON(
+ "[{\"type\": \"memory\","
+ " \"zones\": [{\"origin\": \"example.com\"}]}]")),
+ AuthConfigError);
+
// missing zone file
EXPECT_THROW(parser->build(
Element::fromJSON(
More information about the bind10-changes
mailing list