Skip to content

Conversation

@arturfalcao
Copy link

Description
This PR addresses the issue of handling feature flags and allowed engines in the JWTMockWrapper and JWTStruct implementations. It includes the following changes:
Added a new mock for GetAllowedEngines to work with different engines set in tests.

Updated the GetAllowedEngines method in JWTStruct to handle feature flags and return the correct allowed engines.
Added unit tests to validate the behavior of the new mock and the updated GetAllowedEngines method.

References
Include supporting link to GitHub Issue/PR number

Testing
This change was tested by adding unit tests for the GetAllowedEngines method and the new mock implementation. The tests cover various scenarios to ensure the correct engines are returned based on the feature flags and JWT token data. All existing tests were run to ensure no regressions were introduced.

@github-actions github-actions bot added the bug Something isn't working label Jan 14, 2025
@arturfalcao arturfalcao self-assigned this Jan 14, 2025
@github-actions
Copy link

github-actions bot commented Jan 14, 2025

Logo
Checkmarx One – Scan Summary & Details7f2c1637-3c5c-4995-a2a8-ab190e9adb90

Great job, no security vulnerabilities found in this Pull Request

cx-ben-alvo
cx-ben-alvo previously approved these changes Jan 16, 2025
@arturfalcao arturfalcao enabled auto-merge January 16, 2025 10:32
@cx-ben-alvo cx-ben-alvo disabled auto-merge January 23, 2025 08:05
@arturfalcao arturfalcao merged commit 8faaeb0 into main Jan 27, 2025
9 of 10 checks passed
@arturfalcao arturfalcao deleted the bug/AST-73370 branch January 27, 2025 11:39
cx-anjali-deore pushed a commit that referenced this pull request Jul 3, 2025
Error message for SCS and Enterprise Secret (AST-73370)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants