The requested URL "/ROOT/catalog/" was not found on this server.
@@ -478,7 +536,7 @@ TEST_F(ServerTest, 404WithBodyTesting)
)" },
{ /* url */ "/ROOT/catalog/invalid_endpoint",
- /* expected body */ R"(
+ expected_body==R"(
Not Found
The requested URL "/ROOT/catalog/invalid_endpoint" was not found on this server.
@@ -489,7 +547,7 @@ TEST_F(ServerTest, 404WithBodyTesting)
)" },
{ /* url */ "/ROOT/invalid-book/whatever",
- /* expected body */ R"(
+ expected_body==R"(
Not Found
The requested URL "/ROOT/invalid-book/whatever" was not found on this server.
@@ -500,9 +558,9 @@ TEST_F(ServerTest, 404WithBodyTesting)
)" },
{ /* url */ "/ROOT/zimfile/invalid-article",
- /* book name */ "zimfile",
- /* book title */ "Ray Charles",
- /* expected body */ R"(
+ book_name=="zimfile" &&
+ book_title=="Ray Charles" &&
+ expected_body==R"(
Not Found
The requested URL "/ROOT/zimfile/invalid-article" was not found on this server.
@@ -513,7 +571,7 @@ TEST_F(ServerTest, 404WithBodyTesting)
)" },
{ /* url */ R"(/ROOT/">