This is an automated email from the ASF dual-hosted git repository. zehnder pushed a commit to branch dev in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git
commit b280a6157ded40602710e6c2c5b979ed27d82d29 Author: Philipp Zehnder <[email protected]> AuthorDate: Mon Oct 25 21:02:56 2021 +0200 [hotfix] Add e2e test for add value change --- .../enrich-jvm/valueChange1/description.json | 20 ++++++++++++++++++++ .../enrich-jvm/valueChange1/expected.csv | 11 +++++++++++ .../enrich-jvm/valueChange1/input.csv | 11 +++++++++++ .../tests/pipelineElement/SinglePipelineElement.ts | 2 +- 4 files changed, 43 insertions(+), 1 deletion(-) diff --git a/ui/cypress/fixtures/pipelineElement/enrich-jvm/valueChange1/description.json b/ui/cypress/fixtures/pipelineElement/enrich-jvm/valueChange1/description.json new file mode 100644 index 0000000..b46de05 --- /dev/null +++ b/ui/cypress/fixtures/pipelineElement/enrich-jvm/valueChange1/description.json @@ -0,0 +1,20 @@ +{ + "name": "value_change", + "config": [ + { + "type": "drop-down", + "selector": "change-value-mapping", + "value": "numberlist" + }, + { + "type": "input", + "selector": "from-property-value", + "value": "3" + }, + { + "type": "input", + "selector": "to-property-value", + "value": "4" + } + ] +} \ No newline at end of file diff --git a/ui/cypress/fixtures/pipelineElement/enrich-jvm/valueChange1/expected.csv b/ui/cypress/fixtures/pipelineElement/enrich-jvm/valueChange1/expected.csv new file mode 100644 index 0000000..f6575c9 --- /dev/null +++ b/ui/cypress/fixtures/pipelineElement/enrich-jvm/valueChange1/expected.csv @@ -0,0 +1,11 @@ +time;ischanged;numberlist +1623871499055;false;2.0 +1623871500059;false;3.0 +1623871501064;true;4.0 +1623871502007;false;5.0 +1623871503078;false;2.0 +1623871504082;false;3.0 +1623871505084;true;4.0 +1623871506086;false;5.0 +1623871507091;false;6.0 +1623871508093;false;7.0 \ No newline at end of file diff --git a/ui/cypress/fixtures/pipelineElement/enrich-jvm/valueChange1/input.csv b/ui/cypress/fixtures/pipelineElement/enrich-jvm/valueChange1/input.csv new file mode 100644 index 0000000..269217a --- /dev/null +++ b/ui/cypress/fixtures/pipelineElement/enrich-jvm/valueChange1/input.csv @@ -0,0 +1,11 @@ +timestamp;numberlist +1623871499055;2 +1623871500059;3 +1623871501064;4 +1623871502070;5 +1623871503078;2 +1623871504082;3 +1623871505084;4 +1623871506086;5 +1623871507091;6 +1623871508093;7 diff --git a/ui/cypress/tests/pipelineElement/SinglePipelineElement.ts b/ui/cypress/tests/pipelineElement/SinglePipelineElement.ts index 9339e04..7c5cbaa 100644 --- a/ui/cypress/tests/pipelineElement/SinglePipelineElement.ts +++ b/ui/cypress/tests/pipelineElement/SinglePipelineElement.ts @@ -22,7 +22,7 @@ import { ProcessorTest } from '../../support/model/ProcessorTest'; const allTests = Cypress.env('processingElements'); allTests.forEach(test => { - const testName = 'booleanFilter2'; + const testName = 'valueChange1'; const processorTest = test as ProcessorTest;
