BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
maximesson | 69311bf | 2019-08-30 14:05:15 +0000 | [diff] [blame] | 3 | TC_ONELINE_DESCR="100 events with 1 1MB file in each event from one PNF using SFTP with feed reconfigure" |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 4 | |
| 5 | . ../common/testcase_common.sh $1 $2 |
| 6 | |
| 7 | #### TEST BEGIN #### |
| 8 | |
| 9 | clean_containers |
| 10 | |
| 11 | export MR_TC="--tc110" |
| 12 | export MR_GROUPS="OpenDcae-c12:PM_MEAS_FILES" |
| 13 | export MR_FILE_PREFIX_MAPPING="PM_MEAS_FILES:A" |
| 14 | |
| 15 | export DR_TC="--tc normal" |
maximesson | 69311bf | 2019-08-30 14:05:15 +0000 | [diff] [blame] | 16 | export DR_FEEDS="1:A,2:A" |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 17 | |
| 18 | export DR_REDIR_TC="--tc normal" |
maximesson | 69311bf | 2019-08-30 14:05:15 +0000 | [diff] [blame] | 19 | export DR_REDIR_FEEDS="1:A,2:A" |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 20 | |
| 21 | export NUM_FTPFILES="200" |
| 22 | export NUM_PNFS="1" |
| 23 | export FILE_SIZE="1MB" |
| 24 | export FTP_TYPE="SFTP" |
| 25 | export FTP_FILE_PREFIXES="A" |
| 26 | export NUM_FTP_SERVERS=1 |
| 27 | |
| 28 | log_sim_settings |
| 29 | |
| 30 | start_simulators |
| 31 | |
| 32 | consul_config_app 0 "../simulator-group/consul/c12_feed2_PM.json" |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 33 | |
| 34 | mr_equal ctr_requests 0 60 |
| 35 | dr_equal ctr_published_files 0 60 |
| 36 | |
| 37 | mr_print tc_info |
| 38 | dr_print tc_info |
| 39 | drr_print tc_info |
| 40 | |
| 41 | dr_contain_str feeds "2:A" |
| 42 | drr_contain_str feeds "2:A" |
| 43 | |
| 44 | start_dfc 0 |
| 45 | |
maximesson | 69311bf | 2019-08-30 14:05:15 +0000 | [diff] [blame] | 46 | dr_equal ctr_published_files 5 900 |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 47 | |
| 48 | consul_config_app 0 "../simulator-group/consul/c12_feed1_PM.json" |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 49 | |
maximesson | 69311bf | 2019-08-30 14:05:15 +0000 | [diff] [blame] | 50 | mr_equal ctr_events 100 1800 |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 51 | mr_equal ctr_unique_files 100 |
| 52 | mr_equal ctr_unique_PNFs 1 |
| 53 | |
| 54 | dr_greater ctr_published_files 1 |
| 55 | |
| 56 | dr_contain_str feeds "1:A" |
| 57 | drr_contain_str feeds "1:A" |
| 58 | |
| 59 | check_dfc_logs |
| 60 | |
| 61 | #### TEST COMPLETE #### |
| 62 | |
| 63 | store_logs END |
| 64 | |
| 65 | print_result |