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

Extract the Dissect test suite into an external file #7768

Merged
merged 2 commits into from
Jul 30, 2018

Conversation

ph
Copy link
Contributor

@ph ph commented Jul 26, 2018

We currently have three implementations of dissect (LS, Ingest
and beats), moving the common test case to an external file is the first
step to be able to converge to a common specification.

cc @guyboertje @jakelandis

We currently have three implementations of dissect (LS, Ingest
and beats), moving the common test case to an external file is the first
step to be able to converge to a common specification.
@jakelandis
Copy link

LGTM

@ph
Copy link
Contributor Author

ph commented Jul 26, 2018

jenkins test this please

@urso
Copy link

urso commented Jul 30, 2018

With the go test suite its common to put input files into a testdata sub-directory.

According to go help test:

The go tool will ignore a directory named "testdata", making it available
to hold ancillary data needed by the tests.

According to go help test:

    The go tool will ignore a directory named "testdata", making it available
    to hold ancillary data needed by the tests.
@ph
Copy link
Contributor Author

ph commented Jul 30, 2018

@urso I've moved the fixture into testdata

@urso urso merged commit 3e85c9a into elastic:master Jul 30, 2018
@ph ph added the v6.6.0 label Oct 31, 2018
ph added a commit to ph/beats that referenced this pull request Nov 9, 2018
We currently have three implementations of dissect (LS, Ingest
and beats), moving the common test case to an external file is the first
step to be able to converge to a common specification.

cc @guyboertje @jakelandis

(cherry picked from commit 3e85c9a)
ph added a commit that referenced this pull request Nov 13, 2018
…t a value that can be referenced and add external test suite for dissect (#8861)

* Extract the Dissect test suite into an external file (#7768)

We currently have three implementations of dissect (LS, Ingest
and beats), moving the common test case to an external file is the first
step to be able to converge to a common specification.

cc @guyboertje @jakelandis

(cherry picked from commit 3e85c9a)

* Allow to use a star (*) to extract a value that can be referenced. (#8750)

This commit adds support for * instead of using a named skip field
(?field) this make it compatible with ingest pipeline syntax in 6.5.

We are also adding validation enforcing that each indirect field must use an existing
and valid reference.

Fix: #8054
(cherry picked from commit bb93d05)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants