Skip to content

Commit

Permalink
test the actual set processor simulation output
Browse files Browse the repository at this point in the history
  • Loading branch information
Bargs committed Feb 26, 2016
1 parent 6b3f844 commit 134e371
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/unit/api/ingest/processors/_set.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ define(function (require) {
.expect(200);
});

bdd.it('should return a simulated output with the correct result for the given processor', function () {
return request.post('/kibana/ingest/simulate')
.send(testPipeline)
.expect(200)
.then(function (response) {
expect(response.body[0].output.foo).to.be.equal('bar');
});
});

bdd.it('should enforce snake case', function setSimulateSnakeCase() {
return request.post('/kibana/ingest/simulate')
.send({
Expand Down

0 comments on commit 134e371

Please sign in to comment.