diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index bc3cd9ed..8818f91d 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -23,7 +23,7 @@ set( engine/test_filter_evttype_resolver.cpp engine/test_filter_warning_resolver.cpp engine/test_plugin_requirements.cpp - falco/test_configuration.cpp + falco/test_yaml_helper.cpp ) set(FALCO_TESTED_LIBRARIES falco_engine ${YAMLCPP_LIB}) diff --git a/tests/falco/test_configuration.cpp b/tests/falco/test_yaml_helper.cpp similarity index 97% rename from tests/falco/test_configuration.cpp rename to tests/falco/test_yaml_helper.cpp index 6c85718e..eff0b742 100644 --- a/tests/falco/test_configuration.cpp +++ b/tests/falco/test_yaml_helper.cpp @@ -32,7 +32,7 @@ string sample_yaml = TEST_CASE("configuration must load YAML data", "[configuration]") { - yaml_configuration conf; + yaml_helper conf; SECTION("broken YAML") { @@ -58,7 +58,7 @@ TEST_CASE("configuration must load YAML data", "[configuration]") TEST_CASE("configuration must read YAML fields", "[configuration]") { - yaml_configuration conf; + yaml_helper conf; conf.load_from_string(sample_yaml); SECTION("base level") @@ -96,7 +96,7 @@ TEST_CASE("configuration must read YAML fields", "[configuration]") TEST_CASE("configuration must modify YAML fields", "[configuration]") { string key = "base_value.subvalue.subvalue2.boolean"; - yaml_configuration conf; + yaml_helper conf; conf.load_from_string(sample_yaml); REQUIRE(conf.get_scalar(key, false) == true); conf.set_scalar(key, false);