Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturRibeiro-CX committed Nov 9, 2024
1 parent 9b52592 commit 662c4d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ CxPolicy[result] {
}

CxPolicy[result] {
some doc in input.document
some docs in input.document
[path, Resources] := walk(docs)

resource := Resources[key]
Expand All @@ -57,7 +57,7 @@ CxPolicy[result] {
not common_lib.valid_key(properties, "NatGatewayId")

result := {
"documentId": doc.id,
"documentId": docs.id,
"resourceType": resource.Type,
"resourceName": cf_lib.get_resource_name(resource, key),
"searchKey": sprintf("%s%s.Properties", [cf_lib.getPath(path), key]),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ CxPolicy[result] {

# if it's not the same namespace pod must be matched explicitly
CxPolicy[result] {
some doc in input.document
some pod in input.document
pod.kind == "Pod"

policyList := [policy | policy := input.document[j]; policy.kind == "NetworkPolicy"]
Expand Down

0 comments on commit 662c4d5

Please sign in to comment.