Skip to content

test: assert CDK warning on stderr in package/deploy/validate integ t… - #9175

Merged
roger-zhangg merged 1 commit into
aws:json-integ-fixfrom
madhavdonthula1:fix/cdk-warning-stderr-tests
Aug 12, 2026
Merged

roger-zhangg merged 1 commit into
aws:json-integ-fixfrom
madhavdonthula1:fix/cdk-warning-stderr-tests

Conversation

@madhavdonthula1

Copy link
Copy Markdown
Contributor

…ests

The output json integration (#9172) moved the CDK not-supported warning from stdout to stderr so it does not pollute the machine-readable --output json stdout stream. Three integration tests still asserted the warning on stdout and now fail on develop:

  • package/test_package_command_zip.py::test_package_logs_warning_for_cdk_project
  • deploy/test_deploy_command.py::test_deploy_logs_warning_with_cdk_project
  • validate/test_validate_command.py::test_validate_logs_warning_for_cdk_project

Update each to assert the warning on stderr (capturing stderr in the package test's Popen). Test-only change; product behavior is unchanged.

Which issue(s) does this change fix?

Why is this change necessary?

How does it address the issue?

What side effects does this change have?

Mandatory Checklist

PRs will only be reviewed after checklist is complete

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

…ests

The output json integration (aws#9172) moved the CDK not-supported warning from
stdout to stderr so it does not pollute the machine-readable --output json
stdout stream. Three integration tests still asserted the warning on stdout and
now fail on develop:
 - package/test_package_command_zip.py::test_package_logs_warning_for_cdk_project
 - deploy/test_deploy_command.py::test_deploy_logs_warning_with_cdk_project
 - validate/test_validate_command.py::test_validate_logs_warning_for_cdk_project

Update each to assert the warning on stderr (capturing stderr in the package
test's Popen). Test-only change; product behavior is unchanged.
@madhavdonthula1
madhavdonthula1 requested a review from a team as a code owner August 12, 2026 22:57
@github-actions github-actions Bot added pr/external stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at. labels Aug 12, 2026
@roger-zhangg
roger-zhangg merged commit 5bf8a83 into aws:json-integ-fix Aug 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr/external stage/needs-triage Automatically applied to new issues and PRs, indicating they haven't been looked at.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants