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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Test Cases #1074

Open
Sloane4 opened this issue Apr 15, 2024 · 0 comments
Open

Refactor Test Cases #1074

Sloane4 opened this issue Apr 15, 2024 · 0 comments
Assignees
Labels
enhancement This issue or pull request will add new or improve existing functionality epic A high-level objective issue encompassing multiple issues instead of a specific unit of work Testing This issue or task involves testing the automation tool function
Milestone

Comments

@Sloane4
Copy link
Collaborator

Sloane4 commented Apr 15, 2024

馃挕 Summary

Reduce the need for copying json down the file for each policy. Look into adding test coverage testing & testing keywords.

Motivation and context

For the unit tests, jsons are copied down with singular changes. As policies be come more interdependent with other policies and more complex individually, each test case becomes incredibly long. We should reduce the duplicate jsons and update unit test for current rego capabilities.

Implementation notes

Please provide details for implementation, such as:

  • Create a json or use sample json as base input for unit tests
  • Modify the single value necessary for the unit test
  • Add in rego keywords (test_ok, test_error, test_failure)
  • Add in capability to test unit test coverage
  • Update RunUnitTest.ps1 with new rego test capabilities

Acceptance criteria

How do we know when this work is done?

@Sloane4 Sloane4 added enhancement This issue or pull request will add new or improve existing functionality Testing This issue or task involves testing the automation tool function labels Apr 15, 2024
@Sloane4 Sloane4 added this to the Halibut milestone Apr 15, 2024
@Sloane4 Sloane4 self-assigned this Apr 15, 2024
@Sloane4 Sloane4 added the epic A high-level objective issue encompassing multiple issues instead of a specific unit of work label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This issue or pull request will add new or improve existing functionality epic A high-level objective issue encompassing multiple issues instead of a specific unit of work Testing This issue or task involves testing the automation tool function
Projects
None yet
Development

No branches or pull requests

1 participant