From 134e371176f962da457ddcbf8ff465fe72a63ea6 Mon Sep 17 00:00:00 2001 From: Matthew Bargar Date: Thu, 25 Feb 2016 19:20:51 -0500 Subject: [PATCH] test the actual set processor simulation output --- test/unit/api/ingest/processors/_set.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/unit/api/ingest/processors/_set.js b/test/unit/api/ingest/processors/_set.js index ec3f0804639a5..dd97f92e2701b 100644 --- a/test/unit/api/ingest/processors/_set.js +++ b/test/unit/api/ingest/processors/_set.js @@ -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({