-
Notifications
You must be signed in to change notification settings - Fork 71
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
YR/-BC-104-New-format-validation/CIAC-10001 #4187
YR/-BC-104-New-format-validation/CIAC-10001 #4187
Conversation
…reated-successfully/CIAC-9913
…reated-successfully/CIAC-9913
…reated-successfully/CIAC-9913
…reated-successfully/CIAC-9913
…reated-successfully/CIAC-9913
…reated-successfully/CIAC-9913
…at-validation/CIAC-10001
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job!
See my comments.
demisto_sdk/commands/validate/validators/BC_validators/BC110_new_required_argument.py
Outdated
Show resolved
Hide resolved
demisto_sdk/commands/validate/validators/BC_validators/BC110_new_required_argument.py
Outdated
Show resolved
Hide resolved
demisto_sdk/commands/validate/validators/BC_validators/BC110_new_required_argument.py
Outdated
Show resolved
Hide resolved
...o_sdk/commands/validate/validators/BC_validators/BC104_have_commands_or_args_name_changed.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gj, minor comments.
@JasBeilin approved from my side.
demisto_sdk/commands/validate/validators/BC_validators/BC110_new_required_argument.py
Outdated
Show resolved
Hide resolved
...o_sdk/commands/validate/validators/BC_validators/BC104_have_commands_or_args_name_changed.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great, think about making it simpler.
...o_sdk/commands/validate/validators/BC_validators/BC104_have_commands_or_args_name_changed.py
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, See my comments.
@@ -54,7 +54,8 @@ | |||
|
|||
|
|||
# Create a new content item with 3 commands with unique names. all commands have only 1 argument except the third command which has 2 arguments. | |||
generic_integration_with_3_commands_and_4_args = create_integration_object( | |||
|
|||
GENERIC_INTEGRATION_WITH_3_COMMANDS_AND_4_ARGS = create_integration_object( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the number of args & command important here? cant we call it just DUMMY_INTEGRATION?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it helps to understand the test, especially when i am adding a new arg, so it is clear to know what did we have before and what we have now.
Related Issues
fixes: https://jira-dc.paloaltonetworks.com/browse/CIAC-10001
fixes: https://jira-dc.paloaltonetworks.com/browse/CIAC-10114
fixes: https://jira-dc.paloaltonetworks.com/browse/CIAC-9694
Description
Convert half of BC 104 to the new format. This validation ensures that the names of existing commands or arguments have not been changed.
Furthermore, a new validation, BC110, was introduced following the split of BC104. This validation ensures that non-required arguments are not converted into required ones and that new arguments cannot be made mandatory.