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 | |
| 11 | export DR_TC="--tc normal" |
| 12 | export DR_REDIR_TC="--tc normal" |
| 13 | export MR_TC="--tc100" |
| 14 | export BC_TC="" |
| 15 | export NUM_FTPFILES="1" |
| 16 | export NUM_PNFS="1" |
| 17 | export FILE_SIZE="ALL" |
| 18 | export FTP_TYPE="ALL" |
| 19 | |
| 20 | log_sim_settings |
| 21 | |
| 22 | start_simulators |
| 23 | |
| 24 | mr_equal ctr_requests 0 60 |
| 25 | dr_equal ctr_published_files 0 60 |
| 26 | |
| 27 | |
| 28 | start_dfc |
| 29 | |
| 30 | mr_equal ctr_events 1 60 |
| 31 | mr_contain_str tc_info "TC#100" |
| 32 | dr_equal ctr_published_files 1 30 |
| 33 | |
| 34 | |
| 35 | kill_mr |
| 36 | export MR_TC="--tc101" |
| 37 | log_sim_settings |
| 38 | start_simulators |
| 39 | |
| 40 | mr_print tc_info |
| 41 | mr_equal ctr_events 1 60 |
| 42 | mr_contain_str tc_info "TC#101" |
| 43 | dr_equal ctr_published_files 2 30 |
| 44 | |
| 45 | kill_mr |
| 46 | export MR_TC="--tc102" |
| 47 | log_sim_settings |
| 48 | start_simulators |
| 49 | |
| 50 | mr_print tc_info |
| 51 | mr_equal ctr_events 1 60 |
| 52 | mr_contain_str tc_info "TC#102" |
| 53 | dr_equal ctr_published_files 3 30 |
| 54 | |
| 55 | kill_mr |
| 56 | export MR_TC="--tc200" |
| 57 | log_sim_settings |
| 58 | start_simulators |
| 59 | |
| 60 | mr_print tc_info |
| 61 | mr_equal ctr_events 1 60 |
| 62 | mr_contain_str tc_info "TC#200" |
| 63 | dr_equal ctr_published_files 3 30 |
| 64 | |
| 65 | kill_mr |
| 66 | export MR_TC="--tc201" |
| 67 | start_simulators |
| 68 | |
| 69 | |
| 70 | mr_print tc_info |
| 71 | mr_equal ctr_events 1 60 |
| 72 | mr_contain_str tc_info "TC#201" |
| 73 | dr_equal ctr_published_files 3 30 |
| 74 | |
| 75 | kill_mr |
| 76 | export MR_TC="--tc202" |
| 77 | start_simulators |
| 78 | |
| 79 | |
| 80 | mr_print tc_info |
| 81 | mr_equal ctr_events 1 60 |
| 82 | mr_contain_str tc_info "TC#202" |
| 83 | dr_equal ctr_published_files 3 30 |
| 84 | |
| 85 | |
| 86 | dr_equal ctr_publish_query 3 |
| 87 | dr_equal ctr_publish_query_published 0 |
| 88 | dr_equal ctr_publish_query_not_published 3 |
| 89 | dr_equal ctr_publish_req 3 |
| 90 | dr_equal ctr_publish_req_redirect 3 |
| 91 | dr_equal ctr_publish_req_published 0 |
| 92 | dr_equal ctr_published_files 3 |
| 93 | dr_equal ctr_double_publish 0 |
| 94 | |
| 95 | drr_equal ctr_publish_requests 3 |
| 96 | drr_equal ctr_publish_responses 3 |
| 97 | |
| 98 | drr_equal dwl_volume 56000000 |
| 99 | |
| 100 | check_dfc_log |
| 101 | |
| 102 | #### TEST COMPLETE #### |
| 103 | |
| 104 | store_logs END |
| 105 | |
| 106 | print_result |