Skip to content

fix(tests/legacy): relax json string requirement#61

Merged
poiana merged 1 commit intofalcosecurity:mainfrom
LucaGuerra:fix/legacy-json-less-strict
Aug 30, 2024
Merged

fix(tests/legacy): relax json string requirement#61
poiana merged 1 commit intofalcosecurity:mainfrom
LucaGuerra:fix/legacy-json-less-strict

Conversation

@LucaGuerra
Copy link
Copy Markdown
Contributor

The TestFalco_Legacy_StdoutOutputJsonStrict was checking if the output contained specific json strings that needed to match character by character. This PR changes it so that it requires only that the json object are equivalent even if the strings are different (e.g. same properties printed in different order)

Signed-off-by: Luca Guerra <luca@guerra.sh>
Copy link
Copy Markdown
Member

@Andreagit97 Andreagit97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@poiana
Copy link
Copy Markdown

poiana commented Aug 30, 2024

LGTM label has been added.

DetailsGit tree hash: ad1fb18971f97f384b9af21aba5f4fc167269c29

@poiana
Copy link
Copy Markdown

poiana commented Aug 30, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Andreagit97, LucaGuerra

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [Andreagit97,LucaGuerra]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Andreagit97
Copy link
Copy Markdown
Member

/hold

@Andreagit97
Copy link
Copy Markdown
Member

not sure if you want to merge it now, unhold it if yes

@LucaGuerra
Copy link
Copy Markdown
Contributor Author

/unhold

@poiana poiana merged commit d259272 into falcosecurity:main Aug 30, 2024
@LucaGuerra LucaGuerra deleted the fix/legacy-json-less-strict branch August 30, 2024 08:18
@LucaGuerra
Copy link
Copy Markdown
Contributor Author

Thanks @Andreagit97 , the current Falco master passes with these modifications so this can already be merged :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants