Skip to content

Conversation

@moxarth-rathod
Copy link
Contributor

Proposed commit message

Fix system tests for abnormal_security, aws_bedrock, crowdstrike, nvidia_gpu integrations

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.
  • [s] I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.
  • I have verified that any added dashboard complies with Kibana's Dashboard good practices

How to test this PR locally

  • Clone integrations repo.
  • Install elastic package locally.
  • Start elastic stack using elastic-package.
  • Move to integrations/packages/abnormal_security or integrations/packages/aws_bedrock or
    integrations/packages/crowdstrike or integrations/packages/nvidia_gpu directory.
  • Run the following command to run tests.

elastic-package test -v

Related issues

@moxarth-rathod moxarth-rathod self-assigned this Oct 31, 2025
@moxarth-rathod moxarth-rathod requested a review from a team as a code owner October 31, 2025 14:44
@moxarth-rathod moxarth-rathod requested a review from a team as a code owner October 31, 2025 14:44
@moxarth-rathod moxarth-rathod added bugfix Pull request that fixes a bug issue Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations] Integration:aws_bedrock Amazon Bedrock Integration:abnormal_security Abnormal AI Team:Sit-Crest Crest developers on the Security Integrations team [elastic/sit-crest-contractors] Integration:nvidia_gpu NVIDIA GPU Monitoring labels Oct 31, 2025
@elasticmachine
Copy link

Pinging @elastic/security-service-integrations (Team:Security-Service Integrations)

@elastic-vault-github-plugin-prod
Copy link

elastic-vault-github-plugin-prod bot commented Oct 31, 2025

🚀 Benchmarks report

To see the full report comment with /test benchmark fullreport

@andrewkroh andrewkroh added the Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations] label Oct 31, 2025
Copy link
Member

@andrewkroh andrewkroh left a comment

Choose a reason for hiding this comment

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

Why are there three different YAML approaches to defining the required variables? This change has

wait_interval: ""
file_selectors: |
queue_url:
ssl: |

which equates to either empty string or null

{
  "wait_interval": "",
  "file_selectors": "",
  "queue_url": null,
  "ssl": ""
}

Could we use the same approach in all cases?

(To be clear, I'm not thrilled that we can bypass the required variable check by passing empty strings or nulls, but that's a different problem.)

@moxarth-rathod
Copy link
Contributor Author

Why are there three different YAML approaches to defining the required variables? This change has

wait_interval: ""
file_selectors: |
queue_url:
ssl: |

which equates to either empty string or null

{
  "wait_interval": "",
  "file_selectors": "",
  "queue_url": null,
  "ssl": ""
}

Could we use the same approach in all cases?

(To be clear, I'm not thrilled that we can bypass the required variable check by passing empty strings or nulls, but that's a different problem.)

I initially tried using null everywhere, but it didn’t resolve issue in system test. So, I went with a different approach. For consistency, I’ll change it to use an empty string everywhere.

@efd6 efd6 changed the title Add required variables in system tests abnormal_security,aws_bedrock,crowdstrike,nvidia_gpu: add required variables in system tests Nov 5, 2025
Copy link
Contributor

Choose a reason for hiding this comment

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

Looking at the change that added this configuration value (#14235), I think that it would be entirely reasonable for the config to be made non-required. This is based on the agent config code that was added and the description in the commit.

queue_url: '{{TF_OUTPUT_queue_url}}'
preserve_original_event: true
preserve_duplicate_custom_fields: true
file_selectors: ""
Copy link
Contributor

Choose a reason for hiding this comment

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

The complaint from ep is that this should be an array. Should this not be null?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It throws the same error when I use null. The other option was to use an empty array, like file_selectors: |
So, I’ve changed it to an empty string for consistency.

Copy link
Contributor

@efd6 efd6 Nov 5, 2025

Choose a reason for hiding this comment

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

Why not use the empty array? file_selectors: [] (file_selectors: | is an empty string, depending on the lines that follow).

It seems to me that the validation is missing something if it allows a string in an array slot.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@efd6 I've made the changes as per your suggestion.

@moxarth-rathod moxarth-rathod requested a review from efd6 November 5, 2025 06:06
@andrewkroh andrewkroh added the documentation Improvements or additions to documentation. Applied to PRs that modify *.md files. label Nov 5, 2025
@elasticmachine
Copy link

💚 Build Succeeded

History

cc @moxarth-rathod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Pull request that fixes a bug issue documentation Improvements or additions to documentation. Applied to PRs that modify *.md files. Integration:abnormal_security Abnormal AI Integration:aws_bedrock Amazon Bedrock Integration:crowdstrike CrowdStrike Integration:nvidia_gpu NVIDIA GPU Monitoring Team:Obs-InfraObs Observability Infrastructure Monitoring team [elastic/obs-infraobs-integrations] Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations] Team:Sit-Crest Crest developers on the Security Integrations team [elastic/sit-crest-contractors]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Multiple Integrations]: System test failures due to missing required variables in data stream configs

4 participants