tests: replace set with vector
The alarm handling code in utils/ uses std::vector for handling multiple
values for severities and resources of alarms. The tests however, work
with sets. This commit unifies the code by using vectors.
Change-Id: I1adbb94450e7da4dd7cdf6a91f2fc485b97d241c
diff --git a/tests/health_systemd-units.cpp b/tests/health_systemd-units.cpp
index 5bf878b..5eaf354 100644
--- a/tests/health_systemd-units.cpp
+++ b/tests/health_systemd-units.cpp
@@ -22,7 +22,7 @@
using namespace std::chrono_literals;
#define REQUIRE_NEW_ALARM_INVENTORY_UNIT(UNIT) \
- REQUIRE_NEW_ALARM_INVENTORY_RESOURCES(alarmsWatcher, (std::set<std::string>{"velia-alarms:systemd-unit-failure"}), std::set<std::string>{UNIT})
+ REQUIRE_NEW_ALARM_INVENTORY_RESOURCES(alarmsWatcher, (std::vector<std::string>{"velia-alarms:systemd-unit-failure"}), std::vector<std::string>{UNIT})
#define REQUIRE_ALARM_RPC(UNIT, SEVERITY, TEXT) \
REQUIRE_NEW_ALARM(alarmsWatcher, "velia-alarms:systemd-unit-failure", UNIT, SEVERITY, TEXT)
@@ -48,8 +48,8 @@
REQUIRE_NEW_ALARM_INVENTORY_ENTRY(alarmsWatcher,
"velia-alarms:systemd-unit-failure",
- (std::set<std::string>{"unit1.service", "unit2.service", "unit3.service"}),
- (std::set<std::string>{"critical"}),
+ (std::vector<std::string>{"unit1.service", "unit2.service", "unit3.service"}),
+ (std::vector<std::string>{"critical"}),
true,
"The systemd service is considered in failed state.");