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

changed test to correspond to the latest changes on xsoar8 #31531

Merged
merged 8 commits into from Dec 18, 2023

Conversation

ShahafBenYakir
Copy link
Contributor

@ShahafBenYakir ShahafBenYakir commented Dec 18, 2023

Status

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

Related Issues

fixes: https://jira-dc.paloaltonetworks.com/browse/XSUP-31482

Description

In XSOAR8 getIncidents always returns total:0 (breaking changes), so we cannot use it in our loop. Instead, we check every loop if the page contains exactly 100 (page size) results, if so it means we might have a next page. We finish the loop when either we have pulled all results or when the number of results is smaller than 100.

Must have

  • Tests

@ShahafBenYakir
Copy link
Contributor Author

ShahafBenYakir commented Dec 18, 2023

@JudahSchwartz
Copy link
Contributor

you only changed a test file here?

Copy link
Contributor

@JudahSchwartz JudahSchwartz left a comment

Choose a reason for hiding this comment

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

📃 🚀 📟

@ShahafBenYakir
Copy link
Contributor Author

code.pan.run is failing on a known issue with cloud tenants' installation of packs, see this.

@ShahafBenYakir ShahafBenYakir merged commit 10bf8d8 into master Dec 18, 2023
33 of 35 checks passed
@ShahafBenYakir ShahafBenYakir deleted the search-incidents-fix branch December 18, 2023 17:19
sapirshuker pushed a commit that referenced this pull request Dec 21, 2023
* changed test to correspond to the latest changes on xsoar8

* Apply ruff

* Changed loop to work without total

* Changed loop to work without total

* Bumped docker

* fixed test

* fixed test once more
maimorag pushed a commit that referenced this pull request Dec 31, 2023
* changed test to correspond to the latest changes on xsoar8

* Apply ruff

* Changed loop to work without total

* Changed loop to work without total

* Bumped docker

* fixed test

* fixed test once more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants