1 #include "app.hpp"
2 #include "async_resp.hpp"
3 #include "event_service_manager.hpp"
4 #include "health.hpp"
5 #include "log_services.hpp"
6 
7 #include <nlohmann/json.hpp>
8 
9 #include <gmock/gmock.h>
10 #include <gtest/gtest.h>
11 
12 namespace redfish
13 {
14 namespace
15 {
16 
17 TEST(LogServicesDumpServiceTest, LogServicesInvalidDumpServiceGetReturnsError)
18 {
19     auto shareAsyncResp = std::make_shared<bmcweb::AsyncResp>();
20     getDumpServiceInfo(shareAsyncResp, "Invalid");
21     EXPECT_EQ(shareAsyncResp->res.result(),
22               boost::beast::http::status::internal_server_error);
23 }
24 
25 } // namespace
26 } // namespace redfish
27