| #include "app.hpp" |
| #include "async_resp.hpp" |
| #include "chassis.hpp" |
| #include "http_request.hpp" |
| #include "http_response.hpp" |
| #include "managed_store_http.hpp" |
| #include "test/redfish-core/lib/snapshot_fixture.hpp" |
| |
| #include <nlohmann/json.hpp> |
| |
| #include <gmock/gmock.h> |
| #include <gtest/gtest.h> |
| |
| namespace redfish |
| { |
| namespace |
| { |
| |
| TEST_F(SnapshotFixture, SnapshotSizeInBytesIsSet) |
| { |
| managedStore::ManagedObjectStoreHttp::requestRoutesManagedStoreDebug( |
| CreateRequest(), share_async_resp_); |
| |
| nlohmann::json& json = share_async_resp_->res.jsonValue; |
| EXPECT_TRUE(json.contains("snapshot_size_in_bytes")); |
| } |
| |
| } // namespace |
| } // namespace redfish |