Skip to content

[cisco_ise] Improve handling of unset fields from source - #10754

Merged
mjwolf merged 8 commits into
elastic:mainfrom
mjwolf:cisco-ise-handle-nulls
Aug 14, 2024
Merged

[cisco_ise] Improve handling of unset fields from source#10754
mjwolf merged 8 commits into
elastic:mainfrom
mjwolf:cisco-ise-handle-nulls

Conversation

@mjwolf

@mjwolf mjwolf commented Aug 9, 2024

Copy link
Copy Markdown
Contributor

Proposed commit message

Improve the handling of unset/null data fields, by checking for null before using the data in processors.

Some log messages do not set all expected fields. This adds more checks that data is not null attempting to run processors on these fields. This also adds some examples of log messages that do not populate some datafields to the pipeline tests.

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.
Improve the handling of unset/null data fields, by checking for null before using the data in more processors.

Some log messages do not set all expected fields. This adds more checks that data is not null attempting to run
processors on these fields. This also adds some examples of log messages that do not populate some datafields to the pipeline tests.
@mjwolf mjwolf added the bugfix Pull request that fixes a bug issue label Aug 9, 2024
@mjwolf mjwolf self-assigned this Aug 9, 2024
@mjwolf
mjwolf requested a review from a team as a code owner August 9, 2024 20:35
@andrewkroh andrewkroh added Integration:cisco_ise Cisco ISE Team:Security-Deployment and Devices DEPRECATED Deployment and Devices Security team [elastic/sec-deployment-and-devices] labels Aug 9, 2024
@elasticmachine

Copy link
Copy Markdown

Pinging @elastic/sec-deployment-and-devices (Team:Security-Deployment and Devices)

@elasticmachine

Copy link
Copy Markdown

🚀 Benchmarks report

To see the full report comment with /test benchmark fullreport

…ne/pipeline_passed_authentications.yml

Co-authored-by: Andrew Kroh <andrew.kroh@elastic.co>
@mjwolf
mjwolf enabled auto-merge (squash) August 9, 2024 23:58
@mjwolf
mjwolf requested a review from a team August 12, 2024 17:18
@mjwolf

mjwolf commented Aug 12, 2024

Copy link
Copy Markdown
Contributor Author

I don't Sonarqube is calculating coverage correctly for this, it's saying at least two blocks are uncovered, when testcases exist with data for them (User-Name and cisco-av-pair)

@mjwolf
mjwolf force-pushed the cisco-ise-handle-nulls branch from 8a3f638 to b5184ea Compare August 14, 2024 18:22
@mjwolf
mjwolf requested a review from taylor-swanson August 14, 2024 20:38
@elasticmachine

Copy link
Copy Markdown

💚 Build Succeeded

History

cc @mjwolf

@elastic-sonarqube

Copy link
Copy Markdown

Quality Gate failed Quality Gate failed

Failed conditions
78.6% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube

@mjwolf
mjwolf merged commit 18186e9 into elastic:main Aug 14, 2024
@elasticmachine

Copy link
Copy Markdown

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

harnish-crest-data pushed a commit to chavdaharnish/integrations that referenced this pull request Feb 4, 2025
Improve the handling of unset/null data fields, by checking for null before using the data in more processors.

Some log messages do not set all expected fields. This adds more checks that data is not null attempting to run
processors on these fields. This also adds some examples of log messages that do not populate some datafields to the pipeline tests.

---------

Co-authored-by: Andrew Kroh <andrew.kroh@elastic.co>
harnish-crest-data pushed a commit to chavdaharnish/integrations that referenced this pull request Feb 5, 2025
Improve the handling of unset/null data fields, by checking for null before using the data in more processors.

Some log messages do not set all expected fields. This adds more checks that data is not null attempting to run
processors on these fields. This also adds some examples of log messages that do not populate some datafields to the pipeline tests.

---------

Co-authored-by: Andrew Kroh <andrew.kroh@elastic.co>
@mjwolf
mjwolf deleted the cisco-ise-handle-nulls branch February 5, 2025 18:47
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 Integration:cisco_ise Cisco ISE Team:Security-Deployment and Devices DEPRECATED Deployment and Devices Security team [elastic/sec-deployment-and-devices]

4 participants