#include "app.hpp" #include "redfish.hpp" #include #include #include #include #include namespace redfish { namespace { using ::testing::EndsWith; TEST(Redfish, PathsShouldValidate) { auto io = std::make_shared(); crow::App app(io); RedfishService redfish(app); app.validate(); for (const std::string* route : app.getRoutes()) { ASSERT_NE(route, nullptr); EXPECT_THAT(*route, EndsWith("/")); } } } // namespace } // namespace redfish