Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ses): make test insensitive to an irrelevant env var #2403

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

erights
Copy link
Contributor

@erights erights commented Aug 10, 2024

Closes: #XXXX
Refs: #2383

Description

Of the various property override tests, the ones testing the default 'moderate' setting were calling lockdown without an overrideTaming option, counting on it to default to 'moderate'. However, if run locally in an environment where the environment variable LOCKDOWN_OVERRIDE_TAMING was set to something else, the test would pointlessly misbehave.

This PR merely sets the option explicitly for those cases, so the tests for the 'moderate' case are as insensitive to environment variables as the tests for the other cases.

Security Considerations

none

Scaling Considerations

none

Documentation Considerations

none

Testing Considerations

The point. The code before this PR would always work correctly under CI. But the test may pointless fail locally depending on the developers environment variable settings.

Compatibility Considerations

none

Upgrade Considerations

none

@erights erights self-assigned this Aug 10, 2024
@erights erights requested a review from kriskowal August 10, 2024 02:09
@erights erights force-pushed the markm-tests-insensitive-to-env-vars branch 3 times, most recently from 3853cc7 to 047e114 Compare August 16, 2024 21:29
@erights erights force-pushed the markm-tests-insensitive-to-env-vars branch from 047e114 to f1303f8 Compare August 22, 2024 00:32
@erights erights enabled auto-merge (squash) August 22, 2024 00:33
@erights erights disabled auto-merge August 22, 2024 00:37
@erights erights merged commit 8fc0ef7 into master Aug 22, 2024
17 checks passed
@erights erights deleted the markm-tests-insensitive-to-env-vars branch August 22, 2024 00:45
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.

2 participants