1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
|
#!/bin/bash
TC_ONELINE_DESCR="Test script for auto test and simulator control"
. ../common/testcase_common.sh $1 $2
#### TEST BEGIN ####
clean_containers
export MR_TC="--tc1000"
export MR_GROUPS="OpenDcae-c12:PM_MEAS_FILES:CTR_MEAS_FILES,OpenDcae-c13:CTR_MEAS_FILES,OpenDcae-c14:LOG_FILES,OpenDcae-c15:PM_MEAS_FILES:TEST_FILES,OpenDcae-c16:TEST_FILES:TEMP_FILES"
export MR_FILE_PREFIX_MAPPING="PM_MEAS_FILES:A,CTR_MEAS_FILES:B,LOG_FILES:C,TEST_FILES:D,TEMP_FILES:E"
export DR_TC="--tc normal"
export DR_FEEDS="1:A,2:B,3:C,4:D,5:E"
export DR_REDIR_TC="--tc normal"
export DR_REDIR_FEEDS="1:A,2:B,3:C,4:D,5:E"
export NUM_FTPFILES="300"
export NUM_PNFS="5"
export FILE_SIZE="1MB"
export FTP_TYPE="SFTP"
export FTP_FILE_PREFIXES="A,B,C,D,E"
export NUM_FTP_SERVERS=5
log_sim_settings
start_simulators
consul_config_app 0 "../simulator-group/consul/c12_feed1_PM_feed2_CTR.json"
consul_config_app 1 "../simulator-group/consul/c13_feed2_CTR.json"
consul_config_app 2 "../simulator-group/consul/c14_feed3_LOG.json"
consul_config_app 3 "../simulator-group/consul/c15_feed1_PM_feed4_TEST.json"
consul_config_app 2 "../simulator-group/consul/c16_feed4_TEST_feed5_TEMP.json"
mr_print ""
mr_print groups
mr_print changeids
mr_print fileprefixes
mr_print tc_info
mr_print status
mr_print stop
mr_print start
mr_print ctr_requests
mr_print groups/ctr_requests
mr_print ctr_requests/OpenDcae-c12
mr_print ctr_requests/OpenDcae-c13
mr_print ctr_requests/OpenDcae-c14
mr_print ctr_requests/OpenDcae-c15
mr_print ctr_requests/OpenDcae-c16
mr_print ctr_responses
mr_print groups/ctr_responses
mr_print ctr_responses/OpenDcae-c12
mr_print ctr_responses/OpenDcae-c13
mr_print ctr_responses/OpenDcae-c14
mr_print ctr_responses/OpenDcae-c15
mr_print ctr_responses/OpenDcae-c16
mr_print ctr_files
mr_print groups/ctr_files
mr_print ctr_files/OpenDcae-c12
mr_print ctr_files/OpenDcae-c13
mr_print ctr_files/OpenDcae-c14
mr_print ctr_files/OpenDcae-c15
mr_print ctr_files/OpenDcae-c16
mr_print ctr_unique_files
mr_print groups/ctr_unique_files
mr_print ctr_unique_files/OpenDcae-c12
mr_print ctr_unique_files/OpenDcae-c13
mr_print ctr_unique_files/OpenDcae-c14
mr_print ctr_unique_files/OpenDcae-c15
mr_print ctr_unique_files/OpenDcae-c16
mr_print ctr_events
mr_print groups/ctr_events
mr_print ctr_events/OpenDcae-c12
mr_print ctr_events/OpenDcae-c13
mr_print ctr_events/OpenDcae-c14
mr_print ctr_events/OpenDcae-c15
mr_print ctr_events/OpenDcae-c16
mr_contain_str groups "OpenDcae-c12,OpenDcae-c13,OpenDcae-c14,OpenDcae-c15,OpenDcae-c16"
mr_contain_str changeids "PM_MEAS_FILES:CTR_MEAS_FILES,CTR_MEAS_FILES,LOG_FILES,PM_MEAS_FILES:TEST_FILES,TEST_FILES:TEMP_FILES"
mr_contain_str fileprefixes $MR_FILE_PREFIX_MAPPING
mr_contain_str tc_info "TC#1000"
mr_contain_str status "Started"
mr_contain_str stop "Stopped"
mr_contain_str start "Started"
mr_equal ctr_requests 0
mr_contain_str groups/ctr_requests "0,0,0,0,0"
mr_equal ctr_requests/OpenDcae-c12 0
mr_equal ctr_requests/OpenDcae-c13 0
mr_equal ctr_requests/OpenDcae-c14 0
mr_equal ctr_requests/OpenDcae-c15 0
mr_equal ctr_requests/OpenDcae-c16 0
mr_equal ctr_responses 0
mr_contain_str groups/ctr_responses "0,0,0,0,0"
mr_equal ctr_responses/OpenDcae-c12 0
mr_equal ctr_responses/OpenDcae-c13 0
mr_equal ctr_responses/OpenDcae-c14 0
mr_equal ctr_responses/OpenDcae-c15 0
mr_equal ctr_responses/OpenDcae-c16 0
mr_equal ctr_files 0
mr_contain_str groups/ctr_files "0,0,0,0,0"
mr_equal ctr_files/OpenDcae-c12 0
mr_equal ctr_files/OpenDcae-c13 0
mr_equal ctr_files/OpenDcae-c14 0
mr_equal ctr_files/OpenDcae-c15 0
mr_equal ctr_files/OpenDcae-c16 0
mr_equal ctr_unique_files 0
mr_contain_str groups/ctr_unique_files "0,0,0,0,0"
mr_equal ctr_unique_files/OpenDcae-c12 0
mr_equal ctr_unique_files/OpenDcae-c13 0
mr_equal ctr_unique_files/OpenDcae-c14 0
mr_equal ctr_unique_files/OpenDcae-c15 0
mr_equal ctr_unique_files/OpenDcae-c16 0
mr_equal ctr_events 0
mr_contain_str groups/ctr_events "0,0,0,0,0"
mr_equal ctr_events/OpenDcae-c12 0
mr_equal ctr_events/OpenDcae-c13 0
mr_equal ctr_events/OpenDcae-c14 0
mr_equal ctr_events/OpenDcae-c15 0
mr_equal ctr_events/OpenDcae-c16 0
dr_print ""
dr_print tc_info
dr_print execution_time
dr_print feeds
dr_print ctr_publish_query
dr_print feeds/ctr_publish_query
dr_print ctr_publish_query/1
dr_print ctr_publish_query/2
dr_print ctr_publish_query/3
dr_print ctr_publish_query/4
dr_print ctr_publish_query/5
dr_print ctr_publish_query_published
dr_print feeds/ctr_publish_query_published
dr_print ctr_publish_query_published/1
dr_print ctr_publish_query_published/2
dr_print ctr_publish_query_published/3
dr_print ctr_publish_query_published/4
dr_print ctr_publish_query_published/5
dr_print ctr_publish_query_not_published
dr_print feeds/ctr_publish_query_not_published
dr_print ctr_publish_query_not_published/1
dr_print ctr_publish_query_not_published/2
dr_print ctr_publish_query_not_published/3
dr_print ctr_publish_query_not_published/4
dr_print ctr_publish_query_not_published/5
dr_print ctr_publish_req
dr_print feeds/ctr_publish_req
dr_print ctr_publish_req/1
dr_print ctr_publish_req/2
dr_print ctr_publish_req/3
dr_print ctr_publish_req/4
dr_print ctr_publish_req/5
dr_print ctr_publish_req_redirect
dr_print feeds/ctr_publish_req_redirect
dr_print ctr_publish_req_redirect/1
dr_print ctr_publish_req_redirect/2
dr_print ctr_publish_req_redirect/3
dr_print ctr_publish_req_redirect/4
dr_print ctr_publish_req_redirect/5
dr_print ctr_publish_req_published
dr_print feeds/ctr_publish_req_published
dr_print ctr_publish_req_published/1
dr_print ctr_publish_req_published/2
dr_print ctr_publish_req_published/3
dr_print ctr_publish_req_published/4
dr_print ctr_publish_req_published/5
dr_print ctr_published_files
dr_print feeds/ctr_published_files
dr_print ctr_published_files/1
dr_print ctr_published_files/2
dr_print ctr_published_files/3
dr_print ctr_published_files/4
dr_print ctr_published_files/5
dr_print ctr_double_publish
dr_print feeds/ctr_double_publish
dr_print ctr_double_publish/1
dr_print ctr_double_publish/2
dr_print ctr_double_publish/3
dr_print ctr_double_publish/4
dr_print ctr_double_publish/5
dr_print ctr_publish_query_bad_file_prefix
dr_print feeds/ctr_publish_query_bad_file_prefix
dr_print ctr_publish_query_bad_file_prefix/1
dr_print ctr_publish_query_bad_file_prefix/2
dr_print ctr_publish_query_bad_file_prefix/3
dr_print ctr_publish_query_bad_file_prefix/4
dr_print ctr_publish_query_bad_file_prefix/5
dr_print ctr_publish_req_bad_file_prefix
dr_print feeds/ctr_publish_req_bad_file_prefix
dr_print ctr_publish_req_bad_file_prefix/1
dr_print ctr_publish_req_bad_file_prefix/2
dr_print ctr_publish_req_bad_file_prefix/3
dr_print ctr_publish_req_bad_file_prefix/4
dr_print ctr_publish_req_bad_file_prefix/5
dr_contain_str tc_info "normal"
dr_contain_str execution_time "0:"
dr_contain_str feeds "1:A,2:B,3:C,4:D,5:E"
dr_equal ctr_publish_query 0
dr_contain_str feeds/ctr_publish_query "0,0,0,0,0"
dr_equal ctr_publish_query/1 0
dr_equal ctr_publish_query/2 0
dr_equal ctr_publish_query/3 0
dr_equal ctr_publish_query/4 0
dr_equal ctr_publish_query/5 0
dr_equal ctr_publish_query_published 0
dr_contain_str feeds/ctr_publish_query_published "0,0,0,0,0"
dr_equal ctr_publish_query_published/1 0
dr_equal ctr_publish_query_published/2 0
dr_equal ctr_publish_query_published/3 0
dr_equal ctr_publish_query_published/4 0
dr_equal ctr_publish_query_published/5 0
dr_equal ctr_publish_query_not_published 0
dr_contain_str feeds/ctr_publish_query_not_published "0,0,0,0,0"
dr_equal ctr_publish_query_not_published/1 0
dr_equal ctr_publish_query_not_published/2 0
dr_equal ctr_publish_query_not_published/3 0
dr_equal ctr_publish_query_not_published/4 0
dr_equal ctr_publish_query_not_published/5 0
dr_equal ctr_publish_req 0
dr_contain_str feeds/ctr_publish_req "0,0,0,0,0"
dr_equal ctr_publish_req/1 0
dr_equal ctr_publish_req/2 0
dr_equal ctr_publish_req/3 0
dr_equal ctr_publish_req/4 0
dr_equal ctr_publish_req/5 0
dr_equal ctr_publish_req_redirect 0
dr_contain_str feeds/ctr_publish_req_redirect "0,0,0,0,0"
dr_equal ctr_publish_req_redirect/1 0
dr_equal ctr_publish_req_redirect/2 0
dr_equal ctr_publish_req_redirect/3 0
dr_equal ctr_publish_req_redirect/4 0
dr_equal ctr_publish_req_redirect/5 0
dr_equal ctr_publish_req_published 0
dr_contain_str feeds/ctr_publish_req_published "0,0,0,0,0"
dr_equal ctr_publish_req_published/1 0
dr_equal ctr_publish_req_published/2 0
dr_equal ctr_publish_req_published/3 0
dr_equal ctr_publish_req_published/4 0
dr_equal ctr_publish_req_published/5 0
dr_equal ctr_published_files 0
dr_contain_str feeds/ctr_published_files "0,0,0,0,0"
dr_equal ctr_published_files/1 0
dr_equal ctr_published_files/2 0
dr_equal ctr_published_files/3 0
dr_equal ctr_published_files/4 0
dr_equal ctr_published_files/5 0
dr_equal ctr_double_publish 0
dr_contain_str feeds/ctr_double_publish "0,0,0,0,0"
dr_equal ctr_double_publish/1 0
dr_equal ctr_double_publish/2 0
dr_equal ctr_double_publish/3 0
dr_equal ctr_double_publish/4 0
dr_equal ctr_double_publish/5 0
dr_equal ctr_publish_query_bad_file_prefix 0
dr_contain_str feeds/ctr_publish_query_bad_file_prefix "0,0,0,0,0"
dr_equal ctr_publish_query_bad_file_prefix/1 0
dr_equal ctr_publish_query_bad_file_prefix/2 0
dr_equal ctr_publish_query_bad_file_prefix/3 0
dr_equal ctr_publish_query_bad_file_prefix/4 0
dr_equal ctr_publish_query_bad_file_prefix/5 0
dr_equal ctr_publish_req_bad_file_prefix 0
dr_contain_str feeds/ctr_publish_req_bad_file_prefix "0,0,0,0,0"
dr_equal ctr_publish_req_bad_file_prefix/1 0
dr_equal ctr_publish_req_bad_file_prefix/2 0
dr_equal ctr_publish_req_bad_file_prefix/3 0
dr_equal ctr_publish_req_bad_file_prefix/4 0
dr_equal ctr_publish_req_bad_file_prefix/5 0
drr_print ""
drr_print tc_info
drr_print execution_time
drr_print feeds
drr_print speed
drr_print ctr_publish_requests
drr_print feeds/ctr_publish_requests
drr_print ctr_publish_requests/1
drr_print ctr_publish_requests/2
drr_print ctr_publish_requests/3
drr_print ctr_publish_requests/4
drr_print ctr_publish_requests/5
drr_print ctr_publish_requests_bad_file_prefix
drr_print feeds/ctr_publish_requests_bad_file_prefix
drr_print ctr_publish_requests_bad_file_prefix/1
drr_print ctr_publish_requests_bad_file_prefix/2
drr_print ctr_publish_requests_bad_file_prefix/3
drr_print ctr_publish_requests_bad_file_prefix/4
drr_print ctr_publish_requests_bad_file_prefix/5
drr_print ctr_publish_responses
drr_print feeds/ctr_publish_responses
drr_print ctr_publish_responses/1
drr_print ctr_publish_responses/2
drr_print ctr_publish_responses/3
drr_print ctr_publish_responses/4
drr_print ctr_publish_responses/5
drr_print time_lastpublish
drr_print feeds/time_lastpublish
drr_print time_lastpublish/1
drr_print time_lastpublish/2
drr_print time_lastpublish/3
drr_print time_lastpublish/4
drr_print time_lastpublish/5
drr_print dwl_volume
drr_print feeds/dwl_volume
drr_print dwl_volume/1
drr_print dwl_volume/2
drr_print dwl_volume/3
drr_print dwl_volume/4
drr_print dwl_volume/5
drr_contain_str tc_info "normal"
drr_contain_str execution_time "0:"
drr_contain_str feeds "1:A,2:B,3:C,4:D,5:E"
drr_equal speed 0
drr_equal ctr_publish_requests 0
drr_contain_str feeds/ctr_publish_requests "0,0,0,0,0"
drr_equal ctr_publish_requests/1 0
drr_equal ctr_publish_requests/2 0
drr_equal ctr_publish_requests/3 0
drr_equal ctr_publish_requests/4 0
drr_equal ctr_publish_requests/5 0
drr_equal ctr_publish_requests_bad_file_prefix 0
drr_contain_str feeds/ctr_publish_requests_bad_file_prefix "0,0,0,0,0"
drr_equal ctr_publish_requests_bad_file_prefix/1 0
drr_equal ctr_publish_requests_bad_file_prefix/2 0
drr_equal ctr_publish_requests_bad_file_prefix/3 0
drr_equal ctr_publish_requests_bad_file_prefix/4 0
drr_equal ctr_publish_requests_bad_file_prefix/5 0
drr_equal ctr_publish_responses 0
drr_contain_str feeds/ctr_publish_responses "0,0,0,0,0"
drr_equal ctr_publish_responses/1 0
drr_equal ctr_publish_responses/2 0
drr_equal ctr_publish_responses/3 0
drr_equal ctr_publish_responses/4 0
drr_equal ctr_publish_responses/5 0
drr_contain_str time_lastpublish "--:--"
drr_contain_str feeds/time_lastpublish "--:--,--:--,--:--,--:--,--:--"
drr_contain_str time_lastpublish/1 "--:--"
drr_contain_str time_lastpublish/2 "--:--"
drr_contain_str time_lastpublish/3 "--:--"
drr_contain_str time_lastpublish/4 "--:--"
drr_contain_str time_lastpublish/5 "--:--"
drr_equal dwl_volume 0
drr_contain_str feeds/dwl_volume "0,0,0,0,0"
drr_equal dwl_volume/1 0
drr_equal dwl_volume/2 0
drr_equal dwl_volume/3 0
drr_equal dwl_volume/4 0
drr_equal dwl_volume/5 0
dr_equal ctr_published_files 0 60
mr_print tc_info
dr_print tc_info
drr_print tc_info
start_dfc 0
start_dfc 1
start_dfc 2
start_dfc 3
start_dfc 4
dr_greater ctr_published_files 1 60
sleep_wait 30
mr_greater ctr_requests 1
mr_greater ctr_events 1
mr_greater ctr_unique_files 1
mr_greater ctr_unique_PNFs 1
dr_greater ctr_publish_query 1
dr_equal ctr_publish_query_published 0
dr_greater ctr_publish_query_not_published 1
dr_greater ctr_publish_req 1
dr_greater ctr_publish_req_redirect 1
dr_equal ctr_publish_req_published 0
dr_greater ctr_published_files 1
dr_equal ctr_double_publish 0
drr_greater ctr_publish_requests 1
drr_greater ctr_publish_responses 1
drr_greater dwl_volume 1000000
####There is a risk of double publishing when running multiple DFCs.
####The related counters ctr_publish_query_published and ctr_double_publish may be non-zero.
check_dfc_logs
#### TEST COMPLETE ####
store_logs END
print_result
|