Fix error

This commit is contained in:
Alexey Milovidov 2020-11-07 22:02:22 +03:00
parent 5e5779adfd
commit 941ee1a214
2 changed files with 0 additions and 9 deletions

View File

@ -19,8 +19,6 @@ TEST(Common, getMultipleValuesFromConfig)
</first_level>
</yandex>)END");
xml_isteam.exceptions(std::ios::failbit);
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> right_answer = {"0", "1", "2", "3"};

View File

@ -135,8 +135,6 @@ TEST(Common, SensitiveDataMasker)
</query_masking_rules>
</clickhouse>)END");
xml_isteam.exceptions(std::ios::failbit);
Poco::AutoPtr<Poco::Util::XMLConfiguration> xml_config = new Poco::Util::XMLConfiguration(xml_isteam);
DB::SensitiveDataMasker masker_xml_based(*xml_config, "query_masking_rules");
std::string top_secret = "The e-mail of IVAN PETROV is kotik1902@sdsdf.test, and the password is qwerty123";
@ -168,7 +166,6 @@ TEST(Common, SensitiveDataMasker)
</query_masking_rules>
</clickhouse>)END");
xml_isteam_bad.exceptions(std::ios::failbit);
Poco::AutoPtr<Poco::Util::XMLConfiguration> xml_config = new Poco::Util::XMLConfiguration(xml_isteam_bad);
DB::SensitiveDataMasker masker_xml_based_exception_check(*xml_config, "query_masking_rules");
@ -191,8 +188,6 @@ TEST(Common, SensitiveDataMasker)
</query_masking_rules>
</clickhouse>)END");
xml_isteam_bad.exceptions(std::ios::failbit);
Poco::AutoPtr<Poco::Util::XMLConfiguration> xml_config = new Poco::Util::XMLConfiguration(xml_isteam_bad);
DB::SensitiveDataMasker masker_xml_based_exception_check(*xml_config, "query_masking_rules");
@ -215,8 +210,6 @@ TEST(Common, SensitiveDataMasker)
</query_masking_rules>
</clickhouse>)END");
xml_isteam_bad.exceptions(std::ios::failbit);
Poco::AutoPtr<Poco::Util::XMLConfiguration> xml_config = new Poco::Util::XMLConfiguration(xml_isteam_bad);
DB::SensitiveDataMasker masker_xml_based_exception_check(*xml_config, "query_masking_rules");