moto/moto/redshift
Brian Pandola dcd034045b
Fix: ClusterType, NumberOfNodes not validated when modifying Redshift cluster (#3513)
By definition, `single-node` clusters can only consist of 1 node. Likewise,
`multi-node` clusters must have 2 or more nodes.

* Ensure `ClusterType` parameter is either `multi-node` or `single-node`.
* Ensure proper validation of `NumberOfNodes` parameter based on `ClusterType`
  parameter.
* Fix existing test case that incorrectly allowed a `multi-node` cluster to
  consist of 1 node.
* Add dedicated test for resizing a cluster from `single-node` to `multi-node`
  and back again.

Behavior and error messages have been verified against a real AWS backend.
2020-12-04 13:22:19 +00:00
..
__init__.py Run black on moto & test directories. 2019-10-31 10:36:05 -07:00
exceptions.py Add check for UnknownSnapshotCopyRegionFault error 2020-11-24 03:29:52 -08:00
models.py Fix: ClusterType, NumberOfNodes not validated when modifying Redshift cluster (#3513) 2020-12-04 13:22:19 +00:00
responses.py Run black on moto & test directories. 2019-10-31 10:36:05 -07:00
urls.py Run black on moto & test directories. 2019-10-31 10:36:05 -07:00
utils.py Add basic CRUD. 2014-11-22 14:03:09 -05:00