mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 15:49:33 -05:00
fix(rds): accept a ModifyDBSnapshot that names nothing to change (#8633)
ModifyDBSnapshot refused a request naming neither EngineVersion nor OptionGroupName with InvalidParameterCombination, "At least one snapshot attribute must be specified.", a message AWS does not use. The model requires only DBSnapshotIdentifier, and neither the API reference nor the User Guide's snapshot upgrade pages tie any error to a request with nothing to change, so such a request now returns the snapshot unchanged. A missing snapshot and one that is not available are still refused as before. The RDS docs record this as Floci's reading of an undocumented case. Closes #4083
This commit is contained in:
1 parent
a35fcfd9da
commit
16b0b516a0
4 files changed
+28
-10
No files matched your search
+2
@@ -628,6 +628,8 @@ class RdsControlPlaneTest {
|
||||
.engineVersion("16.4"))
|
||||
.dbSnapshot();
|
||||
assertThat(modified.engineVersion()).isEqualTo("16.4");
|
||||
DBSnapshot unchanged = rds.modifyDBSnapshot(b -> b.dbSnapshotIdentifier(snapshotName)).dbSnapshot();
|
||||
assertThat(unchanged.engineVersion()).isEqualTo("16.4");
|
||||
|
||||
DBSnapshot deleted = rds.deleteDBSnapshot(b -> b.dbSnapshotIdentifier(snapshotName)).dbSnapshot();
|
||||
assertThat(deleted.status()).isEqualTo("deleted");
|
||||
|
||||
Reference in new issue
Block a user