BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | |
| 3 | TC_ONELINE_DESCR="DFC stop before polling event (no polling during stopped), then dfc start." |
| 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="1MB" |
| 18 | export FTP_TYPE="SFTP" |
| 19 | |
| 20 | log_sim_settings |
| 21 | |
| 22 | start_simulators |
| 23 | |
| 24 | mr_equal ctr_requests 0 30 |
| 25 | |
| 26 | kill_mr |
| 27 | |
| 28 | start_dfc |
| 29 | |
| 30 | sleep_wait 30 |
| 31 | |
| 32 | dfc_contain_str stopDatafile "Datafile Service has already been stopped!" |
| 33 | |
| 34 | start_simulators |
| 35 | |
| 36 | sleep_wait 120 |
| 37 | |
| 38 | mr_less ctr_requests 2 |
| 39 | |
| 40 | dfc_contain_str start "Datafile Service has been started!" |
| 41 | |
| 42 | dr_equal ctr_published_files 1 60 |
| 43 | |
| 44 | mr_greater ctr_requests 0 |
| 45 | |
| 46 | mr_equal ctr_events 1 |
| 47 | mr_equal ctr_unique_files 1 |
| 48 | mr_equal ctr_unique_PNFs 1 |
| 49 | |
| 50 | dr_equal ctr_publish_query 1 |
| 51 | dr_equal ctr_publish_query_published 0 |
| 52 | dr_equal ctr_publish_query_not_published 1 |
| 53 | dr_equal ctr_publish_req 1 |
| 54 | dr_equal ctr_publish_req_redirect 1 |
| 55 | dr_equal ctr_publish_req_published 0 |
| 56 | dr_equal ctr_published_files 1 |
| 57 | dr_equal ctr_double_publish 0 |
| 58 | |
| 59 | drr_equal ctr_publish_requests 1 |
| 60 | drr_equal ctr_publish_responses 1 |
| 61 | |
| 62 | drr_equal dwl_volume 1000000 |
| 63 | |
| 64 | check_dfc_log |
| 65 | |
| 66 | #### TEST COMPLETE #### |
| 67 | |
| 68 | store_logs END |
| 69 | |
| 70 | print_result |