Redshift Data

Implementation details for API redshift-data

Coverage Overview

Redshift Data is supported by LocalStack only in the pro image.

AvailabilityTesting*
OperationImplementedImageInternal Test SuiteExternal Test SuiteTerraform ValidatedAWS ValidatedSnapshot TestedDetails
BatchExecuteStatement
CancelStatement
DescribeStatement✔️pro✔️Show Tests
DescribeTable✔️pro✔️Show Tests
ExecuteStatement✔️pro✔️✔️✔️Show Tests
GetStatementResult✔️pro✔️Show Tests
GetStatementResultV2
ListDatabases✔️pro✔️Show Tests
ListSchemas
ListStatements
ListTables✔️pro✔️Show Tests

Terminology

  • Internal Test Suite: tested by LocalStack's internal integration test suite
  • External Test Suite: covered by an external integration test suite, that runs against LocalStack
  • Terraform Validated: operation tested with Terraform
  • AWS Validated: the integration test that includes this operation call was validated against AWS
  • Snapshot Tested: the operation is part of a snapshot parity test, which verifies the responses by LocalStack and AWS are the same

Testing Details

This section gives an overview about the internal integration test suite and the specific test cases that recorded the API call.

How to read the test details?

For each operation we put up a list of the related integration test cases.
Those operation calls have been recorded during the execution of the outlined test cases. Some calls might be internal, i.e., they are not explicitly called in the test, but are triggered implicitly by the LocalStack framework.

  • Parameters: The tests are ordered by the parameters used, which are highlighted in bold.
  • Test Details: LocalStack Community or LocalStack Pro indicates where the test originates. For each test you see:
    • test name
    • status code returned (which is the expected one for the test case)
    • information about validation:
      • AWS validated the test is validated against AWS, meaning it run successfully against real AWS as well
      • Snapshot Tested this is a snapshot parity test, meaning the responses are validated against AWS


DescribeStatement

Parameters: Id
  • LocalStack Pro
    • test_firehose_redshift_as_target LocalStack Pro: tests/aws/services/firehose/test_firehose.py::TestFirehoseIntegration::test_firehose_redshift_as_target HTTP Status Code: 200
    • test_create_cluster LocalStack Pro: tests/aws/services/redshift/test_redshift.py::TestRedshift::test_create_cluster HTTP Status Code: 200

DescribeTable

Parameters: ClusterIdentifier, Database, Table
  • LocalStack Pro
    • test_create_cluster LocalStack Pro: tests/aws/services/redshift/test_redshift.py::TestRedshift::test_create_cluster HTTP Status Code: 200

ExecuteStatement

Parameters: ClientToken, ClusterIdentifier, Database, Parameters, Sql
  • LocalStack Pro
    • test_kinesis_firehose_redshift LocalStack Pro: tests/aws/scenario/kinesis_firehose_redshift/test_kinesis_firehose_redshift.py::TestKinesisFirehoseScenario::test_kinesis_firehose_redshift HTTP Status Code: 200 AWS validated Snapshot Tested
    • test_firehose_redshift_as_target LocalStack Pro: tests/aws/services/firehose/test_firehose.py::TestFirehoseIntegration::test_firehose_redshift_as_target HTTP Status Code: 200
Parameters: ClientToken, ClusterIdentifier, Database, Sql
  • LocalStack Pro
    • test_firehose_redshift_as_target LocalStack Pro: tests/aws/services/firehose/test_firehose.py::TestFirehoseIntegration::test_firehose_redshift_as_target HTTP Status Code: 200
    • test_create_cluster LocalStack Pro: tests/aws/services/redshift/test_redshift.py::TestRedshift::test_create_cluster HTTP Status Code: 200

GetStatementResult

Parameters: Id
  • LocalStack Pro
    • test_firehose_redshift_as_target LocalStack Pro: tests/aws/services/firehose/test_firehose.py::TestFirehoseIntegration::test_firehose_redshift_as_target HTTP Status Code: 200
    • test_create_cluster LocalStack Pro: tests/aws/services/redshift/test_redshift.py::TestRedshift::test_create_cluster HTTP Status Code: 200

ListDatabases

Parameters: ClusterIdentifier, Database
  • LocalStack Pro
    • test_create_cluster LocalStack Pro: tests/aws/services/redshift/test_redshift.py::TestRedshift::test_create_cluster HTTP Status Code: 200
    • test_enforce_policy_redshift LocalStack Pro: tests/aws/services/iam/test_iam_enforcement.py::TestIAMEnforcementIdentityBasedPolicies::test_enforce_policy_redshift HTTP Status Code: 400 (ValidationException)
    • test_enforce_policy_redshift LocalStack Pro: tests/aws/services/iam/test_iam_enforcement.py::TestIAMEnforcementIdentityBasedPolicies::test_enforce_policy_redshift HTTP Status Code: 400 (AccessDeniedException)

ListTables

Parameters: ClusterIdentifier, Database
  • LocalStack Pro
    • test_create_cluster LocalStack Pro: tests/aws/services/redshift/test_redshift.py::TestRedshift::test_create_cluster HTTP Status Code: 200