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

[CommonScripts] Fix comparison key in ProvidesCommand script #32676

Merged
merged 1 commit into from Feb 2, 2024

Conversation

content-bot
Copy link
Collaborator

Original External PR

external pull request

Contributor

@pl-brault

Contributing to Cortex XSOAR Content

Make sure to register your contribution by filling the contribution registration form

The Pull Request will be reviewed only after the contribution registration form is filled.

Status

  • In Progress
  • Ready
  • In Hold - (Reason for hold)

Related Issues

fixes: link to the issue

Description

When comparing the instance name between the enabled instances and the integration commands , the check was made on the "display" key which wasn't the same as the "brand" key retrieved before in integration_search_res.

Example:
Here is the display:
image

Here is the brand:
image

Must have

  • Tests
  • Documentation

* fix(ProvidesCommand): Fix dict key when comparing command with enabled instances

* fix(ProvidesCommand): modify release note to pass pipeline

* fix(ProvidesCommand): add release note version

* add name in the list

* fix after review

---------

Co-authored-by: Yuval Hayun <70104171+YuvHayun@users.noreply.github.com>
@content-bot content-bot added Contribution Thank you! Contributions are always welcome! docs-approved ready-for-instance-test In contribution PRs, this label will cause a trigger of a build with a modified pack from the PR. Contribution Form Filled Whether contribution form filled or not. Community pending-contributor The PR is pending the response of its creator Xsoar Support Level Indicates that the contribution is for XSOAR supported pack Internal PR labels Feb 2, 2024
Copy link

github-actions bot commented Feb 2, 2024

Coverage

Coverage Report
FileStmtsMissCoverMissing
Packs/CommonScripts/Scripts/ProvidesCommand
   ProvidesCommand.py54885%31–33, 45–47, 68, 74
TOTAL54885% 

Tests Skipped Failures Errors Time
1 0 💤 0 ❌ 0 🔥 1.643s ⏱️

@YuvHayun YuvHayun merged commit 2e0a6a9 into master Feb 2, 2024
43 checks passed
@YuvHayun YuvHayun deleted the contrib/pl-brault_plb-commonscript_bug branch February 2, 2024 12:25
yasta5 pushed a commit that referenced this pull request Feb 4, 2024
…#32676)

* fix(ProvidesCommand): Fix dict key when comparing command with enabled instances

* fix(ProvidesCommand): modify release note to pass pipeline

* fix(ProvidesCommand): add release note version

* add name in the list

* fix after review

---------

Co-authored-by: pl-brault <143391737+pl-brault@users.noreply.github.com>
Co-authored-by: Yuval Hayun <70104171+YuvHayun@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community Contribution Form Filled Whether contribution form filled or not. Contribution Thank you! Contributions are always welcome! docs-approved Internal PR pending-contributor The PR is pending the response of its creator ready-for-instance-test In contribution PRs, this label will cause a trigger of a build with a modified pack from the PR. Xsoar Support Level Indicates that the contribution is for XSOAR supported pack
Projects
None yet
3 participants