Commit 51eb5d65 authored by Marcin Siodelski's avatar Marcin Siodelski

[#86,!152] Corrected FQDN sanitizer unit test.

parent 44faa27e
......@@ -1149,31 +1149,31 @@ TEST(D2ClientMgr, sanitizeFqdnV4) {
"partial FQDN, name unchanged, but qualified",
"One.123",
Option4ClientFqdn::PARTIAL,
"One.123.suffix.com."
"one.123.suffix.com."
},
{
"full FQDN, scrubbed",
"O#n^e.123.ex&a*mple.com.",
Option4ClientFqdn::FULL,
"Oxnxe.123.exxaxmple.com."
"oxnxe.123.exxaxmple.com."
},
{
"partial FQDN, scrubbed and qualified",
"One.1+2|3",
Option4ClientFqdn::PARTIAL,
"One.1x2x3.suffix.com."
"one.1x2x3.suffix.com."
},
{
"full FQDN with characters that get escaped",
"O n e.123.exa(m)ple.com.",
Option4ClientFqdn::FULL,
"Oxnxe.123.exaxmxple.com."
"oxnxe.123.exaxmxple.com."
},
{
"full FQDN with escape sequences",
"O\032n\032e.123.example.com.",
Option4ClientFqdn::FULL,
"Oxnxe.123.example.com."
"oxnxe.123.example.com."
}
};
......
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