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

[SIEM] Clean up snapshot #58724

Merged
merged 2 commits into from
Feb 28, 2020
Merged

[SIEM] Clean up snapshot #58724

merged 2 commits into from
Feb 28, 2020

Conversation

angorayc
Copy link
Contributor

Summary

#58723

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@elasticmachine
Copy link
Contributor

Pinging @elastic/siem (Team:SIEM)

@angorayc angorayc added the release_note:skip Skip the PR/issue when compiling release notes label Feb 27, 2020
Copy link
Contributor

@FrankHassanabad FrankHassanabad left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -113,7 +113,6 @@ describe('ZeekDetails', () => {
/>
</TestProviders>
);
expect(wrapper).toMatchSnapshot();
Copy link
Contributor

Choose a reason for hiding this comment

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

@angorayc the other snapshot test above does expect(wrapper.find('ZeekDetails')).toMatchSnapshot(). If this test has value, doing the same would prevent us from having to remove the test completely.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @rylnd, that's a good idea. Actually I added that line for manual debugging in my previous PR and forgot to remove that.
e97b451#r37522518

@FrankHassanabad would you want me to move this snapshot test to another block and apply expect(wrapper.find('ZeekDetails')).toMatchSnapshot() or it is ok if I just remove this check?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think the team consensus has been that snapshots are optional but no one really cares if we delete them if there are other tests that provide coverage.

So, yeah, you are fine to delete this snapshot test if you want to. They don't provide us with a lot of value compared to focused testing.

But if you find value in them and want to continue using them (as long as they are not huge outputs) that is fine as well.

So, in short, optionally you can delete any ones you want to or keep using them as long as they are not large snapshots.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, given that I added it accidentally, removing it here. Thank you @rylnd @FrankHassanabad

@angorayc
Copy link
Contributor Author

jenkins, test this

@patrykkopycinski
Copy link
Contributor

jenkins, test this

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:SIEM v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[SIEM] Review jest match snapshot usage (all core and plugins included into snapshot)
6 participants