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

Refactor test data for constraints for conflicting test requirements #691

Closed
8 tasks done
aj-stein-gsa opened this issue Sep 13, 2024 · 7 comments · Fixed by #700
Closed
8 tasks done

Refactor test data for constraints for conflicting test requirements #691

aj-stein-gsa opened this issue Sep 13, 2024 · 7 comments · Fixed by #700
Assignees

Comments

@aj-stein-gsa
Copy link
Contributor

aj-stein-gsa commented Sep 13, 2024

This is a ...

improvement - something could be better

This relates to ...

  • the FedRAMP OSCAL Validations

User Story

As a FedRAMP developer, to better add or change tests for the constraints, I would like a tests to be able to effectively run with the right amount of test data, especially when two or more tests have conflicting test requirements that cannot exist (or not exist) in a singular test data file.

Goals

  • Make tests and test data more manageable
  • Make tests and their state operate independently
  • Limit cognitive load and minimize conflicts (cognitive, tooling issues a la git merge) to reduce friction on development and maintenance of rules

Dependencies

N/A

Acceptance Criteria

Once the second sublist is complete, this architecture decision will be complete and read to merge.

Other information

Today, the FR Automation Team devs had a meeting and posed an interesting challenge with the tests as they exist today in the feature branch, soon to be develop branch tests. When performing negative tests when an assembly or field should not exist, and an improper value must be tested, having all the tests target a single exhaustive list of invalid test vectors in one large SSP file exhibits certain challenges. We have decided to review this approach, consider alternative options, and act accordingly.

@aj-stein-gsa
Copy link
Contributor Author

@Gabeblis thanks for volunteering to pick this one up. I hope the goals and background are clear for the ADR portion of this.

@Gabeblis
Copy link

@Gabeblis thanks for volunteering to pick this one up. I hope the goals and background are clear for the ADR portion of this.

Thank you!

@Gabeblis Gabeblis linked a pull request Sep 18, 2024 that will close this issue
7 tasks
@aj-stein-gsa aj-stein-gsa moved this from 🔖 Ready to 👀 In review in FedRAMP Automation Sep 20, 2024
@aj-stein-gsa aj-stein-gsa moved this from 👀 In review to ✅ Done in FedRAMP Automation Sep 20, 2024
@aj-stein-gsa aj-stein-gsa moved this from ✅ Done to 👀 In review in FedRAMP Automation Sep 20, 2024
@aj-stein-gsa aj-stein-gsa moved this from 👀 In review to 🔖 Ready in FedRAMP Automation Sep 20, 2024
@aj-stein-gsa
Copy link
Contributor Author

aj-stein-gsa commented Sep 20, 2024

The refactoring of the scripts in the test infrastructure is ready to move forward since #710 proved we can have a lot of broken tests that are hard to track. #690 should be ready for final review integration if work on it is complete.

/cc @wandmagic for awareness

@aj-stein-gsa aj-stein-gsa moved this from 🔖 Ready to 🏗 In progress in FedRAMP Automation Sep 20, 2024
@aj-stein-gsa
Copy link
Contributor Author

And @Gabeblis, thanks for working through this and offering to pick up the "deprecate use of ALL-INVALID.xml" tasks to bring this to a close. @wandmagic, let us know when the updated test scaffolding is completely ready for final review (not urgent, ping Monday or early next week).

Have a good weekend, y'all. 🫡 👋

@wandmagic
Copy link
Collaborator

I think #690 could use a good review including testing of the dev-constraint test. according to my tests it seems to work pretty good @Gabeblis feel free to check it out to see if it meets the needs of the ADR. I've allowed people to still have the option to use all-invalid but marked the option as (deprecated), the default option is to generate a new XML invalid based on the constraint context

@Gabeblis
Copy link

I think #690 could use a good review including testing of the dev-constraint test. according to my tests it seems to work pretty good @Gabeblis feel free to check it out to see if it meets the needs of the ADR. I've allowed people to still have the option to use all-invalid but marked the option as (deprecated), the default option is to generate a new XML invalid based on the constraint context

Awesome, I'll start messing with it now. I'll aim to give you some feedback later today.

@aj-stein-gsa
Copy link
Contributor Author

It seems we should have closed this issue before. I had reviewed the relevant PRs long ago and things are looking good now. One of us should have closed it sooner.

@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in FedRAMP Automation Oct 24, 2024
@aj-stein-gsa aj-stein-gsa moved this from ✅ Done to 🔍 Active Objectives and Issues in FedRAMP Automation Oct 24, 2024
@aj-stein-gsa aj-stein-gsa moved this from 🔍 Active Objectives and Issues to 🚢 Ready to Ship in FedRAMP Automation Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants