This repository has been archived by the owner on Jun 5, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add test rules and cluster data for issue #2665 * Update expected violations for new test cluster data * Add expected violation for the new test rule that should generate one That is, "missing nodePool, should generate violation" from the file ke_scanner_test_data.yaml. * Add mock + assertions for correct logging * Check for JMESPathErrors when searching in KE scanner The KE API removes some properties (ie, nodePools) instead of passing back a null value or empty list. This causes unhandled exceptions if the user writes key extraction expression that assumes the field is always defined. Fixes: #2665
- Loading branch information
1 parent
6b1bcef
commit efef493
Showing
3 changed files
with
161 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters