BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | TC_ONELINE_DESCR="DFC start and stop during poll, download and publish." |
| 4 | |
| 5 | . ../common/testcase_common.sh $1 $2 |
| 6 | |
| 7 | #### TEST BEGIN #### |
| 8 | |
| 9 | clean_containers |
| 10 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 11 | export MR_TC="--tc1300" |
| 12 | export MR_GROUPS="OpenDcae-c12:PM_MEAS_FILES" |
| 13 | export MR_FILE_PREFIX_MAPPING="PM_MEAS_FILES:A" |
| 14 | |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 15 | export DR_TC="--tc normal" |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 16 | export DR_FEEDS="2:A" |
| 17 | |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 18 | export DR_REDIR_TC="--tc normal" |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 19 | export DR_REDIR_FEEDS="2:A" |
| 20 | |
| 21 | export NUM_FTPFILES="200" |
| 22 | export NUM_PNFS="700" |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 23 | export FILE_SIZE="1MB" |
| 24 | export FTP_TYPE="SFTP" |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 25 | export FTP_FILE_PREFIXES="A" |
| 26 | export NUM_FTP_SERVERS=5 |
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" |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 33 | |
| 34 | mr_equal ctr_requests 0 60 |
| 35 | dr_equal ctr_published_files 0 60 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 36 | |
| 37 | mr_print tc_info |
| 38 | dr_print tc_info |
| 39 | drr_print tc_info |
| 40 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 41 | start_dfc 0 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 42 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 43 | mr_equal ctr_events 35 120 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 44 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 45 | dfc_contain_str 0 heartbeat "I'm living!" |
| 46 | dfc_contain_str 0 stopDatafile "Datafile Service has already been stopped!" |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 47 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 48 | dr_equal ctr_published_files 3500 900 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 49 | |
| 50 | sleep_wait 120 |
| 51 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 52 | dfc_contain_str 0 start "Datafile Service has been started!" |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 53 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 54 | mr_equal ctr_events 70 120 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 55 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 56 | dfc_contain_str 0 heartbeat "I'm living!" |
| 57 | dfc_contain_str 0 stopDatafile "Datafile Service has already been stopped!" |
| 58 | |
| 59 | dr_equal ctr_published_files 7000 900 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 60 | |
| 61 | sleep_wait 120 |
| 62 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 63 | dfc_contain_str 0 start "Datafile Service has been started!" |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 64 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 65 | dr_equal ctr_published_files 7000 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 66 | |
| 67 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 68 | mr_equal ctr_events 70 |
| 69 | mr_equal ctr_unique_files 7000 |
| 70 | mr_equal ctr_unique_PNFs 70 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 71 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 72 | dr_equal ctr_publish_query 7000 |
| 73 | dr_equal ctr_publish_query_bad_file_prefix 0 |
| 74 | dr_equal ctr_publish_query_published 0 |
| 75 | dr_equal ctr_publish_query_not_published 7000 |
| 76 | dr_equal ctr_publish_req 7000 |
| 77 | dr_equal ctr_publish_req_bad_file_prefix 0 |
| 78 | dr_equal ctr_publish_req_redirect 7000 |
| 79 | dr_equal ctr_publish_req_published 0 |
| 80 | dr_equal ctr_published_files 7000 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 81 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 82 | drr_equal ctr_publish_requests 7000 |
| 83 | drr_equal ctr_publish_requests_bad_file_prefix 0 |
| 84 | drr_equal ctr_publish_responses 7000 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 85 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 86 | drr_equal dwl_volume 7000000000 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 87 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 88 | check_dfc_logs |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 89 | |
| 90 | #### TEST COMPLETE #### |
| 91 | |
| 92 | store_logs END |
| 93 | |
| 94 | print_result |