diff --git a/test/server.cpp b/test/server.cpp index 525eb69c..9e2a3a80 100644 --- a/test/server.cpp +++ b/test/server.cpp @@ -386,6 +386,39 @@ TEST_F(ServerTest, 404WithBodyTesting)

)" }, + { /* url */ "/ROOT/catalog/", + /* expected body */ R"( +

Not Found

+

+ The requested URL "/ROOT/catalog/" was not found on this server. +

+

+ //EOLWHITESPACEMARKER +

+)" }, + + { /* url */ "/ROOT/catalog/invalid_endpoint", + /* expected body */ R"( +

Not Found

+

+ The requested URL "/ROOT/catalog/invalid_endpoint" was not found on this server. +

+

+ //EOLWHITESPACEMARKER +

+)" }, + + { /* url */ "/ROOT/invalid-book/whatever", + /* expected body */ R"( +

Not Found

+

+ The requested URL "/ROOT/invalid-book/whatever" was not found on this server. +

+

+ Make a full text search for whatever +

+)" }, + { /* url */ "/ROOT/raw/no-such-book/meta/Title", /* expected body */ R"(

Not Found