gtest_getMultipleValuesFromConfig: switch <yandex> to <clickhouse>

This commit is contained in:
Azat Khuzhin 2021-10-26 08:52:46 +03:00
parent e60c1f1061
commit 3a6f876abc

View File

@ -11,14 +11,14 @@ TEST(Common, getMultipleValuesFromConfig)
{ {
std::istringstream // STYLE_CHECK_ALLOW_STD_STRING_STREAM std::istringstream // STYLE_CHECK_ALLOW_STD_STRING_STREAM
xml_isteam(R"END(<?xml version="1.0"?> xml_isteam(R"END(<?xml version="1.0"?>
<yandex> <clickhouse>
<first_level> <first_level>
<second_level>0</second_level> <second_level>0</second_level>
<second_level>1</second_level> <second_level>1</second_level>
<second_level>2</second_level> <second_level>2</second_level>
<second_level>3</second_level> <second_level>3</second_level>
</first_level> </first_level>
</yandex>)END"); </clickhouse>)END");
Poco::AutoPtr<Poco::Util::XMLConfiguration> config = new Poco::Util::XMLConfiguration(xml_isteam); Poco::AutoPtr<Poco::Util::XMLConfiguration> config = new Poco::Util::XMLConfiguration(xml_isteam);
std::vector<std::string> answer = getMultipleValuesFromConfig(*config, "first_level", "second_level"); std::vector<std::string> answer = getMultipleValuesFromConfig(*config, "first_level", "second_level");