BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | TC_ONELINE_DESCR="Poll, download and publish of 1MB, 5MB and 50MB using both SFTP and SFTP with restart of MR between each file." |
| 4 | |
| 5 | . ../common/testcase_common.sh $1 $2 |
| 6 | |
| 7 | #### TEST BEGIN #### |
| 8 | |
| 9 | clean_containers |
| 10 | |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 11 | export MR_TC="--tc100" |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 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" |
| 16 | export DR_FEEDS="2:A" |
| 17 | |
| 18 | export DR_REDIR_TC="--tc normal" |
| 19 | export DR_REDIR_FEEDS="2:A" |
| 20 | |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 21 | export NUM_FTPFILES="1" |
| 22 | export NUM_PNFS="1" |
| 23 | export FILE_SIZE="ALL" |
| 24 | export FTP_TYPE="ALL" |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 25 | export FTP_FILE_PREFIXES="A" |
| 26 | export NUM_FTP_SERVERS=1 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 27 | |
| 28 | log_sim_settings |
| 29 | |
| 30 | start_simulators |
| 31 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 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 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 36 | |
| 37 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 38 | start_dfc 0 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 39 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 40 | mr_equal ctr_events 1 60 |
| 41 | mr_contain_str tc_info "TC#100" |
| 42 | dr_equal ctr_published_files 1 30 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 43 | |
| 44 | |
| 45 | kill_mr |
| 46 | export MR_TC="--tc101" |
| 47 | log_sim_settings |
| 48 | start_simulators |
| 49 | |
| 50 | mr_print tc_info |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 51 | mr_equal ctr_events 1 60 |
| 52 | mr_contain_str tc_info "TC#101" |
| 53 | dr_equal ctr_published_files 2 30 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 54 | |
| 55 | kill_mr |
| 56 | export MR_TC="--tc102" |
| 57 | log_sim_settings |
| 58 | start_simulators |
| 59 | |
| 60 | mr_print tc_info |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 61 | mr_equal ctr_events 1 60 |
| 62 | mr_contain_str tc_info "TC#102" |
| 63 | dr_equal ctr_published_files 3 30 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 64 | |
| 65 | kill_mr |
| 66 | export MR_TC="--tc200" |
| 67 | log_sim_settings |
| 68 | start_simulators |
| 69 | |
| 70 | mr_print tc_info |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 71 | mr_equal ctr_events 1 60 |
| 72 | mr_contain_str tc_info "TC#200" |
| 73 | dr_equal ctr_published_files 3 30 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 74 | |
| 75 | kill_mr |
| 76 | export MR_TC="--tc201" |
| 77 | start_simulators |
| 78 | |
| 79 | |
| 80 | mr_print tc_info |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 81 | mr_equal ctr_events 1 60 |
| 82 | mr_contain_str tc_info "TC#201" |
| 83 | dr_equal ctr_published_files 3 30 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 84 | |
| 85 | kill_mr |
| 86 | export MR_TC="--tc202" |
| 87 | start_simulators |
| 88 | |
| 89 | |
| 90 | mr_print tc_info |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 91 | mr_equal ctr_events 1 60 |
| 92 | mr_contain_str tc_info "TC#202" |
| 93 | dr_equal ctr_published_files 3 30 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 94 | |
| 95 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 96 | dr_equal ctr_publish_query 3 |
| 97 | dr_equal ctr_publish_query_bad_file_prefix 0 |
| 98 | dr_equal ctr_publish_query_published 0 |
| 99 | dr_equal ctr_publish_query_not_published 3 |
| 100 | dr_equal ctr_publish_req 3 |
| 101 | dr_equal ctr_publish_req_bad_file_prefix 0 |
| 102 | dr_equal ctr_publish_req_redirect 3 |
| 103 | dr_equal ctr_publish_req_published 0 |
| 104 | dr_equal ctr_published_files 3 |
| 105 | dr_equal ctr_double_publish 0 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 106 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 107 | drr_equal ctr_publish_requests 3 |
| 108 | drr_equal ctr_publish_requests_bad_file_prefix 0 |
| 109 | drr_equal ctr_publish_responses 3 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 110 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 111 | drr_equal dwl_volume 56000000 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 112 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 113 | check_dfc_logs |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 114 | |
| 115 | #### TEST COMPLETE #### |
| 116 | |
| 117 | store_logs END |
| 118 | |
| 119 | print_result |