Fix build

This commit is contained in:
Alexey Milovidov 2022-09-04 03:27:55 +02:00
parent 13a129bee7
commit 660c1439ec
2 changed files with 8 additions and 8 deletions

View File

@ -10,7 +10,7 @@ using namespace DB;
TEST(Common, getMultipleValuesFromConfig)
{
std::istringstream // STYLE_CHECK_ALLOW_STD_STRING_STREAM
<clickhouse>
xml_isteam(R"END(<clickhouse>
<first_level>
<second_level>0</second_level>
<second_level>1</second_level>

View File

@ -103,7 +103,7 @@ TEST(Common, SensitiveDataMasker)
{
std::istringstream // STYLE_CHECK_ALLOW_STD_STRING_STREAM
<clickhouse>
xml_isteam(R"END(<clickhouse>
<query_masking_rules>
<rule>
<name>hide SSN</name><!-- by default: it will use xml path, like query_masking_rules.rule[1] -->
@ -153,7 +153,7 @@ TEST(Common, SensitiveDataMasker)
try
{
std::istringstream // STYLE_CHECK_ALLOW_STD_STRING_STREAM
<clickhouse>
xml_isteam(R"END(<clickhouse>
<query_masking_rules>
<rule>
<name>test</name>
@ -166,7 +166,7 @@ TEST(Common, SensitiveDataMasker)
</query_masking_rules>
</clickhouse>)END");
Poco::AutoPtr<Poco::Util::XMLConfiguration> xml_config = new Poco::Util::XMLConfiguration(xml_isteam_bad);
Poco::AutoPtr<Poco::Util::XMLConfiguration> xml_config = new Poco::Util::XMLConfiguration(xml_isteam);
DB::SensitiveDataMasker masker_xml_based_exception_check(*xml_config, "query_masking_rules");
ADD_FAILURE() << "XML should throw an error on bad XML" << std::endl;
@ -182,13 +182,13 @@ TEST(Common, SensitiveDataMasker)
try
{
std::istringstream // STYLE_CHECK_ALLOW_STD_STRING_STREAM
<clickhouse>
xml_isteam(R"END(<clickhouse>
<query_masking_rules>
<rule><name>test</name></rule>
</query_masking_rules>
</clickhouse>)END");
Poco::AutoPtr<Poco::Util::XMLConfiguration> xml_config = new Poco::Util::XMLConfiguration(xml_isteam_bad);
Poco::AutoPtr<Poco::Util::XMLConfiguration> xml_config = new Poco::Util::XMLConfiguration(xml_isteam);
DB::SensitiveDataMasker masker_xml_based_exception_check(*xml_config, "query_masking_rules");
ADD_FAILURE() << "XML should throw an error on bad XML" << std::endl;
@ -204,13 +204,13 @@ TEST(Common, SensitiveDataMasker)
try
{
std::istringstream // STYLE_CHECK_ALLOW_STD_STRING_STREAM
<clickhouse>
xml_isteam(R"END(<clickhouse>
<query_masking_rules>
<rule><name>test</name><regexp>())(</regexp></rule>
</query_masking_rules>
</clickhouse>)END");
Poco::AutoPtr<Poco::Util::XMLConfiguration> xml_config = new Poco::Util::XMLConfiguration(xml_isteam_bad);
Poco::AutoPtr<Poco::Util::XMLConfiguration> xml_config = new Poco::Util::XMLConfiguration(xml_isteam);
DB::SensitiveDataMasker masker_xml_based_exception_check(*xml_config, "query_masking_rules");
ADD_FAILURE() << "XML should throw an error on bad XML" << std::endl;