You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ze...@apache.org on 2021/10/20 16:28:39 UTC

[incubator-streampipes] branch dev updated: [STREAMPIPES-448] Processing Element: Boolean Filter

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


The following commit(s) were added to refs/heads/dev by this push:
     new 034874f  [STREAMPIPES-448] Processing Element: Boolean Filter
034874f is described below

commit 034874f5f2fc8c0b1c4ecb7ffaf71cece75e2719
Author: Philipp Zehnder <ze...@fzi.de>
AuthorDate: Wed Oct 20 18:27:55 2021 +0200

    [STREAMPIPES-448] Processing Element: Boolean Filter
---
 .../filters-jvm/booleanFilter1/description.json           | 15 +++++++++++++++
 .../filters-jvm/booleanFilter1/expected.csv               |  6 ++++++
 .../pipelineElement/filters-jvm/booleanFilter1/input.csv  | 11 +++++++++++
 .../filters-jvm/booleanFilter2/description.json           | 15 +++++++++++++++
 .../filters-jvm/booleanFilter2/expected.csv               |  6 ++++++
 .../pipelineElement/filters-jvm/booleanFilter2/input.csv  | 11 +++++++++++
 ui/cypress/tests/pipelineElement/SinglePipelineElement.ts |  2 +-
 7 files changed, 65 insertions(+), 1 deletion(-)

diff --git a/ui/cypress/fixtures/pipelineElement/filters-jvm/booleanFilter1/description.json b/ui/cypress/fixtures/pipelineElement/filters-jvm/booleanFilter1/description.json
new file mode 100644
index 0000000..fecbbcb
--- /dev/null
+++ b/ui/cypress/fixtures/pipelineElement/filters-jvm/booleanFilter1/description.json
@@ -0,0 +1,15 @@
+{
+  "name": "boolean_filter",
+  "config": [
+    {
+      "type": "drop-down",
+      "selector": "boolean-mapping",
+      "value": "randomboolean"
+    },
+    {
+      "type": "radio",
+      "selector": "value",
+      "value": "True"
+    }
+  ]
+}
\ No newline at end of file
diff --git a/ui/cypress/fixtures/pipelineElement/filters-jvm/booleanFilter1/expected.csv b/ui/cypress/fixtures/pipelineElement/filters-jvm/booleanFilter1/expected.csv
new file mode 100644
index 0000000..b525a46
--- /dev/null
+++ b/ui/cypress/fixtures/pipelineElement/filters-jvm/booleanFilter1/expected.csv
@@ -0,0 +1,6 @@
+time;randomboolean
+1623871501064;true
+1623871503078;true
+1623871505084;true
+1623871507091;true
+1623871508093;true
\ No newline at end of file
diff --git a/ui/cypress/fixtures/pipelineElement/filters-jvm/booleanFilter1/input.csv b/ui/cypress/fixtures/pipelineElement/filters-jvm/booleanFilter1/input.csv
new file mode 100644
index 0000000..691d574
--- /dev/null
+++ b/ui/cypress/fixtures/pipelineElement/filters-jvm/booleanFilter1/input.csv
@@ -0,0 +1,11 @@
+timestamp;randomboolean
+1623871499055;false
+1623871500059;false
+1623871501064;true
+1623871502070;false
+1623871503078;true
+1623871504082;false
+1623871505084;true
+1623871506086;false
+1623871507091;true
+1623871508093;true
diff --git a/ui/cypress/fixtures/pipelineElement/filters-jvm/booleanFilter2/description.json b/ui/cypress/fixtures/pipelineElement/filters-jvm/booleanFilter2/description.json
new file mode 100644
index 0000000..a6d9254
--- /dev/null
+++ b/ui/cypress/fixtures/pipelineElement/filters-jvm/booleanFilter2/description.json
@@ -0,0 +1,15 @@
+{
+  "name": "boolean_filter",
+  "config": [
+    {
+      "type": "drop-down",
+      "selector": "boolean-mapping",
+      "value": "randomboolean"
+    },
+    {
+      "type": "radio",
+      "selector": "value",
+      "value": "False"
+    }
+  ]
+}
\ No newline at end of file
diff --git a/ui/cypress/fixtures/pipelineElement/filters-jvm/booleanFilter2/expected.csv b/ui/cypress/fixtures/pipelineElement/filters-jvm/booleanFilter2/expected.csv
new file mode 100644
index 0000000..bc21732
--- /dev/null
+++ b/ui/cypress/fixtures/pipelineElement/filters-jvm/booleanFilter2/expected.csv
@@ -0,0 +1,6 @@
+time;randomboolean
+1623871499055;false
+1623871500059;false
+1623871502007;false
+1623871504082;false
+1623871506086;false
\ No newline at end of file
diff --git a/ui/cypress/fixtures/pipelineElement/filters-jvm/booleanFilter2/input.csv b/ui/cypress/fixtures/pipelineElement/filters-jvm/booleanFilter2/input.csv
new file mode 100644
index 0000000..00f09c6
--- /dev/null
+++ b/ui/cypress/fixtures/pipelineElement/filters-jvm/booleanFilter2/input.csv
@@ -0,0 +1,11 @@
+timestamp;randomboolean
+1623871499055;false
+1623871500059;false
+1623871501064;true
+1623871502070;false
+1623871503078;true
+1623871504082;false
+1623871505084;true
+1623871506086;false
+1623871507091;true
+1623871508093;true
\ No newline at end of file
diff --git a/ui/cypress/tests/pipelineElement/SinglePipelineElement.ts b/ui/cypress/tests/pipelineElement/SinglePipelineElement.ts
index 21ede71..9339e04 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 = 'projection1';
+  const testName = 'booleanFilter2';
 
   const processorTest = test as ProcessorTest;