Feature flags not enabled when running tests #17553
Labels
@aws-cdk/assert
Related to the @aws-cdk/assert package
bug
This issue is a bug.
needs-triage
This issue or PR still needs to be triaged.
What is the problem?
I've noticed that feature flags defined in our
cdk.json
seem to only be in effect when runningcdk
commands such ascdk synth
,cdk diff
, etc. They are not enabled when we run our unittests, which is now causing our unittests to fail (specifically because of #3067, but this would happen with any breaking change introduced by a feature flag).Reproduction Steps
We have the
@aws-cdk/aws-kms:defaultKeyPolicies
feature flag turned on:Note that
defaultKeyPolicies
is enabled when I do acdk synth
:But note how it's not enabled when I run a simple test:
What did you expect to happen?
I expect feature flags defined in
cdk.json
to be enabled when running tests.What actually happened?
See "Reproduction Steps" above for details.
CDK CLI Version
1.129.0 (build fb43f89)
Framework Version
No response
Node.js Version
v14.17.5
OS
Linux
Language
Python
Language Version
Python (3.8.10)
Other information
No response
The text was updated successfully, but these errors were encountered: