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