summaryrefslogtreecommitdiff
path: root/test/redfish-core/lib/service_root_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/redfish-core/lib/service_root_test.cpp')
-rw-r--r--test/redfish-core/lib/service_root_test.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/redfish-core/lib/service_root_test.cpp b/test/redfish-core/lib/service_root_test.cpp
index 3d47221041..01e48a1d76 100644
--- a/test/redfish-core/lib/service_root_test.cpp
+++ b/test/redfish-core/lib/service_root_test.cpp
@@ -84,14 +84,14 @@ void assertServiceRootGet(crow::Response& res)
EXPECT_EQ(json["ProtocolFeaturesSupported"].size(), 6);
EXPECT_FALSE(json["ProtocolFeaturesSupported"]["ExcerptQuery"]);
EXPECT_EQ(json["ProtocolFeaturesSupported"]["ExpandQuery"]["ExpandAll"],
- bmcwebInsecureEnableQueryParams);
+ BMCWEB_INSECURE_ENABLE_REDFISH_QUERY);
EXPECT_EQ(json["ProtocolFeaturesSupported"]["ExpandQuery"]["Levels"],
- bmcwebInsecureEnableQueryParams);
+ BMCWEB_INSECURE_ENABLE_REDFISH_QUERY);
EXPECT_EQ(json["ProtocolFeaturesSupported"]["ExpandQuery"]["Links"],
- bmcwebInsecureEnableQueryParams);
+ BMCWEB_INSECURE_ENABLE_REDFISH_QUERY);
EXPECT_EQ(json["ProtocolFeaturesSupported"]["ExpandQuery"]["NoLinks"],
- bmcwebInsecureEnableQueryParams);
- if (bmcwebInsecureEnableQueryParams)
+ BMCWEB_INSECURE_ENABLE_REDFISH_QUERY);
+ if constexpr (BMCWEB_INSECURE_ENABLE_REDFISH_QUERY)
{
EXPECT_EQ(json["ProtocolFeaturesSupported"]["ExpandQuery"].size(), 5);
EXPECT_EQ(json["ProtocolFeaturesSupported"]["ExpandQuery"]["MaxLevels"],