Skip to content

Conversation

valerena
Copy link
Contributor

@valerena valerena commented Oct 4, 2025

MSK tests are created more resources when they start polling (and the Topic we're connecting from doesn't even exist), so let's create the events with Enabled: false, so the polling doesn't actually start.

Issue #, if available

Problems seen in our integration testing infrastructure.

Description of changes

  • Add Enabled: false to MSK templates in integration tests
  • Add Enabled to the schema for MSK. Even though this property is supported, it wasn't part of the schema.
  • Adding s3:putObject permissions to the test with an S3 destination for its event (function_with_msk_trigger_and_s3_onfailure_events_destinations.yaml).

Description of how you validated changes

  • pytest --no-cov integration/combination/test_function_with_msk.py -vv

Checklist

Examples?

Please reach out in the comments if you want to add an example. Examples will be
added to sam init through aws/aws-sam-cli-app-templates.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

MSK tests are created more resources when they start polling (and the Topic we're connecting
from doesn't even exist), so let's create the events with `Enabled: false`, so the polling
doesn't actually start.
@valerena valerena requested a review from a team as a code owner October 4, 2025 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant