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: docker/test/integration/features/couchbase.feature
+57Lines changed: 57 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -173,3 +173,60 @@ Feature: Executing Couchbase operations from MiNiFi-C++
173
173
And all instances start up
174
174
175
175
Then the Minifi logs contain the following message: "Failed to get content for document 'test_doc_id' from collection 'test_bucket._default._default' with the following exception: 'raw_binary_transcoder expects document to have BINARY common flags" in less than 60 seconds
176
+
177
+
Scenario: A MiNiFi instance can get data from test bucket with GetCouchbaseKey processor using SSL connection
178
+
Given a GetFile processor with the "Input Directory" property set to "/tmp/input"
179
+
And the "Keep Source File" property of the GetFile processor is set to "true"
180
+
And the scheduling period of the GetFile processor is set to "20 seconds"
181
+
And a file with the content '{"field1": "value1", "field2": "value2"}' is present in '/tmp/input'
182
+
And a PutCouchbaseKey processor with the "Bucket Name" property set to "test_bucket"
183
+
And the "Document Id" property of the PutCouchbaseKey processor is set to "test_doc_id"
184
+
And the "Couchbase Cluster Controller Service" property of the PutCouchbaseKey processor is set to "CouchbaseClusterService"
185
+
And a GetCouchbaseKey processor with the "Bucket Name" property set to "test_bucket"
186
+
And the "Document Id" property of the GetCouchbaseKey processor is set to "test_doc_id"
187
+
And the "Couchbase Cluster Controller Service" property of the GetCouchbaseKey processor is set to "CouchbaseClusterService"
188
+
And a PutFile processor with the "Directory" property set to "/tmp/output"
189
+
And a LogAttribute processor with the "FlowFiles To Log" property set to "0"
190
+
And a CouchbaseClusterService is setup up with SSL connection with the name "CouchbaseClusterService"
191
+
192
+
And the "success" relationship of the GetFile processor is connected to the PutCouchbaseKey
193
+
And the "success" relationship of the PutCouchbaseKey processor is connected to the GetCouchbaseKey
194
+
And the "success" relationship of the GetCouchbaseKey processor is connected to the PutFile
195
+
And the "success" relationship of the PutFile processor is connected to the LogAttribute
196
+
197
+
When a Couchbase server is started
198
+
And all instances start up
199
+
200
+
Then a flowfile with the JSON content '{"field1": "value1", "field2": "value2"}' is placed in the monitored directory in less than 6000 seconds
201
+
And the Minifi logs contain the following message: "key:couchbase.bucket value:test_bucket" in less than 10 seconds
202
+
And the Minifi logs contain the following message: "key:couchbase.doc.id value:test_doc_id" in less than 1 seconds
203
+
And the Minifi logs match the following regex: "key:couchbase.doc.cas value:[1-9][0-9]*" in less than 1 seconds
204
+
And the Minifi logs match the following regex: "key:couchbase.doc.expiry value:\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3}" in less than 1 seconds
205
+
206
+
Scenario: A MiNiFi instance can get data from test bucket with GetCouchbaseKey processor using mTLS authentication
207
+
Given a MiNiFi CPP server with yaml config
208
+
And a GetFile processor with the "Input Directory" property set to "/tmp/input"
209
+
And a file with the content '{"field1": "value1", "field2": "value2"}' is present in '/tmp/input'
210
+
And a PutCouchbaseKey processor with the "Bucket Name" property set to "test_bucket"
211
+
And the "Document Id" property of the PutCouchbaseKey processor is set to "test_doc_id"
212
+
And the "Couchbase Cluster Controller Service" property of the PutCouchbaseKey processor is set to "CouchbaseClusterService"
213
+
And a GetCouchbaseKey processor with the "Bucket Name" property set to "test_bucket"
214
+
And the "Document Id" property of the GetCouchbaseKey processor is set to "test_doc_id"
215
+
And the "Couchbase Cluster Controller Service" property of the GetCouchbaseKey processor is set to "CouchbaseClusterService"
216
+
And a PutFile processor with the "Directory" property set to "/tmp/output"
217
+
And a LogAttribute processor with the "FlowFiles To Log" property set to "0"
218
+
And a CouchbaseClusterService is setup up using mTLS authentication with the name "CouchbaseClusterService"
219
+
220
+
And the "success" relationship of the GetFile processor is connected to the PutCouchbaseKey
221
+
And the "success" relationship of the PutCouchbaseKey processor is connected to the GetCouchbaseKey
222
+
And the "success" relationship of the GetCouchbaseKey processor is connected to the PutFile
223
+
And the "success" relationship of the PutFile processor is connected to the LogAttribute
224
+
225
+
When a Couchbase server is started
226
+
And all instances start up
227
+
228
+
Then a flowfile with the JSON content '{"field1": "value1", "field2": "value2"}' is placed in the monitored directory in less than 6000 seconds
229
+
And the Minifi logs contain the following message: "key:couchbase.bucket value:test_bucket" in less than 10 seconds
230
+
And the Minifi logs contain the following message: "key:couchbase.doc.id value:test_doc_id" in less than 1 seconds
231
+
And the Minifi logs match the following regex: "key:couchbase.doc.cas value:[1-9][0-9]*" in less than 1 seconds
232
+
And the Minifi logs match the following regex: "key:couchbase.doc.expiry value:\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3}" in less than 1 seconds
0 commit comments