Skip to content

Commit

Permalink
(maint) Fix tests for Catch 1.10 update in Leatherman
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelSmith authored and caseywilliams committed Oct 19, 2017
1 parent 73e53be commit 6b51a7d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
40 changes: 20 additions & 20 deletions lib/tests/facts/schema.cc
Expand Up @@ -480,16 +480,16 @@ void validate_attributes(YAML::Node const& node)
for (auto const& attribute : node) {
auto attribute_name = attribute.first.as<string>();
CAPTURE(attribute_name);
REQUIRE_THAT(attribute_name, AnyOf(
Catch::Equals("pattern"),
Catch::Equals("type")).add(
Catch::Equals("hidden")).add(
Catch::Equals("description")).add(
Catch::Equals("resolution")).add(
Catch::Equals("caveats")).add(
Catch::Equals("elements")).add(
Catch::Equals("validate")).add(
Catch::Equals("blockgroup"))
REQUIRE_THAT(attribute_name,
Catch::Equals("pattern") ||
Catch::Equals("type") ||
Catch::Equals("hidden") ||
Catch::Equals("description") ||
Catch::Equals("resolution") ||
Catch::Equals("caveats") ||
Catch::Equals("elements") ||
Catch::Equals("validate") ||
Catch::Equals("blockgroup")
);
}

Expand All @@ -506,16 +506,16 @@ void validate_attributes(YAML::Node const& node)
REQUIRE(type_attribute);
REQUIRE(type_attribute.IsScalar());
auto type = type_attribute.as<string>();
REQUIRE_THAT(type, AnyOf(
Catch::Equals("integer"),
Catch::Equals("double")).add(
Catch::Equals("string")).add(
Catch::Equals("boolean")).add(
Catch::Equals("array")).add(
Catch::Equals("map")).add(
Catch::Equals("ip")).add(
Catch::Equals("ip6")).add(
Catch::Equals("mac"))
REQUIRE_THAT(type,
Catch::Equals("integer") ||
Catch::Equals("double") ||
Catch::Equals("string") ||
Catch::Equals("boolean") ||
Catch::Equals("array") ||
Catch::Equals("map") ||
Catch::Equals("ip") ||
Catch::Equals("ip6") ||
Catch::Equals("mac")
);

// Check map types
Expand Down
2 changes: 1 addition & 1 deletion locales/FACTER.pot
Expand Up @@ -622,7 +622,7 @@ msgstr ""
msgid "kenv lookup for {1}"
msgstr ""

#. warning
#. info
#: lib/src/facts/freebsd/dmi_resolver.cc
msgid "kenv lookup for {1} failed: {2} ({3})"
msgstr ""
Expand Down

0 comments on commit 6b51a7d

Please sign in to comment.