You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: PROCESSORS.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2218,6 +2218,7 @@ In the list below, the names of required properties appear in bold. Any other pr
2218
2218
| **Bucket Name** | default | | The name of bucket to access.<br/>**Supports Expression Language: true** |
2219
2219
| Scope Name | | | Scope to use inside the bucket. If not specified, the _default scope is used.<br/>**Supports Expression Language: true** |
2220
2220
| Collection Name | | | Collection to use inside the bucket scope. If not specified, the _default collection is used.<br/>**Supports Expression Language: true** |
2221
+
| **Document Type** | Json | Json<br/>Binary<br/>String | Content type to store data as. |
2221
2222
| Document Id | | | A static, fixed Couchbase document id, or an expression to construct the Couchbase document id. If not specified, the FlowFile UUID will be used.<br/>**Supports Expression Language: true** |
2222
2223
| **Persist To** | NONE | NONE<br/>ACTIVE<br/>ONE<br/>TWO<br/>THREE<br/>FOUR | Durability constraint about disk persistence. |
Copy file name to clipboardExpand all lines: docker/test/integration/features/couchbase.feature
+27-1Lines changed: 27 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -18,12 +18,13 @@ Feature: Executing Couchbase operations from MiNiFi-C++
18
18
Background:
19
19
Given the content of "/tmp/output" is monitored
20
20
21
-
Scenario: A MiNiFi instance can insert data to test bucket with PutCouchbaseKey processor
21
+
Scenario: A MiNiFi instance can insert json data to test bucket with PutCouchbaseKey processor
22
22
Given a Couchbase server is set up
23
23
And a GetFile processor with the "Input Directory" property set to "/tmp/input"
24
24
And a file with the content '{"field1": "value1", "field2": "value2"}' is present in '/tmp/input'
25
25
And a PutCouchbaseKey processor with the "Bucket Name" property set to "test_bucket"
26
26
And the "Document Id" property of the PutCouchbaseKey processor is set to "test_doc_id"
27
+
And the "Document Type" property of the PutCouchbaseKey processor is set to "Json"
27
28
And a LogAttribute processor with the "FlowFiles To Log" property set to "0"
28
29
And a CouchbaseClusterService is setup up for PutCouchbaseKey with the name "CouchbaseClusterService"
29
30
@@ -39,3 +40,28 @@ Feature: Executing Couchbase operations from MiNiFi-C++
39
40
And the Minifi logs match the following regex: "key:couchbase.doc.sequence.number value:[1-9][0-9]*" in less than 1 seconds
40
41
And the Minifi logs match the following regex: "key:couchbase.partition.uuid value:[1-9][0-9]*" in less than 1 seconds
41
42
And the Minifi logs match the following regex: "key:couchbase.partition.id value:[1-9][0-9]*" in less than 1 seconds
43
+
And a document with id "test_doc_id" in bucket "test_bucket" is present with data '{"field1": "value1", "field2": "value2"}' of type "Json" in Couchbase
44
+
45
+
Scenario: A MiNiFi instance can insert binary data to test bucket with PutCouchbaseKey processor
46
+
Given a Couchbase server is set up
47
+
And a GetFile processor with the "Input Directory" property set to "/tmp/input"
48
+
And a file with the content '{"field1": "value1"}' is present in '/tmp/input'
49
+
And a PutCouchbaseKey processor with the "Bucket Name" property set to "test_bucket"
50
+
And the "Document Id" property of the PutCouchbaseKey processor is set to "test_doc_id"
51
+
And the "Document Type" property of the PutCouchbaseKey processor is set to "Binary"
52
+
And a LogAttribute processor with the "FlowFiles To Log" property set to "0"
53
+
And a CouchbaseClusterService is setup up for PutCouchbaseKey with the name "CouchbaseClusterService"
54
+
55
+
And the "success" relationship of the GetFile processor is connected to the PutCouchbaseKey
56
+
And the "success" relationship of the PutCouchbaseKey processor is connected to the LogAttribute
57
+
58
+
When a Couchbase server is started
59
+
And all instances start up
60
+
61
+
Then the Minifi logs contain the following message: "key:couchbase.bucket value:test_bucket" in less than 60 seconds
62
+
And the Minifi logs contain the following message: "key:couchbase.doc.id value:test_doc_id" in less than 1 seconds
63
+
And the Minifi logs match the following regex: "key:couchbase.doc.cas value:[1-9][0-9]*" in less than 1 seconds
64
+
And the Minifi logs match the following regex: "key:couchbase.doc.sequence.number value:[1-9][0-9]*" in less than 1 seconds
65
+
And the Minifi logs match the following regex: "key:couchbase.partition.uuid value:[1-9][0-9]*" in less than 1 seconds
66
+
And the Minifi logs match the following regex: "key:couchbase.partition.id value:[1-9][0-9]*" in less than 1 seconds
67
+
And a document with id "test_doc_id" in bucket "test_bucket" is present with data '{"field1": "value1"}' of type "Binary" in Couchbase
0 commit comments