diff options
Diffstat (limited to 'test/redfish-core')
-rw-r--r-- | test/redfish-core/include/utils/query_param_test.cpp | 2 | ||||
-rw-r--r-- | test/redfish-core/lib/service_root_test.cpp | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/test/redfish-core/include/utils/query_param_test.cpp b/test/redfish-core/include/utils/query_param_test.cpp index 46cc64d003..b466f81a70 100644 --- a/test/redfish-core/include/utils/query_param_test.cpp +++ b/test/redfish-core/include/utils/query_param_test.cpp @@ -546,7 +546,7 @@ TEST(QueryParams, ParseParametersExpand) crow::Response res; std::optional<Query> query = parseParameters(ret->params(), res); - if constexpr (bmcwebInsecureEnableQueryParams) + if constexpr (BMCWEB_INSECURE_ENABLE_REDFISH_QUERY) { ASSERT_TRUE(query); if (!query) 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"], |