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

Check values against list of expected values #865

Merged
merged 1 commit into from
Jun 24, 2022

Conversation

jsoriano
Copy link
Member

@jsoriano jsoriano commented Jun 24, 2022

Since elastic/ecs#1952, ECS fields can contain a list of expected values.

Check that imported fields comply with these values.

Similar to #771, but for expected_values.

It won't affect current integrations because no ECS version has been released yet with expected_values.

Fixes #864.

@jsoriano jsoriano requested review from andrewkroh and a team June 24, 2022 09:34
@jsoriano jsoriano self-assigned this Jun 24, 2022
@jsoriano
Copy link
Member Author

Please don't merge till #864 (comment) is resolved. I opened the PR to have it ready before integrations start using ECS versions with these expected_values.

@elasticmachine
Copy link
Collaborator

💚 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: 2022-06-24T09:34:45.918+0000

  • Duration: 28 min 29 sec

Test stats 🧪

Test Results
Failed 0
Passed 742
Skipped 0
Total 742

🤖 GitHub comments

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

  • /test : Re-trigger the build.

@elasticmachine
Copy link
Collaborator

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (31/31) 💚
Files 66.071% (74/112) 👍
Classes 61.146% (96/157) 👍
Methods 49.126% (309/629) 👍
Lines 33.068% (2784/8419) 👍 0.012
Conditionals 100.0% (0/0) 💚

@jsoriano jsoriano merged commit b94fd3a into elastic:main Jun 24, 2022
@jsoriano jsoriano deleted the ecs-expected-values branch June 24, 2022 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[field validation] Check values against ECS expected_values
3 participants