BIND 10 trac3033, updated. e50f125ad256d2622c73c2df4448489e818a86e0 [3033] Addressed addition review comments.
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Jan 15 13:14:13 UTC 2014
The branch, trac3033 has been updated
via e50f125ad256d2622c73c2df4448489e818a86e0 (commit)
from fb678e639cd130cc718cff735e351f019d0c9164 (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 e50f125ad256d2622c73c2df4448489e818a86e0
Author: Thomas Markwalder <tmark at isc.org>
Date: Wed Jan 15 08:11:17 2014 -0500
[3033] Addressed addition review comments.
Changed IP addresses used in tests in dhcp_parsers_unittest.cc
to comply test values recommened by RFCs.
-----------------------------------------------------------------------
Summary of changes:
src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc b/src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc
index eb5ec8f..2e6adb9 100644
--- a/src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc
+++ b/src/lib/dhcpsrv/tests/dhcp_parsers_unittest.cc
@@ -571,7 +571,7 @@ TEST_F(ParseConfigTest, basicOptionDataTest) {
" \"name\": \"foo\","
" \"space\": \"isc\","
" \"code\": 100,"
- " \"data\": \"192.168.2.1\","
+ " \"data\": \"192.0.2.0\","
" \"csv-format\": True"
" } ]"
"}";
@@ -586,7 +586,7 @@ TEST_F(ParseConfigTest, basicOptionDataTest) {
// Verify that the option definition is correct.
std::string val = "type=100, len=4, data fields:\n "
- " #0 192.168.2.1 ( ipv4-address ) \n";
+ " #0 192.0.2.0 ( ipv4-address ) \n";
EXPECT_EQ(val, opt_ptr->toText());
}
@@ -716,7 +716,7 @@ TEST_F(ParseConfigTest, validD2Config) {
"{ \"dhcp-ddns\" :"
" {"
" \"enable-updates\" : true, "
- " \"server-ip\" : \"192.168.2.1\", "
+ " \"server-ip\" : \"192.0.2.0\", "
" \"server-port\" : 3432, "
" \"ncr-protocol\" : \"UDP\", "
" \"ncr-format\" : \"JSON\", "
@@ -742,7 +742,7 @@ TEST_F(ParseConfigTest, validD2Config) {
// Verify that the configuration values are as expected.
EXPECT_TRUE(d2_client_config->getEnableUpdates());
- EXPECT_EQ("192.168.2.1", d2_client_config->getServerIp().toText());
+ EXPECT_EQ("192.0.2.0", d2_client_config->getServerIp().toText());
EXPECT_EQ(3432, d2_client_config->getServerPort());
EXPECT_EQ(dhcp_ddns::NCR_UDP, d2_client_config->getNcrProtocol());
EXPECT_EQ(dhcp_ddns::FMT_JSON, d2_client_config->getNcrFormat());
@@ -761,7 +761,7 @@ TEST_F(ParseConfigTest, validD2Config) {
"{ \"dhcp-ddns\" :"
" {"
" \"enable-updates\" : true, "
- " \"server-ip\" : \"3005::1\", "
+ " \"server-ip\" : \"2001:db8::\", "
" \"server-port\" : 43567, "
" \"ncr-protocol\" : \"UDP\", "
" \"ncr-format\" : \"JSON\", "
@@ -786,7 +786,7 @@ TEST_F(ParseConfigTest, validD2Config) {
// Verify that the configuration values are as expected.
EXPECT_TRUE(d2_client_config->getEnableUpdates());
- EXPECT_EQ("3005::1", d2_client_config->getServerIp().toText());
+ EXPECT_EQ("2001:db8::", d2_client_config->getServerIp().toText());
EXPECT_EQ(43567, d2_client_config->getServerPort());
EXPECT_EQ(dhcp_ddns::NCR_UDP, d2_client_config->getNcrProtocol());
EXPECT_EQ(dhcp_ddns::FMT_JSON, d2_client_config->getNcrFormat());
@@ -838,7 +838,7 @@ TEST_F(ParseConfigTest, invalidD2Config) {
"{ \"dhcp-ddns\" :"
" {"
" \"enable-updates\" : true, "
- //" \"server-ip\" : \"192.168.2.1\", "
+ //" \"server-ip\" : \"192.0.2.0\", "
" \"server-port\" : 53001, "
" \"ncr-protocol\" : \"UDP\", "
" \"ncr-format\" : \"JSON\", "
@@ -855,7 +855,7 @@ TEST_F(ParseConfigTest, invalidD2Config) {
"{ \"dhcp-ddns\" :"
" {"
" \"enable-updates\" : true, "
- " \"server-ip\" : \"x192.168.2.1\", "
+ " \"server-ip\" : \"x192.0.2.0\", "
" \"server-port\" : 53001, "
" \"ncr-protocol\" : \"UDP\", "
" \"ncr-format\" : \"JSON\", "
@@ -872,7 +872,7 @@ TEST_F(ParseConfigTest, invalidD2Config) {
"{ \"dhcp-ddns\" :"
" {"
" \"enable-updates\" : true, "
- " \"server-ip\" : \"192.168.2.1\", "
+ " \"server-ip\" : \"192.0.2.0\", "
" \"server-port\" : 53001, "
" \"ncr-protocol\" : \"Bogus\", "
" \"ncr-format\" : \"JSON\", "
@@ -889,7 +889,7 @@ TEST_F(ParseConfigTest, invalidD2Config) {
"{ \"dhcp-ddns\" :"
" {"
" \"enable-updates\" : true, "
- " \"server-ip\" : \"192.168.2.1\", "
+ " \"server-ip\" : \"192.0.2.0\", "
" \"server-port\" : 53001, "
" \"ncr-protocol\" : \"TCP\", "
" \"ncr-format\" : \"JSON\", "
@@ -906,7 +906,7 @@ TEST_F(ParseConfigTest, invalidD2Config) {
"{ \"dhcp-ddns\" :"
" {"
" \"enable-updates\" : true, "
- " \"server-ip\" : \"192.168.2.1\", "
+ " \"server-ip\" : \"192.0.2.0\", "
" \"server-port\" : 53001, "
" \"ncr-protocol\" : \"UDP\", "
" \"ncr-format\" : \"Bogus\", "
@@ -923,7 +923,7 @@ TEST_F(ParseConfigTest, invalidD2Config) {
"{ \"dhcp-ddns\" :"
" {"
" \"enable-updates\" : true, "
- " \"server-ip\" : \"192.168.2.1\", "
+ " \"server-ip\" : \"192.0.2.0\", "
// " \"server-port\" : 53001, "
" \"ncr-protocol\" : \"UDP\", "
" \"ncr-format\" : \"JSON\", "
More information about the bind10-changes
mailing list