mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 13:13:36 +00:00
gtest_getMultipleValuesFromConfig: switch <yandex> to <clickhouse>
This commit is contained in:
parent
e60c1f1061
commit
3a6f876abc
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user