moto/tests/test_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 Port test suite from nose to pytest. 2020-11-10 08:23:44 +01:00
test_redshift.py Fix: ClusterType, NumberOfNodes not validated when modifying Redshift cluster (#3513) 2020-12-04 13:22:19 +00:00
test_server.py Add coverage for ContentType=JSON server requests 2020-11-24 03:29:52 -08:00