Set ExpandQuery MaxLevels to 0 in Redfish ServiceRoot MaxLevels was accidentally set to 1 before. We need to set it to 0 to show it dosent support expand. Google-Bug-Id:553082322 PiperOrigin-RevId: 972173681 Change-Id: I65d6d725ff235d79ed32d180338735f15753d4c7
diff --git a/redfish-core/lib/service_root.hpp b/redfish-core/lib/service_root.hpp index 412334c..294407d 100644 --- a/redfish-core/lib/service_root.hpp +++ b/redfish-core/lib/service_root.hpp
@@ -106,7 +106,7 @@ protocolFeatures["ExpandQuery"]["ExpandAll"] = false; protocolFeatures["ExpandQuery"]["Levels"] = false; protocolFeatures["ExpandQuery"]["Links"] = false; - protocolFeatures["ExpandQuery"]["MaxLevels"] = 1; + protocolFeatures["ExpandQuery"]["MaxLevels"] = 0; protocolFeatures["ExpandQuery"]["NoLinks"] = false; return; }
diff --git a/test/redfish-core/lib/service_root_test.cpp b/test/redfish-core/lib/service_root_test.cpp index 4485371..2b486c0 100644 --- a/test/redfish-core/lib/service_root_test.cpp +++ b/test/redfish-core/lib/service_root_test.cpp
@@ -142,7 +142,7 @@ "ExpandAll": false, "Levels": false, "Links": false, - "MaxLevels": 1, + "MaxLevels": 0, "NoLinks": false })")); }