BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | TC_ONELINE_DESCR="DFC file retention using DR. Publish 1 file, retstart MR sim and dfc. No new publish." |
| 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 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_equal ctr_published_files 1 60 |
| 34 | |
| 35 | sleep_wait 30 |
| 36 | |
| 37 | dr_equal ctr_published_files 1 |
| 38 | |
| 39 | |
| 40 | mr_equal ctr_events 1 |
| 41 | mr_equal ctr_unique_files 1 |
| 42 | mr_equal ctr_unique_PNFs 1 |
| 43 | |
| 44 | dr_equal ctr_publish_query 1 |
| 45 | dr_equal ctr_publish_query_published 0 |
| 46 | dr_equal ctr_publish_query_not_published 1 |
| 47 | dr_equal ctr_publish_req 1 |
| 48 | dr_equal ctr_publish_req_redirect 1 |
| 49 | dr_equal ctr_publish_req_published 0 |
| 50 | dr_equal ctr_published_files 1 |
| 51 | dr_equal ctr_double_publish 0 |
| 52 | |
| 53 | drr_equal ctr_publish_requests 1 |
| 54 | drr_equal ctr_publish_responses 1 |
| 55 | |
| 56 | drr_equal dwl_volume 1000000 |
| 57 | |
| 58 | check_dfc_log |
| 59 | |
| 60 | store_logs PART1 |
| 61 | |
| 62 | kill_mr |
| 63 | kill_dfc |
| 64 | start_simulators |
| 65 | |
| 66 | mr_equal ctr_events 0 60 |
| 67 | mr_equal ctr_unique_files 0 |
| 68 | mr_equal ctr_unique_PNFs 0 |
| 69 | |
| 70 | start_dfc |
| 71 | |
| 72 | sleep_wait 30 |
| 73 | |
| 74 | mr_equal ctr_events 1 60 |
| 75 | mr_equal ctr_unique_files 1 |
| 76 | mr_equal ctr_unique_PNFs 1 |
| 77 | |
| 78 | dr_equal ctr_publish_query 2 |
| 79 | dr_equal ctr_publish_query_published 1 |
| 80 | dr_equal ctr_publish_query_not_published 1 |
| 81 | dr_equal ctr_publish_req 1 |
| 82 | dr_equal ctr_publish_req_redirect 1 |
| 83 | dr_equal ctr_publish_req_published 0 |
| 84 | dr_equal ctr_published_files 1 |
| 85 | dr_equal ctr_double_publish 0 |
| 86 | |
| 87 | drr_equal ctr_publish_requests 1 |
| 88 | drr_equal ctr_publish_responses 1 |
| 89 | |
| 90 | drr_equal dwl_volume 1000000 |
| 91 | |
| 92 | check_dfc_log |
| 93 | |
| 94 | #### TEST COMPLETE #### |
| 95 | |
| 96 | store_logs END |
| 97 | |
| 98 | print_result |