summaryrefslogtreecommitdiff
path: root/test/redfish-core/lib
diff options
context:
space:
mode:
authorEd Tanous <ed@tanous.net>2024-03-20 23:38:04 +0300
committerEd Tanous <ed@tanous.net>2024-03-28 06:35:52 +0300
commitf0b59af46a6aa84890d2181b08d4e1af5ce5002f (patch)
tree446e1ed998ede11cbad0faa93a65c727eb6bb3df /test/redfish-core/lib
parent5a8b641229ad1b1c14ae10b7772e5361503675c7 (diff)
downloadbmcweb-f0b59af46a6aa84890d2181b08d4e1af5ce5002f.tar.xz
Add misc-include-cleaner
And fix the includes that are wrong. Note, there is a very large ignore list included in the .clang-tidy configcfile. These are things that clang-tidy doesn't yet handle well, like knowing about a details include. Change-Id: Ie3744f2c8cba68a8700b406449d6c2018a736952 Signed-off-by: Ed Tanous <ed@tanous.net>
Diffstat (limited to 'test/redfish-core/lib')
-rw-r--r--test/redfish-core/lib/chassis_test.cpp5
-rw-r--r--test/redfish-core/lib/log_services_dump_test.cpp8
-rw-r--r--test/redfish-core/lib/log_services_test.cpp6
-rw-r--r--test/redfish-core/lib/manager_diagnostic_data_test.cpp5
-rw-r--r--test/redfish-core/lib/power_subsystem_test.cpp2
-rw-r--r--test/redfish-core/lib/service_root_test.cpp1
-rw-r--r--test/redfish-core/lib/system_test.cpp11
-rw-r--r--test/redfish-core/lib/thermal_subsystem_test.cpp2
-rw-r--r--test/redfish-core/lib/update_service_test.cpp3
9 files changed, 27 insertions, 16 deletions
diff --git a/test/redfish-core/lib/chassis_test.cpp b/test/redfish-core/lib/chassis_test.cpp
index 45d06ae8aa..59e21dd26e 100644
--- a/test/redfish-core/lib/chassis_test.cpp
+++ b/test/redfish-core/lib/chassis_test.cpp
@@ -6,9 +6,14 @@
#include <boost/beast/core/string_type.hpp>
#include <boost/beast/http/message.hpp>
+#include <boost/beast/http/verb.hpp>
#include <nlohmann/json.hpp>
+#include <functional>
+#include <memory>
+#include <string>
#include <system_error>
+#include <utility>
#include <gtest/gtest.h>
diff --git a/test/redfish-core/lib/log_services_dump_test.cpp b/test/redfish-core/lib/log_services_dump_test.cpp
index 2a6333b6b2..ce7a3a9cd4 100644
--- a/test/redfish-core/lib/log_services_dump_test.cpp
+++ b/test/redfish-core/lib/log_services_dump_test.cpp
@@ -1,12 +1,10 @@
-#include "app.hpp"
#include "async_resp.hpp"
-#include "event_service_manager.hpp"
-#include "health.hpp"
#include "log_services.hpp"
-#include <nlohmann/json.hpp>
+#include <boost/beast/http/status.hpp>
+
+#include <memory>
-#include <gmock/gmock.h>
#include <gtest/gtest.h>
namespace redfish
diff --git a/test/redfish-core/lib/log_services_test.cpp b/test/redfish-core/lib/log_services_test.cpp
index 4f7bedb72f..631e3d159f 100644
--- a/test/redfish-core/lib/log_services_test.cpp
+++ b/test/redfish-core/lib/log_services_test.cpp
@@ -1,15 +1,13 @@
-#include "app.hpp"
#include "async_resp.hpp"
#include "log_services.hpp"
#include <systemd/sd-id128.h>
-#include <nlohmann/json.hpp>
-
+#include <cstdint>
#include <format>
+#include <memory>
#include <string>
-#include <gmock/gmock.h>
#include <gtest/gtest.h>
namespace redfish
diff --git a/test/redfish-core/lib/manager_diagnostic_data_test.cpp b/test/redfish-core/lib/manager_diagnostic_data_test.cpp
index b59842ab57..c10bd57c53 100644
--- a/test/redfish-core/lib/manager_diagnostic_data_test.cpp
+++ b/test/redfish-core/lib/manager_diagnostic_data_test.cpp
@@ -1,8 +1,13 @@
#include "async_resp.hpp"
#include "manager_diagnostic_data.hpp"
+#include <boost/asio/error.hpp>
+#include <boost/beast/http/status.hpp>
+#include <boost/system/linux_error.hpp>
#include <nlohmann/json.hpp>
+#include <cstdint>
+#include <limits>
#include <memory>
#include <gtest/gtest.h>
diff --git a/test/redfish-core/lib/power_subsystem_test.cpp b/test/redfish-core/lib/power_subsystem_test.cpp
index 1dfbbeb3ff..39ec3118d5 100644
--- a/test/redfish-core/lib/power_subsystem_test.cpp
+++ b/test/redfish-core/lib/power_subsystem_test.cpp
@@ -1,8 +1,10 @@
#include "async_resp.hpp"
+#include "http_response.hpp"
#include "power_subsystem.hpp"
#include <nlohmann/json.hpp>
+#include <memory>
#include <optional>
#include <string>
diff --git a/test/redfish-core/lib/service_root_test.cpp b/test/redfish-core/lib/service_root_test.cpp
index 78c068d760..3d47221041 100644
--- a/test/redfish-core/lib/service_root_test.cpp
+++ b/test/redfish-core/lib/service_root_test.cpp
@@ -7,7 +7,6 @@
#include <nlohmann/json.hpp>
#include <memory>
-#include <vector>
#include <gmock/gmock.h> // IWYU pragma: keep
#include <gtest/gtest.h> // IWYU pragma: keep
diff --git a/test/redfish-core/lib/system_test.cpp b/test/redfish-core/lib/system_test.cpp
index 481c0df746..0becca8956 100644
--- a/test/redfish-core/lib/system_test.cpp
+++ b/test/redfish-core/lib/system_test.cpp
@@ -1,17 +1,16 @@
-#include "app.hpp"
#include "async_resp.hpp"
-#include "http_request.hpp"
+#include "generated/enums/resource.hpp"
#include "http_response.hpp"
#include "systems.hpp"
-#include <boost/beast/core/string_type.hpp>
-#include <boost/beast/http/message.hpp>
-#include <boost/system/error_code.hpp>
+#include <boost/asio/error.hpp>
+#include <boost/beast/http/status.hpp>
+#include <boost/system/linux_error.hpp>
#include <nlohmann/json.hpp>
#include <memory>
#include <string>
-#include <system_error>
+#include <utility>
#include <vector>
#include <gtest/gtest.h>
diff --git a/test/redfish-core/lib/thermal_subsystem_test.cpp b/test/redfish-core/lib/thermal_subsystem_test.cpp
index 305e29aeee..35df514c59 100644
--- a/test/redfish-core/lib/thermal_subsystem_test.cpp
+++ b/test/redfish-core/lib/thermal_subsystem_test.cpp
@@ -1,8 +1,10 @@
#include "async_resp.hpp"
+#include "http_response.hpp"
#include "thermal_subsystem.hpp"
#include <nlohmann/json.hpp>
+#include <memory>
#include <optional>
#include <string>
diff --git a/test/redfish-core/lib/update_service_test.cpp b/test/redfish-core/lib/update_service_test.cpp
index 6b90aef416..d56d709f5f 100644
--- a/test/redfish-core/lib/update_service_test.cpp
+++ b/test/redfish-core/lib/update_service_test.cpp
@@ -1,6 +1,9 @@
+#include "http_response.hpp"
#include "update_service.hpp"
+#include <optional>
+
#include <gtest/gtest.h>
namespace redfish