diff options
author | Shawn Routhier <sar@isc.org> | 2013-12-11 08:08:42 -0800 |
---|---|---|
committer | Shawn Routhier <sar@isc.org> | 2013-12-11 08:08:42 -0800 |
commit | 61ef216b8dc05bc4245b61eee812038757d12ffe (patch) | |
tree | 5ad2e69325a491a95cbdf6bbb44be23c61764992 /server/tests | |
parent | 51e2e60626f0b86e4303ad4c68ba5106a7de8152 (diff) | |
download | isc-dhcp-61ef216b8dc05bc4245b61eee812038757d12ffe.tar.gz |
[master] Add support for user selection of the from address for DDNS transactions
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/mdb6_unittest.c | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/server/tests/mdb6_unittest.c b/server/tests/mdb6_unittest.c index 56b47184..15858ffa 100644 --- a/server/tests/mdb6_unittest.c +++ b/server/tests/mdb6_unittest.c @@ -51,7 +51,8 @@ ATF_TC_BODY(iaaddr_basic, tc) struct iasubopt *iaaddr_copy; /* set up dhcp globals */ - dhcp_context_create(); + dhcp_context_create(DHCP_CONTEXT_PRE_DB | DHCP_CONTEXT_POST_DB, + NULL, NULL); /* and other common arguments */ iaaddr = NULL; @@ -95,7 +96,8 @@ ATF_TC_BODY(iaaddr_negative, tc) struct iasubopt *iaaddr_copy; /* set up dhcp globals */ - dhcp_context_create(); + dhcp_context_create(DHCP_CONTEXT_PRE_DB | DHCP_CONTEXT_POST_DB, + NULL, NULL); /* tests */ /* bogus allocate arguments */ @@ -156,7 +158,8 @@ ATF_TC_BODY(ia_na_basic, tc) struct iasubopt *iaaddr; /* set up dhcp globals */ - dhcp_context_create(); + dhcp_context_create(DHCP_CONTEXT_PRE_DB | DHCP_CONTEXT_POST_DB, + NULL, NULL); /* and other common arguments */ iaid = 666; @@ -219,7 +222,8 @@ ATF_TC_BODY(ia_na_manyaddrs, tc) int i; /* set up dhcp globals */ - dhcp_context_create(); + dhcp_context_create(DHCP_CONTEXT_PRE_DB | DHCP_CONTEXT_POST_DB, + NULL, NULL); /* tests */ /* lots of iaaddr that we delete */ @@ -294,7 +298,8 @@ ATF_TC_BODY(ia_na_negative, tc) struct ia_xx *ia_na_copy; /* set up dhcp globals */ - dhcp_context_create(); + dhcp_context_create(DHCP_CONTEXT_PRE_DB | DHCP_CONTEXT_POST_DB, + NULL, NULL); /* tests */ /* bogus allocate arguments */ @@ -370,7 +375,8 @@ ATF_TC_BODY(ipv6_pool_basic, tc) unsigned int attempts; /* set up dhcp globals */ - dhcp_context_create(); + dhcp_context_create(DHCP_CONTEXT_PRE_DB | DHCP_CONTEXT_POST_DB, + NULL, NULL); /* and other common arguments */ inet_pton(AF_INET6, "1:2:3:4::", &addr); @@ -515,7 +521,8 @@ ATF_TC_BODY(ipv6_pool_negative, tc) struct ipv6_pool *pool_copy; /* set up dhcp globals */ - dhcp_context_create(); + dhcp_context_create(DHCP_CONTEXT_PRE_DB | DHCP_CONTEXT_POST_DB, + NULL, NULL); /* and other common arguments */ inet_pton(AF_INET6, "1:2:3:4::", &addr); @@ -574,7 +581,8 @@ ATF_TC_BODY(expire_order, tc) unsigned int attempts; /* set up dhcp globals */ - dhcp_context_create(); + dhcp_context_create(DHCP_CONTEXT_PRE_DB | DHCP_CONTEXT_POST_DB, + NULL, NULL); /* and other common arguments */ inet_pton(AF_INET6, "1:2:3:4::", &addr); @@ -673,7 +681,8 @@ ATF_TC_BODY(expire_order_reduce, tc) unsigned int attempts; /* set up dhcp globals */ - dhcp_context_create(); + dhcp_context_create(DHCP_CONTEXT_PRE_DB | DHCP_CONTEXT_POST_DB, + NULL, NULL); /* and other common arguments */ inet_pton(AF_INET6, "1:2:3:4::", &addr); @@ -794,7 +803,8 @@ ATF_TC_BODY(small_pool, tc) unsigned int attempts; /* set up dhcp globals */ - dhcp_context_create(); + dhcp_context_create(DHCP_CONTEXT_PRE_DB | DHCP_CONTEXT_POST_DB, + NULL, NULL); /* and other common arguments */ inet_pton(AF_INET6, "1:2:3:4::", &addr); @@ -865,7 +875,8 @@ ATF_TC_BODY(many_pools, tc) struct ipv6_pool *pool; /* set up dhcp globals */ - dhcp_context_create(); + dhcp_context_create(DHCP_CONTEXT_PRE_DB | DHCP_CONTEXT_POST_DB, + NULL, NULL); /* and other common arguments */ inet_pton(AF_INET6, "1:2:3:4::", &addr); |