mirror of https://github.com/Icinga/icinga2.git
parent
cf570c9a93
commit
3a12ba75c7
|
@ -99,11 +99,11 @@ BOOST_AUTO_TEST_CASE(format)
|
|||
|
||||
url = new Url("https://nsclient:8443/query/check_cpu?time%5B%5D=1m&time=5m&time%5B%5D=15m");
|
||||
url->SetArrayFormatUseBrackets(false);
|
||||
BOOST_CHECK(url2 = new Url(url->Format(false, false)));
|
||||
BOOST_CHECK(new Url(url->Format(false, false)));
|
||||
|
||||
url = new Url("https://icinga2/query?a[]=1&a[]=2&a[]=3");
|
||||
url->SetArrayFormatUseBrackets(true);
|
||||
BOOST_CHECK(url2 = new Url(url->Format(false, false)));
|
||||
BOOST_CHECK(new Url(url->Format(false, false)));
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(illegal_legal_strings)
|
||||
|
|
Loading…
Reference in New Issue