xref: /openbmc/bmcweb/test/redfish-core/lib/log_services_dump_test.cpp (revision 40e9b92ec19acffb46f83a6e55b18974da5d708e)
1 // SPDX-License-Identifier: Apache-2.0
2 // SPDX-FileCopyrightText: Copyright OpenBMC Authors
3 #include "async_resp.hpp"
4 #include "log_services.hpp"
5 
6 #include <boost/beast/http/status.hpp>
7 
8 #include <memory>
9 
10 #include <gtest/gtest.h>
11 
12 namespace redfish
13 {
14 namespace
15 {
16 
TEST(LogServicesDumpServiceTest,LogServicesInvalidDumpServiceGetReturnsError)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