Skip to content

Feature: add acceptance test to ensure connectors can be opened and immediately closed #134

@alarbada

Description

@alarbada

Feature description

When developing the kinesis connector I got the following error:

  acceptance_test.go:221: err: error deregistering stream consumer arn:aws:kinesis:us-east-1:000000000000:stream/acceptance_2603d625/consumer/conduit-connector-kinesis-source-01HYBHT28ZYD0F7NJHGQRZFRZA:1716223323: operation error Kinesis: DeregisterStreamConsumer, https response error StatusCode: 400, RequestID: 04399833-3065-431e-b7e6-e9914384d65b, api error ResourceInUseException: Consumer None is not in an ACTIVE state

Kinesis doesn't allow deregistering a consumer that is not ready. While this situation is unlikely, the connector should be able to be opened and immediately closed. Testing for that would have prevented this error.

The acceptance tests already test for open - reading / writing - teardown, but not for open - teardown.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions