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" |
| 33 | consul_config_dmaap 0 "../simulator-group/consul/dmaap_feed2.json" |
| 34 | |
| 35 | mr_equal ctr_requests 0 60 |
| 36 | dr_equal ctr_published_files 0 60 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 37 | |
| 38 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 39 | start_dfc 0 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 40 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 41 | mr_equal ctr_events 1 60 |
| 42 | mr_contain_str tc_info "TC#100" |
| 43 | dr_equal ctr_published_files 1 30 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 44 | |
| 45 | |
| 46 | kill_mr |
| 47 | export MR_TC="--tc101" |
| 48 | log_sim_settings |
| 49 | start_simulators |
| 50 | |
| 51 | mr_print tc_info |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 52 | mr_equal ctr_events 1 60 |
| 53 | mr_contain_str tc_info "TC#101" |
| 54 | dr_equal ctr_published_files 2 30 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 55 | |
| 56 | kill_mr |
| 57 | export MR_TC="--tc102" |
| 58 | log_sim_settings |
| 59 | start_simulators |
| 60 | |
| 61 | mr_print tc_info |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 62 | mr_equal ctr_events 1 60 |
| 63 | mr_contain_str tc_info "TC#102" |
| 64 | dr_equal ctr_published_files 3 30 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 65 | |
| 66 | kill_mr |
| 67 | export MR_TC="--tc200" |
| 68 | log_sim_settings |
| 69 | start_simulators |
| 70 | |
| 71 | mr_print tc_info |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 72 | mr_equal ctr_events 1 60 |
| 73 | mr_contain_str tc_info "TC#200" |
| 74 | dr_equal ctr_published_files 3 30 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 75 | |
| 76 | kill_mr |
| 77 | export MR_TC="--tc201" |
| 78 | start_simulators |
| 79 | |
| 80 | |
| 81 | mr_print tc_info |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 82 | mr_equal ctr_events 1 60 |
| 83 | mr_contain_str tc_info "TC#201" |
| 84 | dr_equal ctr_published_files 3 30 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 85 | |
| 86 | kill_mr |
| 87 | export MR_TC="--tc202" |
| 88 | start_simulators |
| 89 | |
| 90 | |
| 91 | mr_print tc_info |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 92 | mr_equal ctr_events 1 60 |
| 93 | mr_contain_str tc_info "TC#202" |
| 94 | dr_equal ctr_published_files 3 30 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 95 | |
| 96 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 97 | dr_equal ctr_publish_query 3 |
| 98 | dr_equal ctr_publish_query_bad_file_prefix 0 |
| 99 | dr_equal ctr_publish_query_published 0 |
| 100 | dr_equal ctr_publish_query_not_published 3 |
| 101 | dr_equal ctr_publish_req 3 |
| 102 | dr_equal ctr_publish_req_bad_file_prefix 0 |
| 103 | dr_equal ctr_publish_req_redirect 3 |
| 104 | dr_equal ctr_publish_req_published 0 |
| 105 | dr_equal ctr_published_files 3 |
| 106 | dr_equal ctr_double_publish 0 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 107 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 108 | drr_equal ctr_publish_requests 3 |
| 109 | drr_equal ctr_publish_requests_bad_file_prefix 0 |
| 110 | drr_equal ctr_publish_responses 3 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 111 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 112 | drr_equal dwl_volume 56000000 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 113 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 114 | check_dfc_logs |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 115 | |
| 116 | #### TEST COMPLETE #### |
| 117 | |
| 118 | store_logs END |
| 119 | |
| 120 | print_result |