Skip to content

[Bug] TestCreateTable.test_create_table_name_too_short #83

@pdf-amzn

Description

@pdf-amzn

Describe the bug

devtools/run-tests --extenddb --pytest has one failure in v0.1.0

=================================== FAILURES ===================================
_______________ TestCreateTable.test_create_table_name_too_short _______________

self = <test_table_operations.TestCreateTable object at 0xffff808023c0>
dynamodb_client = <botocore.client.DynamoDB object at 0xffff807f6690>

    def test_create_table_name_too_short(self, dynamodb_client):
        # botocore validates table name min length (3) client-side, raising
        # ParamValidationError before the request reaches the server.
        from botocore.exceptions import ParamValidationError
    
        with pytest.raises(ParamValidationError):
>           dynamodb_client.create_table(
                TableName="ab",
                AttributeDefinitions=[{"AttributeName": "pk", "AttributeType": "S"}],
                KeySchema=[{"AttributeName": "pk", "KeyType": "HASH"}],
                BillingMode="PAY_PER_REQUEST",
            )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions