Commit 09010fa0 authored by Francis Dupont's avatar Francis Dupont Committed by Tomek Mrugalski

[274-possible-improvements-to-dhcp-queue-control-member-parsing] Upgraded...

[274-possible-improvements-to-dhcp-queue-control-member-parsing] Upgraded dhcpQueueControlInvalid parser tests
parent 9bf1986a
......@@ -6892,14 +6892,16 @@ TEST_F(Dhcp4ParserTest, dhcpQueueControlInvalid) {
"{ \n"
" \"enable-type\": \"some-type\" \n"
"} \n",
"<string>:2.2-21: 'enable-queue' is required: (<string>:2:24)"
"missing parameter 'enable-queue' (<string>:2:2) "
"[dhcp-queue-control map between <string>:2:24 and <string>:4:1]"
},
{
"enable-queue not boolean",
"{ \n"
" \"enable-queue\": \"always\" \n"
"} \n",
"<string>:2.2-21: 'enable-queue' must be boolean: (<string>:2:24)"
"<string>:3.20-27: syntax error, unexpected constant string, "
"expecting boolean"
},
{
"queue enabled, type not a string",
......@@ -6907,7 +6909,8 @@ TEST_F(Dhcp4ParserTest, dhcpQueueControlInvalid) {
" \"enable-queue\": true, \n"
" \"queue-type\": 7777 \n"
"} \n",
"<string>:2.2-21: 'queue-type' must be a string: (<string>:2:24)"
"<string>:4.18-21: syntax error, unexpected integer, "
"expecting constant string"
}
};
......
......@@ -7599,14 +7599,16 @@ TEST_F(Dhcp6ParserTest, dhcpQueueControlInvalid) {
"{ \n"
" \"enable-type\": \"some-type\" \n"
"} \n",
"<string>:2.2-21: 'enable-queue' is required: (<string>:2:24)"
"missing parameter 'enable-queue' (<string>:2:2) "
"[dhcp-queue-control map between <string>:2:24 and <string>:4:1]"
},
{
"enable-queue not boolean",
"{ \n"
" \"enable-queue\": \"always\" \n"
"} \n",
"<string>:2.2-21: 'enable-queue' must be boolean: (<string>:2:24)"
"<string>:3.20-27: syntax error, unexpected constant string, "
"expecting boolean"
},
{
"queue type not a string",
......@@ -7614,7 +7616,8 @@ TEST_F(Dhcp6ParserTest, dhcpQueueControlInvalid) {
" \"enable-queue\": true, \n"
" \"queue-type\": 7777 \n"
"} \n",
"<string>:2.2-21: 'queue-type' must be a string: (<string>:2:24)"
"<string>:4.18-21: syntax error, unexpected integer, "
"expecting constant string"
}
};
......
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