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

Change the assertion for fileset modules #16493

Merged
merged 1 commit into from
Feb 24, 2020

Conversation

ph
Copy link
Contributor

@ph ph commented Feb 21, 2020

What does this PR do?

In the previous module assertion we were checking the keys manually and
if they didn't match we would just output the raw dictionary into the
tests. This is not really useful because you have to either inspect them
manually or user a local diff to know what exactly changes.

This PR use DeepDiff to actually diff the two dictionary together and
will output diff of the two dictionnary. This make debugging a little
easier.

Why is it important?

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Use cases

Screenshots

Logs

In the previous module assertion we were checking the keys manually and
if they didn't match we would just output the raw dictionary into the
tests. This is not really useful because you have to either inspect them
manually or user a local diff to know what exactly changes.

This PR use DeepDiff to actually diff the two dictionary together and
will output diff of the two dictionnary. This make debugging a little
easier.
@ph ph added enhancement in progress Pull request is currently in progress. [zube]: In Progress labels Feb 21, 2020
@ph ph self-assigned this Feb 21, 2020
@ph ph requested review from urso and jsoriano February 24, 2020 14:32
@ph ph added [zube]: In Review review Team:Platforms Label for the Integrations - Platforms team and removed [zube]: In Progress in progress Pull request is currently in progress. labels Feb 24, 2020
@ph
Copy link
Contributor Author

ph commented Feb 24, 2020

I will keep it in master, I don't see an immediate need to backport to 7.6

@ph ph merged commit fa506a6 into elastic:master Feb 24, 2020
adriansr pushed a commit to adriansr/beats that referenced this pull request Jul 14, 2020
In the previous module assertion we were checking the keys manually and
if they didn't match we would just output the raw dictionary into the
tests. This is not really useful because you have to either inspect them
manually or user a local diff to know what exactly changes.

This PR use DeepDiff to actually diff the two dictionary together and
will output diff of the two dictionnary. This make debugging a little
easier.

(cherry picked from commit fa506a6)
adriansr added a commit that referenced this pull request Jul 14, 2020
In the previous module assertion we were checking the keys manually and
if they didn't match we would just output the raw dictionary into the
tests. This is not really useful because you have to either inspect them
manually or user a local diff to know what exactly changes.

This PR use DeepDiff to actually diff the two dictionary together and
will output diff of the two dictionnary. This make debugging a little
easier.

(cherry picked from commit fa506a6)

Co-authored-by: Pier-Hugues Pellerin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement review Team:Platforms Label for the Integrations - Platforms team v7.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants