mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-25 16:55:39 +00:00
#67 [CLI,DAEMON] Return proper return codes / status codes
This commit is contained in:
parent
fa7faf9961
commit
f2223552ad
21 changed files with 424 additions and 248 deletions
|
|
@ -1,6 +1,7 @@
|
|||
package de.kosit.validationtool.daemon;
|
||||
|
||||
import static io.restassured.RestAssured.given;
|
||||
import static org.apache.http.HttpStatus.SC_NOT_ACCEPTABLE;
|
||||
import static org.apache.http.HttpStatus.SC_OK;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
@ -41,7 +42,7 @@ public class CheckHandlerIT extends BaseIT {
|
|||
@Test
|
||||
public void testUnknown() throws IOException {
|
||||
try ( final InputStream io = Simple.UNKNOWN.toURL().openStream() ) {
|
||||
given().contentType(APPLICATION_XML).body(toContent(io)).when().post("/").then().statusCode(SC_OK);
|
||||
given().contentType(APPLICATION_XML).body(toContent(io)).when().post("/").then().statusCode(SC_NOT_ACCEPTABLE);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue