Repository navigation
Conversation
afsuyadi
requested review from
Akshat0694,
arunim2405 and
refeed
as code owners
October 16, 2026 15:31
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
What changes are being made?
I add some unit tests for Kubernetes with 4 cases:
a.
test_kind_not_found: Ask the handler for aConfigMap, butinput.ymlhas noConfigMapin it.-> Expects: an error ("kind:ConfigMap is not found") plus a ProviderError with severity_value == 1.
b.
test_plain_path: Asks formetadata.nameon the Role resource (a path with no *), and there is exactly oneRole.-> Expects: a single plain value back,
"access-role", not wrapped in a list.c.
test_wildcard_path: Asks forspec.selector.matchLabels.*on theDeploymentresource. The*symbol means "give me every value at this level".-> Expects: a list of all matched values,
["wfs-demo", "wfs-demp"].d.
test_missing_attribute: Asks for metadata.labels on RoleBinding, but that resource has no labels key at all.-> Expects:
None. Proving the handler doesn't crash on a missing field, it just reports "nothing here".Which issues or tickets does this PR close or relate to?
Related issue: fixes #405
Type of Change
Checklist
Screenshots or Recordings (if applicable)
Additional Information