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
@given("a ProxyConfigurationService controller service is set up with HTTP proxy configuration")
210
+
defstep_impl(context: MinifiTestContext):
211
+
context.execute_steps(f"given a ProxyConfigurationService controller service is set up with HTTP proxy configuration in the \"{DEFAULT_MINIFI_CONTAINER_NAME}\" flow")
212
+
213
+
199
214
@step("the processors are connected up as described here")
@@ -61,7 +61,7 @@ Feature: Sending data from MiNiFi-C++ to an AWS server
61
61
Then a single file with the content "LH_O#L|FD<FASD{FO#@$#$%^ \"#\"$L%:\"@#$L\":test_data#$#%#$%?{\"F{" is placed in the "/tmp/output" directory in less than 20 seconds
62
62
And the object on the s3 server is "LH_O#L|FD<FASD{FO#@$#$%^ \"#\"$L%:\"@#$L\":test_data#$#%#$%?{\"F{"
63
63
And the object content type on the s3 server is "application/octet-stream" and the object metadata matches use metadata
64
-
And no errors were generated on the http-proxy regarding "http://s3-server-s3-1:9090/test_bucket/test_object_key"
64
+
And no errors were generated on the http-proxy regarding "http://s3-server-${scenario_id}:9090/test_bucket/test_object_key"
65
65
66
66
Scenario: A MiNiFi instance transfers encoded data through a http proxy to s3 using proxy configuration service
67
67
Given a GetFile processor with the "Input Directory" property set to "/tmp/input"
@@ -77,10 +77,10 @@ Feature: Sending data from MiNiFi-C++ to an AWS server
77
77
And the http proxy server is set up
78
78
When all instances start up
79
79
80
-
Then a flowfile with the content "test" is placed in the monitored directory in less than 60 seconds
80
+
Then a single file with the content "LH_O#L|FD<FASD{FO#@$#$%^ \"#\"$L%:\"@#$L\":test_data#$#%#$%?{\"F{" is placed in the "/tmp/output" directory in less than 60 seconds
81
81
And the object on the s3 server is "LH_O#L|FD<FASD{FO#@$#$%^ \"#\"$L%:\"@#$L\":test_data#$#%#$%?{\"F{"
82
82
And the object content type on the s3 server is "application/octet-stream" and the object metadata matches use metadata
83
-
And no errors were generated on the http-proxy regarding "http://s3-server-${feature_id}:9090/test_bucket/test_object_key"
83
+
And no errors were generated on the http-proxy regarding "http://s3-server-${scenario_id}:9090/test_bucket/test_object_key"
84
84
85
85
Scenario: A MiNiFi instance can remove s3 bucket objects
86
86
Given a GetFile processor with the "Input Directory" property set to "/tmp/input"
@@ -120,13 +120,14 @@ Feature: Sending data from MiNiFi-C++ to an AWS server
120
120
121
121
Scenario: Deletion of a s3 object through a proxy-server succeeds
122
122
Given a GetFile processor with the "Input Directory" property set to "/tmp/input"
123
+
And the scheduling period of the GetFile processor is set to "60 sec"
123
124
And a directory at "/tmp/input" has a file with the content "LH_O#L|FD<FASD{FO#@$#$%^ \"#\"$L%:\"@#$L\":test_data#$#%#$%?{\"F{"
124
125
And a PutS3Object processor set up to communicate with an s3 server
125
126
And a DeleteS3Object processor set up to communicate with the same s3 server
126
127
And a PutFile processor with the "Directory" property set to "/tmp/output"
@@ -145,16 +146,17 @@ Feature: Sending data from MiNiFi-C++ to an AWS server
145
146
146
147
Then a single file with the content "LH_O#L|FD<FASD{FO#@$#$%^ \"#\"$L%:\"@#$L\":test_data#$#%#$%?{\"F{" is placed in the "/tmp/output" directory in less than 20 seconds
147
148
And the object bucket on the s3 server is empty in less than 10 seconds
148
-
And no errors were generated on the http-proxy regarding "http://s3-server-s3-4:9090/test_bucket/test_object_key"
149
+
And no errors were generated on the http-proxy regarding "http://s3-server-${scenario_id}:9090/test_bucket/test_object_key"
149
150
150
151
Scenario: Deletion of a s3 object through a proxy-server succeeds using proxy configuration service
151
152
Given a GetFile processor with the "Input Directory" property set to "/tmp/input"
153
+
And the scheduling period of the GetFile processor is set to "60 sec"
152
154
And a file with the content "LH_O#L|FD<FASD{FO#@$#$%^ \"#\"$L%:\"@#$L\":test_data#$#%#$%?{\"F{" is present in "/tmp/input"
153
155
And a PutS3Object processor set up to communicate with an s3 server
154
156
And a DeleteS3Object processor set up to communicate with the same s3 server
155
157
And the "Proxy Configuration Service" property of the DeleteS3Object processor is set to "ProxyConfigurationService"
156
158
And a PutFile processor with the "Directory" property set to "/tmp/output"
157
-
And the processors are connected up as described here:
159
+
And the processors are connected up as described here
@@ -166,9 +168,9 @@ Feature: Sending data from MiNiFi-C++ to an AWS server
166
168
167
169
When all instances start up
168
170
169
-
Then a flowfile with the content "test" is placed in the monitored directory in less than 60 seconds
170
-
And the object bucket on the s3 server is empty
171
-
And no errors were generated on the http-proxy regarding "http://s3-server-${feature_id}:9090/test_bucket/test_object_key"
171
+
Then a single file with the content "LH_O#L|FD<FASD{FO#@$#$%^ \"#\"$L%:\"@#$L\":test_data#$#%#$%?{\"F{" is placed in the "/tmp/output" directory in less than 60 seconds
172
+
And the object bucket on the s3 server is empty in less than 10 seconds
173
+
And no errors were generated on the http-proxy regarding "http://s3-server-${scenario_id}:9090/test_bucket/test_object_key"
172
174
173
175
Scenario: A MiNiFi instance can download s3 bucket objects directly
174
176
Given a GetFile processor with the "Input Directory" property set to "/tmp/input"
@@ -219,31 +221,31 @@ Feature: Sending data from MiNiFi-C++ to an AWS server
219
221
When all instances start up
220
222
221
223
Then a single file with the content "test" is placed in the "/tmp/output" directory in less than 20 seconds
222
-
And no errors were generated on the http-proxy regarding "http://s3-server-s3-6:9090/test_bucket/test_object_key"
224
+
And no errors were generated on the http-proxy regarding "http://s3-server-${scenario_id}:9090/test_bucket/test_object_key"
223
225
224
226
Scenario: A MiNiFi instance can download s3 bucket objects via a http-proxy using proxy configuration service
225
227
Given a GetFile processor with the "Input Directory" property set to "/tmp/input"
226
228
And a file with the content "test" is present in "/tmp/input"
227
229
And a PutS3Object processor set up to communicate with an s3 server
228
230
And the "success" relationship of the GetFile processor is connected to the PutS3Object
229
231
230
-
Given a GenerateFlowFile processor with the "File Size" property set to "1 kB" in a "secondary" flow
232
+
Given a GenerateFlowFile processor with the "File Size" property set to "1 kB"
231
233
And a FetchS3Object processor set up to communicate with the same s3 server
232
234
And the "Proxy Configuration Service" property of the FetchS3Object processor is set to "ProxyConfigurationService"
233
235
And a PutFile processor with the "Directory" property set to "/tmp/output"
234
-
And the processors are connected up as described here:
236
+
And the processors are connected up as described here
0 commit comments