Commit 071f6783 authored by Francis Dupont's avatar Francis Dupont
Browse files

[5351] Regen tests

parent e33d5095
......@@ -5654,7 +5654,7 @@ TEST_F(Dhcp4ParserTest, comments) {
OptionDefinitionPtr opt_def = LibDHCP::getRuntimeOptionDef("isc", 100);
ASSERT_TRUE(opt_def);
EXPECT_EQ("foo", opt_def->getName());
EXPECT_EQ(1, opt_def->getCode());
EXPECT_EQ(100, opt_def->getCode());
EXPECT_FALSE(opt_def->getArrayType());
EXPECT_EQ(OPT_IPV4_ADDRESS_TYPE, opt_def->getType());
EXPECT_TRUE(opt_def->getEncapsulatedSpace().empty());
......
......@@ -1587,9 +1587,19 @@ const char* EXTRACTED_CONFIGS[] = {
" }\n",
// CONFIGURATION 58
"{\n"
" \"comment\": \"A DHCPv4 server\",\n"
" \"option-def\": [\n"
" {\n"
" \"comment\": \"An option definition\",\n"
" \"code\": 100,\n"
" \"name\": \"foo\",\n"
" \"space\": \"isc\",\n"
" \"type\": \"ipv4-address\"\n"
" }\n"
" ],\n"
" \"shared-networks\": [\n"
" {\n"
" \"comment\": \"A shared-network\",\n"
" \"comment\": \"A shared network\",\n"
" \"name\": \"foo\",\n"
" \"subnet4\": [\n"
" {\n"
......@@ -6251,6 +6261,7 @@ const char* UNPARSED_CONFIGS[] = {
" }\n",
// CONFIGURATION 58
"{\n"
" \"comment\": \"A DHCPv4 server\",\n"
" \"decline-probation-period\": 86400,\n"
" \"dhcp-ddns\": {\n"
" \"always-include-fqdn\": false,\n"
......@@ -6288,10 +6299,21 @@ const char* UNPARSED_CONFIGS[] = {
" \"type\": \"memfile\"\n"
" },\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
" \"option-def\": [\n"
" {\n"
" \"comment\": \"An option definition\",\n"
" \"array\": false,\n"
" \"code\": 100,\n"
" \"encapsulate\": \"\",\n"
" \"name\": \"foo\",\n"
" \"record-types\": \"\",\n"
" \"space\": \"isc\",\n"
" \"type\": \"ipv4-address\"\n"
" }\n"
" ],\n"
" \"shared-networks\": [\n"
" {\n"
" \"comment\": \"A shared-network\",\n"
" \"comment\": \"A shared network\",\n"
" \"match-client-id\": true,\n"
" \"name\": \"foo\",\n"
" \"option-data\": [ ],\n"
......
......@@ -6104,7 +6104,7 @@ TEST_F(Dhcp6ParserTest, comments) {
OptionDefinitionPtr opt_def = LibDHCP::getRuntimeOptionDef("isc", 100);
ASSERT_TRUE(opt_def);
EXPECT_EQ("foo", opt_def->getName());
EXPECT_EQ(1, opt_def->getCode());
EXPECT_EQ(100, opt_def->getCode());
EXPECT_FALSE(opt_def->getArrayType());
EXPECT_EQ(OPT_IPV6_ADDRESS_TYPE, opt_def->getType());
EXPECT_TRUE(opt_def->getEncapsulatedSpace().empty());
......
......@@ -1462,9 +1462,19 @@ const char* EXTRACTED_CONFIGS[] = {
" }\n",
// CONFIGURATION 51
"{\n"
" \"comment\": \"A DHCPv6 server\",\n"
" \"option-def\": [\n"
" {\n"
" \"comment\": \"An option definition\",\n"
" \"code\": 100,\n"
" \"name\": \"foo\",\n"
" \"space\": \"isc\",\n"
" \"type\": \"ipv6-address\"\n"
" }\n"
" ],\n"
" \"shared-networks\": [\n"
" {\n"
" \"comment\": \"A shared-network\",\n"
" \"comment\": \"A shared network\",\n"
" \"name\": \"foo\",\n"
" \"subnet6\": [\n"
" {\n"
......@@ -5862,6 +5872,7 @@ const char* UNPARSED_CONFIGS[] = {
" }\n",
// CONFIGURATION 51
"{\n"
" \"comment\": \"A DHCPv6 server\",\n"
" \"decline-probation-period\": 86400,\n"
" \"dhcp-ddns\": {\n"
" \"always-include-fqdn\": false,\n"
......@@ -5899,7 +5910,18 @@ const char* UNPARSED_CONFIGS[] = {
" },\n"
" \"mac-sources\": [ \"any\" ],\n"
" \"option-data\": [ ],\n"
" \"option-def\": [ ],\n"
" \"option-def\": [\n"
" {\n"
" \"comment\": \"An option definition\",\n"
" \"array\": false,\n"
" \"code\": 100,\n"
" \"encapsulate\": \"\",\n"
" \"name\": \"foo\",\n"
" \"record-types\": \"\",\n"
" \"space\": \"isc\",\n"
" \"type\": \"ipv6-address\"\n"
" }\n"
" ],\n"
" \"relay-supplied-options\": [ \"65\" ],\n"
" \"server-id\": {\n"
" \"enterprise-id\": 0,\n"
......@@ -5911,7 +5933,7 @@ const char* UNPARSED_CONFIGS[] = {
" },\n"
" \"shared-networks\": [\n"
" {\n"
" \"comment\": \"A shared-network\",\n"
" \"comment\": \"A shared network\",\n"
" \"name\": \"foo\",\n"
" \"option-data\": [ ],\n"
" \"preferred-lifetime\": 0,\n"
......
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