aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/uri/uri_ut.cpp
diff options
context:
space:
mode:
authorabv <abv@yandex-team.ru>2022-02-10 16:50:09 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:09 +0300
commitd61dc9100740438abc0b62605ff773e9f4e3c52e (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/uri/uri_ut.cpp
parent508a599920b94ffa7fecd831fcd6e355fc0b04d6 (diff)
downloadydb-d61dc9100740438abc0b62605ff773e9f4e3c52e.tar.gz
Restoring authorship annotation for <abv@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/uri/uri_ut.cpp')
-rw-r--r--library/cpp/uri/uri_ut.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/uri/uri_ut.cpp b/library/cpp/uri/uri_ut.cpp
index 4ea34a1be92..2ebd83fc93a 100644
--- a/library/cpp/uri/uri_ut.cpp
+++ b/library/cpp/uri/uri_ut.cpp
@@ -221,7 +221,7 @@ namespace NUri {
UNIT_ASSERT_VALUES_EQUAL(parsedUrl.GetPort(), 443);
UNIT_ASSERT_VALUES_EQUAL(parsedUrl.PrintS(), "https://www.host.com/script.cgi?param1=value1&param2=value2");
}
-
+
// change scheme with non-default port
{
TUri parsedUrl;
@@ -231,14 +231,14 @@ namespace NUri {
UNIT_ASSERT_VALUES_EQUAL(parsedUrl.PrintS(), "https://www.host.com:8080/script.cgi?param1=value1&param2=value2");
}
}
-
+
Y_UNIT_TEST(test_httpURLAuth) {
{
TUri parsedUrl;
TState::EParsed st = parsedUrl.Parse("http://@www.host.com/path", TFeature::FeaturesRobot);
UNIT_ASSERT_VALUES_EQUAL(st, TState::ParsedBadAuth);
}
-
+
{
TUri parsedUrl;
TState::EParsed st = parsedUrl.Parse("http://loginwithnopass@www.host.com/path", TFeature::FeatureAuthSupported);
@@ -247,7 +247,7 @@ namespace NUri {
UNIT_ASSERT_EQUAL(parsedUrl.GetField(TField::FieldUser), "loginwithnopass");
UNIT_ASSERT_EQUAL(parsedUrl.GetField(TField::FieldPass), "");
}
-
+
{
TUri parsedUrl;
TState::EParsed st = parsedUrl.Parse("http://login:pass@www.host.com/path", TFeature::FeatureAuthSupported);
@@ -257,7 +257,7 @@ namespace NUri {
UNIT_ASSERT_EQUAL(parsedUrl.GetField(TField::FieldPass), "pass");
}
}
-
+
Y_UNIT_TEST(test01) {
TTest test = {
"user:pass@host:8080", TFeature::FeaturesAll, TState::ParsedRootless, "user", "", "", "", 0, "", "", ""};