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

aws: fix GuardDuty API call parameter #7785

Merged
merged 2 commits into from
Sep 13, 2023
Merged

aws: fix GuardDuty API call parameter #7785

merged 2 commits into from
Sep 13, 2023

Conversation

efd6
Copy link
Contributor

@efd6 efd6 commented Sep 13, 2023

What does this PR do?

The AWS documentation specifies that the maxResults parameter be
droopingCamelCase, while we are using CamelCase. This results in API
requests being rejected with the following error

{
  "message": "The request is rejected because the JSON could not be processed.",
  "__type": "InvalidInputException"
}

Also re-enable system tests for the data stream; the skip was in
place because we were testing on versions below 8.6. The kibana
version is now v8.9.0, so we can re-enable it.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Screenshots

@efd6 efd6 added bug Something isn't working, use only for issues Team:Security-External Integrations Integration:aws AWS labels Sep 13, 2023
@efd6 efd6 self-assigned this Sep 13, 2023
The AWS documentation specifies that the maxResults parameter be
droopingCamelCase[1], while we are using CamelCase. This results in API
requests being rejected with the following error

{
  "message": "The request is rejected because the JSON could not be processed.",
  "__type": "InvalidInputException"
}

[1]https://docs.aws.amazon.com/guardduty/latest/APIReference/API_ListFindings.html
The skip was in place because we were testing on versions below 8.6.
The kibana version is now v8.9.0, so we can re-enable it.
@elasticmachine
Copy link

elasticmachine commented Sep 13, 2023

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2023-09-13T05:29:14.322+0000

  • Duration: 52 min 20 sec

Test stats 🧪

Test Results
Failed 0
Passed 209
Skipped 3
Total 212

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@elasticmachine
Copy link

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (17/17) 💚
Files 94.444% (17/18) 👎 -2.86
Classes 94.444% (17/18) 👎 -2.86
Methods 85.953% (257/299) 👎 -6.31
Lines 86.024% (7509/8729) 👎 -2.306
Conditionals 100.0% (0/0) 💚

@efd6 efd6 marked this pull request as ready for review September 13, 2023 06:39
@efd6 efd6 requested review from a team as code owners September 13, 2023 06:39
@elasticmachine
Copy link

Pinging @elastic/security-external-integrations (Team:Security-External Integrations)

Copy link
Contributor

@zmoog zmoog left a comment

Choose a reason for hiding this comment

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

LGTM. Kudos for the clear and complete PR description.

@efd6 efd6 merged commit 99df359 into elastic:main Sep 13, 2023
1 check passed
@elasticmachine
Copy link

Package aws - 2.2.1 containing this change is available at https://epr.elastic.co/search?package=aws

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working, use only for issues Integration:aws AWS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AWS package Data-Streams need support of 8.6.0 Elastic Stack Version for System Test
4 participants