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

Create GH Action Validation #3

Open
StaleLoafOfBread opened this issue Dec 24, 2023 · 0 comments
Open

Create GH Action Validation #3

StaleLoafOfBread opened this issue Dec 24, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@StaleLoafOfBread
Copy link
Owner

To mitigate the risk of introducing bug, we should add a GitHub Action that runs the code with a known input and output. That will allow for an automated validation. This would also help with issues such as #2.

To facilitate this, we may need to add a feature to write the found key to a file.

Test cases:

Input Pass Condition Description
Bad Input Found Key file is empty / non existent Verifies we didn't accidently hard code the example output
Perfect Input Found Key is correct Verifies that the simplest use case works though it is highly unlikely this use case would happen in the wild. Also verifies that it actually tests the first possible key and doesn't pre-maturely rotates.
Good input that requires each key element to rotate at least once Found Key is correct Verifies that the rotation code works as expected
Good input that requires each key element to rotate multiple times Found Key is correct More rotation verification

This ideally would also be tested against various versions of the driver and on both Windows and Linux.

@StaleLoafOfBread StaleLoafOfBread added the enhancement New feature or request label Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant