Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test parser against various policy sources #75

Open
4 tasks done
vgramer opened this issue Dec 28, 2020 · 2 comments
Open
4 tasks done

test parser against various policy sources #75

vgramer opened this issue Dec 28, 2020 · 2 comments

Comments

@vgramer
Copy link
Member

vgramer commented Dec 28, 2020

Description

There is already a lot of tests on the parser but several bugs in the grammar have been found (#74 #67 #64 #59 ). AFAIK there is no way to be sure at 100% that parser is compliant but we can test it against various policy sources to try to find bug

Policy sources:

If you find more relevant sources, please comment on this issue.

TODO

  1. brut force approach, just test the parser against policy to try to find bugs
  2. improve test suite by adding "cases" that are currently valid for the parser but include in tests
@anderseknert
Copy link
Member

Some quirky functions and more here https://github.com/anderseknert/opal :)

@vgramer
Copy link
Member Author

vgramer commented Dec 31, 2020

I have tested the parser against the different projects.

Test Results

145 files have been tested. 5 are not compliant with the parser but should be.

open-policy-agent/contrib

Parsing fails on the following files:

open-policy-agent/conftest

Tests Ok

open-policy-agent/gatekeeper-library

Tests Ok

anderseknert/opal

Parsing fails on the following files:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants