BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | TC_ONELINE_DESCR="Kill SFTP sever for 10+ sec during download" |
| 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="--tc500" |
| 14 | export BC_TC="" |
| 15 | export NUM_FTPFILES="2" |
| 16 | export NUM_PNFS="700" |
| 17 | export FILE_SIZE="1MB" |
| 18 | export FTP_TYPE="SFTP" |
| 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 | mr_print tc_info |
| 28 | dr_print tc_info |
| 29 | drr_print tc_info |
| 30 | |
| 31 | start_dfc |
| 32 | |
| 33 | dr_greater ctr_published_files 100 200 |
| 34 | |
| 35 | kill_sftp |
| 36 | sleep_wait 10 #Server will be gone longer due to long startup time of ftp (ftp file creatation) |
| 37 | start_simulators |
| 38 | |
| 39 | dr_equal ctr_published_files 1400 400 |
| 40 | |
| 41 | sleep_wait 30 |
| 42 | |
| 43 | dr_equal ctr_published_files 1400 |
| 44 | |
| 45 | mr_greater ctr_requests 1 |
| 46 | |
| 47 | mr_equal ctr_events 700 |
| 48 | mr_equal ctr_unique_files 1400 |
| 49 | mr_equal ctr_unique_PNFs 700 |
| 50 | |
| 51 | dr_equal ctr_publish_query 1400 |
| 52 | dr_equal ctr_publish_query_published 0 |
| 53 | dr_equal ctr_publish_query_not_published 1400 |
| 54 | dr_equal ctr_publish_req 1400 |
| 55 | dr_equal ctr_publish_req_redirect 1400 |
| 56 | dr_equal ctr_publish_req_published 0 |
| 57 | dr_equal ctr_published_files 1400 |
| 58 | dr_equal ctr_double_publish 0 |
| 59 | |
| 60 | drr_equal ctr_publish_requests 1400 |
| 61 | drr_equal ctr_publish_responses 1400 |
| 62 | |
| 63 | drr_equal dwl_volume 1400000000 |
| 64 | |
| 65 | check_dfc_log |
| 66 | |
| 67 | #### TEST COMPLETE #### |
| 68 | |
| 69 | store_logs END |
| 70 | |
| 71 | print_result |