diff --git a/test/server.cpp b/test/server.cpp index 8b0179934..d5e05a652 100644 --- a/test/server.cpp +++ b/test/server.cpp @@ -532,7 +532,33 @@ TEST_F(ServerTest, 404WithBodyTesting)

XYZ is not a valid request for raw content.

-)" } +)" }, + + { /* url */ "/ROOT/raw/zimfile/meta/invalid-metadata", + /* book name */ "zimfile", + /* book title */ "Ray Charles", + /* expected body */ R"( +

Not Found

+

+ The requested URL "/ROOT/raw/zimfile/meta/invalid-metadata" was not found on this server. +

+

+ Cannot find meta entry invalid-metadata +

+)" }, + + { /* url */ "/ROOT/raw/zimfile/content/invalid-article", + /* book name */ "zimfile", + /* book title */ "Ray Charles", + /* expected body */ R"( +

Not Found

+

+ The requested URL "/ROOT/raw/zimfile/content/invalid-article" was not found on this server. +

+

+ Cannot find content entry invalid-article +

+)" }, }; for ( const auto& t : testData ) {