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

Add validation to engine dictionary #915

Merged
merged 2 commits into from
Jan 23, 2025

Conversation

bregwin
Copy link
Contributor

@bregwin bregwin commented Nov 13, 2024

Fixes #773

This adds a local function to see if custom_values dictionary only contains strings. It will throw an error if the dictionary is not valid.
I have also added a test case for testing the code change.

Please let me know if there are any changes to be made, as it is my first time contributing to this codebase.

@bregwin
Copy link
Contributor Author

bregwin commented Nov 13, 2024

Unfortunately, I couldn't run the unit tests due to the following error, but I tested it separately.

image

I have installed the packages from requirements.txt #Resolved

@marina-p
Copy link
Contributor

Hi, thank you for adding this validation. The PR and test looks good. We've had CI checks broken for a few weeks, I just re-enabled them and everything including the new test is passing, so I'll go ahead and merge this: https://github.com/microsoft/restler-fuzzer/actions/runs/12292021287. For troubleshooting running tests locally, what was the exact command/directory/environment?


In reply to: 2473982009

marina-p
marina-p previously approved these changes Dec 12, 2024
Copy link
Contributor

@marina-p marina-p left a comment

Choose a reason for hiding this comment

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

:shipit:

@marina-p marina-p force-pushed the validate-dictionary branch from dc85c39 to e18d2b2 Compare December 12, 2024 19:45
Copy link
Contributor

@marina-p marina-p left a comment

Choose a reason for hiding this comment

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

:shipit:

@marina-p marina-p force-pushed the validate-dictionary branch from 2384b69 to 306b9f1 Compare January 23, 2025 06:53
@marina-p marina-p merged commit 35f07fb into microsoft:main Jan 23, 2025
9 checks passed
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

Successfully merging this pull request may close these issues.

The engine should validate the dictionary values are all quoted
2 participants