Negative Segment value is rejected by the service.
(self, dynamodb_client_no_validation, scan_table)
| 476 | """Scan validation edge cases from recent fixes.""" |
| 477 | |
| 478 | def test_scan_negative_segment(self, dynamodb_client_no_validation, scan_table): |
| 479 | """Negative Segment value is rejected by the service.""" |
| 480 | with pytest.raises(ClientError) as exc_info: |
| 481 | dynamodb_client_no_validation.scan( |
| 482 | TableName=scan_table, |
| 483 | Segment=-1, |
| 484 | TotalSegments=3, |
| 485 | ) |
| 486 | assert exc_info.value.response["Error"]["Code"] == "ValidationException" |
| 487 | |
| 488 | def test_scan_unused_expression_attribute_names(self, dynamodb_client, scan_table): |
| 489 | """Extra ExpressionAttributeNames not referenced in any expression are rejected.""" |