Webserver Add 404 error support and test.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
NADAL Jean-Baptiste
2020-02-20 19:50:12 +01:00
parent af35811644
commit db0c855300
3 changed files with 5 additions and 2 deletions

View File

@@ -635,5 +635,8 @@ TEST("Rest - Test Web server part.\t")
ASSERT_EQUAL_INT(ret, 0);
}
ret = exec_request(kput_method, "http://localhost:" kserver_port "/not_found.html", 404, "", "<html><head><title>404 Not Found</title></head><body><h1>404 Not Found</h1></body></html>", false);
ASSERT_EQUAL_INT(ret, 0);
restd_server_free(rest_server);
}