Skip to content

Conversation

@original-brownbear
Copy link
Contributor

  • UT for behavior of dropped callback
    and drop processor
    • Moved drop processor to server project to enable this test (otherwise I would've had to add code for a dummy processor that returns null in the server tests for testing the callback ... moving the proc seemed more reasonable :))
  • Simple IT
  • Relates INGEST: Implement Drop Processor #32278

* UT for behavior of dropped callback
and drop processor
   * Moved drop processor to `server`
project to enable this test
* Simple IT
* Relates elastic#32278
@original-brownbear original-brownbear added >test Issues or PRs that are addressing/adding tests :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP v7.0.0 v6.5.0 labels Sep 5, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@original-brownbear
Copy link
Contributor Author

@rjernst can you take a look here? :) I think we should at least have some basic tests for this.

public void testExecuteWithDrop() {
IngestService ingestService = createWithProcessors(Collections.singletonMap("drop", new DropProcessor.Factory()));
PutPipelineRequest putRequest = new PutPipelineRequest("_id",
new BytesArray("{\"processors\": [{\"drop\" : {}}]}"), XContentType.JSON);
Copy link
Contributor

Choose a reason for hiding this comment

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

minor: you may also want a second (mock) processor here, and assert that the second processor never executes.

@jakelandis
Copy link
Contributor

LGTM, one minor optional suggestion.

@original-brownbear
Copy link
Contributor Author

@jakelandis thanks! Suggestion applied :)

@original-brownbear original-brownbear merged commit 0ba1855 into elastic:master Sep 25, 2018
@original-brownbear original-brownbear deleted the drop-proc-tests branch September 25, 2018 17:29
jakelandis pushed a commit to jakelandis/elasticsearch that referenced this pull request Oct 23, 2018
* INGEST: Tests for Drop Processor

* UT for behavior of dropped callback
and drop processor
   * Moved drop processor to `server`
project to enable this test
* Simple IT
* Relates elastic#32278
jakelandis pushed a commit that referenced this pull request Oct 23, 2018
* INGEST: Tests for Drop Processor

* UT for behavior of dropped callback
and drop processor
   * Moved drop processor to `server`
project to enable this test
* Simple IT
* Relates #32278
kcm pushed a commit that referenced this pull request Oct 30, 2018
* INGEST: Tests for Drop Processor

* UT for behavior of dropped callback
and drop processor
   * Moved drop processor to `server`
project to enable this test
* Simple IT
* Relates #32278
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP >test Issues or PRs that are addressing/adding tests v6.5.0 v7.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants