Skip to content

check options param when submitting a job#36

Merged
yohm merged 1 commit intomasterfrom
fix_host_parameters
Mar 20, 2025
Merged

check options param when submitting a job#36
yohm merged 1 commit intomasterfrom
fix_host_parameters

Conversation

@yohm
Copy link
Copy Markdown
Member

@yohm yohm commented Mar 20, 2025

This pull request includes changes to improve parameter validation in the Submitter class and adds corresponding tests to ensure the new functionality works correctly. The most important changes include modifying the verify_parameter_format method to check for valid parameter values and adding new test cases to submitter_spec.rb.

Improvements to parameter validation:

  • lib/submitter.rb: Modified the verify_parameter_format method to include checks for both parameter format using regular expressions and valid parameter values from a predefined list of options.

Enhancements to test coverage:

  • spec/submitter_spec.rb: Added new test cases to check the format using regular expressions, skip the format check when a format is not provided, and raise an error when a parameter value is not included in the predefined options.

@yohm yohm merged commit 9064226 into master Mar 20, 2025
2 checks passed
@yohm yohm deleted the fix_host_parameters branch March 20, 2025 02:55
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.

1 participant