clang-tidy: Enable readability-qualified-auto check

This check aims to improve code readability by suggesting the use
of const auto * instead of auto for variables that are pointers
or iterators. This helps clarify the const-ness of the pointed-to
object or container elements.

Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: Ia132b6dd8ae4e3c16809326f6055396666abc95a
diff --git a/test/utest.cpp b/test/utest.cpp
index 5f62f25..ea2eb83 100644
--- a/test/utest.cpp
+++ b/test/utest.cpp
@@ -28,7 +28,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/SingleLed";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/SingleLed";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -59,7 +60,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/SingleLed";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/SingleLed";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -90,7 +92,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/SingleLed";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/SingleLed";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -115,7 +118,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/SingleLed";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/SingleLed";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -134,7 +138,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLeds";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLeds";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -169,7 +174,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLeds";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLeds";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -204,7 +210,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLeds";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLeds";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -233,7 +240,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLeds";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLeds";
         auto result =
             manager.setGroupState(group, false, ledsAssert, ledsDeAssert);
         EXPECT_EQ(false, result);
@@ -268,7 +276,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLeds";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLeds";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -297,7 +306,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLeds";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLeds";
         auto result =
             manager.setGroupState(group, false, ledsAssert, ledsDeAssert);
         EXPECT_EQ(false, result);
@@ -326,7 +336,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLeds";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLeds";
         auto result =
             manager.setGroupState(group, false, ledsAssert, ledsDeAssert);
         EXPECT_EQ(false, result);
@@ -344,7 +355,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsMix";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsMix";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -383,7 +395,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -412,7 +425,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -447,7 +461,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -476,7 +491,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -510,7 +526,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -539,7 +556,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -567,7 +585,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
         auto result =
             manager.setGroupState(group, false, ledsAssert, ledsDeAssert);
         EXPECT_EQ(false, result);
@@ -602,7 +621,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -631,7 +651,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -659,7 +680,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
         auto result =
             manager.setGroupState(group, false, ledsAssert, ledsDeAssert);
         EXPECT_EQ(false, result);
@@ -706,7 +728,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -735,7 +758,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -764,7 +788,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
         auto result =
             manager.setGroupState(group, false, ledsAssert, ledsDeAssert);
         EXPECT_EQ(false, result);
@@ -799,7 +824,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -828,7 +854,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -857,7 +884,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
         auto result =
             manager.setGroupState(group, false, ledsAssert, ledsDeAssert);
         EXPECT_EQ(false, result);
@@ -904,7 +932,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -935,7 +964,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -960,7 +990,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
         auto result =
             manager.setGroupState(group, false, ledsAssert, ledsDeAssert);
         EXPECT_EQ(false, result);
@@ -993,7 +1024,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -1024,7 +1056,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -1059,7 +1092,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -1091,7 +1125,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -1131,7 +1166,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -1162,7 +1198,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -1193,7 +1230,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
         auto result =
             manager.setGroupState(group, false, ledsAssert, ledsDeAssert);
         EXPECT_EQ(false, result);
@@ -1234,7 +1272,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
         auto result =
             manager.setGroupState(group, false, ledsAssert, ledsDeAssert);
         EXPECT_EQ(false, result);
@@ -1265,7 +1304,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
         auto result =
             manager.setGroupState(group, false, ledsAssert, ledsDeAssert);
         EXPECT_EQ(false, result);
@@ -1287,7 +1327,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -1320,7 +1361,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -1352,7 +1394,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
         auto result =
             manager.setGroupState(group, false, ledsAssert, ledsDeAssert);
         EXPECT_EQ(false, result);
@@ -1399,7 +1442,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -1432,7 +1476,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -1464,7 +1509,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
         auto result =
             manager.setGroupState(group, false, ledsAssert, ledsDeAssert);
         EXPECT_EQ(false, result);
@@ -1510,7 +1556,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -1543,7 +1590,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -1586,7 +1634,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -1619,7 +1668,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -1651,7 +1701,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
         auto result =
             manager.setGroupState(group, false, ledsAssert, ledsDeAssert);
         EXPECT_EQ(false, result);
@@ -1698,7 +1749,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -1731,7 +1783,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
         auto result =
             manager.setGroupState(group, true, ledsAssert, ledsDeAssert);
         EXPECT_EQ(true, result);
@@ -1763,7 +1816,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
         auto result =
             manager.setGroupState(group, false, ledsAssert, ledsDeAssert);
         EXPECT_EQ(false, result);
@@ -1805,7 +1859,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet";
         auto result =
             manager.setGroupState(group, false, ledsAssert, ledsDeAssert);
         EXPECT_EQ(false, result);
@@ -1838,7 +1893,8 @@
         ActionSet ledsAssert{};
         ActionSet ledsDeAssert{};
 
-        auto group = "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
+        static constexpr auto group =
+            "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet";
         auto result =
             manager.setGroupState(group, false, ledsAssert, ledsDeAssert);
         EXPECT_EQ(false, result);