mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
fix(backup): return the deleted plan's id, ARN, version and deletion date from DeleteBackupPlan (#7276)
This commit is contained in:
1 parent
3cc7551613
commit
1f0b4cffca
3 files changed
+32
-6
No files matched your search
+21
-2
@@ -582,7 +582,7 @@ class BackupIntegrationTest {
|
||||
|
||||
given().header("Authorization", AUTH)
|
||||
.when().delete("/backup/plans/" + otherPlanId)
|
||||
.then().statusCode(204);
|
||||
.then().statusCode(200);
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -650,12 +650,31 @@ class BackupIntegrationTest {
|
||||
@Test
|
||||
@Order(81)
|
||||
void deleteBackupPlan() {
|
||||
String versionId = given()
|
||||
.header("Authorization", AUTH)
|
||||
.when()
|
||||
.get("/backup/plans/" + planId + "/")
|
||||
.then()
|
||||
.statusCode(200)
|
||||
.extract().path("VersionId");
|
||||
|
||||
given()
|
||||
.header("Authorization", AUTH)
|
||||
.when()
|
||||
.delete("/backup/plans/" + planId)
|
||||
.then()
|
||||
.statusCode(204);
|
||||
.statusCode(200)
|
||||
.body("BackupPlanId", equalTo(planId))
|
||||
.body("BackupPlanArn", endsWith(":backup-plan:" + planId))
|
||||
.body("VersionId", equalTo(versionId))
|
||||
.body("DeletionDate", notNullValue());
|
||||
|
||||
given()
|
||||
.header("Authorization", AUTH)
|
||||
.when()
|
||||
.get("/backup/plans/" + planId + "/")
|
||||
.then()
|
||||
.statusCode(400);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in new issue
Block a user