diff options
author | abv <abv@yandex-team.ru> | 2022-02-10 16:50:09 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:09 +0300 |
commit | 508a599920b94ffa7fecd831fcd6e355fc0b04d6 (patch) | |
tree | 70aa260dfd0daaf11dbe1bcbfceb5cacf5002bc7 /library/cpp/uri/uri_ut.cpp | |
parent | 1072ee1402b5fb9b10d1bc5fe5bf4f50b1316d41 (diff) | |
download | ydb-508a599920b94ffa7fecd831fcd6e355fc0b04d6.tar.gz |
Restoring authorship annotation for <abv@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/uri/uri_ut.cpp')
-rw-r--r-- | library/cpp/uri/uri_ut.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/uri/uri_ut.cpp b/library/cpp/uri/uri_ut.cpp index 2ebd83fc93a..4ea34a1be92 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¶m2=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¶m2=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, "", "", ""}; |