mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
fix(apigateway): implement V1 deleteDeployment endpoint and return correct JSON 404 error (#1019)
This commit is contained in:
1 parent
b7cf8b6ebe
commit
2da06840e9
2 files changed
+26
-2
No files matched your search
+16
-2
@@ -336,6 +336,20 @@ class ApiGatewayIntegrationTest {
|
||||
}
|
||||
|
||||
@Test @Order(27)
|
||||
void deleteDeployment() {
|
||||
given()
|
||||
.when().delete("/restapis/" + apiId + "/deployments/" + deploymentId)
|
||||
.then()
|
||||
.statusCode(204);
|
||||
|
||||
given()
|
||||
.when().get("/restapis/" + apiId + "/deployments/" + deploymentId)
|
||||
.then()
|
||||
.statusCode(404)
|
||||
.body("message", notNullValue());
|
||||
}
|
||||
|
||||
@Test @Order(28)
|
||||
void deleteResource() {
|
||||
given()
|
||||
.when().delete("/restapis/" + apiId + "/resources/" + resourceId)
|
||||
@@ -343,7 +357,7 @@ class ApiGatewayIntegrationTest {
|
||||
.statusCode(204);
|
||||
}
|
||||
|
||||
@Test @Order(28)
|
||||
@Test @Order(29)
|
||||
void deleteRestApi() {
|
||||
given()
|
||||
.when().delete("/restapis/" + apiId)
|
||||
@@ -351,7 +365,7 @@ class ApiGatewayIntegrationTest {
|
||||
.statusCode(202);
|
||||
}
|
||||
|
||||
@Test @Order(29)
|
||||
@Test @Order(30)
|
||||
void getDeletedRestApiReturns404() {
|
||||
given()
|
||||
.when().get("/restapis/" + apiId)
|
||||
|
||||
Reference in new issue
Block a user