BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | TC_ONELINE_DESCR="DFC start, stop and hearbeat output." |
| 4 | |
| 5 | . ../common/testcase_common.sh $1 $2 |
| 6 | |
| 7 | #### TEST BEGIN #### |
| 8 | |
| 9 | clean_containers |
| 10 | |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 11 | export MR_TC="--tc100" |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 12 | export MR_GROUPS="OpenDcae-c12:PM_MEAS_FILES" |
| 13 | export MR_FILE_PREFIX_MAPPING="PM_MEAS_FILES:A" |
| 14 | |
| 15 | export DR_TC="--tc normal" |
| 16 | export DR_FEEDS="2:A" |
| 17 | |
| 18 | export DR_REDIR_TC="--tc normal" |
| 19 | export DR_REDIR_FEEDS="2:A" |
| 20 | |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 21 | export BC_TC="" |
| 22 | export NUM_FTPFILES="1" |
| 23 | export NUM_PNFS="1" |
| 24 | export FILE_SIZE="1MB" |
| 25 | export FTP_TYPE="SFTP" |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 26 | export FTP_FILE_PREFIXES="A" |
| 27 | export NUM_FTP_SERVERS=1 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 28 | |
| 29 | log_sim_settings |
| 30 | |
| 31 | start_simulators |
| 32 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 33 | consul_config_app 0 "../simulator-group/consul/c12_feed2_PM.json" |
| 34 | consul_config_dmaap 0 "../simulator-group/consul/dmaap_feed2.json" |
| 35 | |
| 36 | mr_equal ctr_requests 0 60 |
| 37 | dr_equal ctr_published_files 0 60 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 38 | |
| 39 | mr_print tc_info |
| 40 | dr_print tc_info |
| 41 | drr_print tc_info |
| 42 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 43 | start_dfc 0 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 44 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 45 | dr_equal ctr_published_files 1 60 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 46 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 47 | dfc_contain_str 0 heartbeat "I'm living!" |
| 48 | dfc_contain_str 0 stopDatafile "Datafile Service has already been stopped!" |
| 49 | dfc_contain_str 0 stopDatafile "Datafile Service has already been stopped!" |
| 50 | dfc_contain_str 0 heartbeat "I'm living" |
| 51 | dfc_contain_str 0 start "Datafile Service has been started!" |
| 52 | dfc_contain_str 0 start "Datafile Service is still running!" |
| 53 | dfc_contain_str 0 heartbeat "I'm living" |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 54 | |
| 55 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 56 | dfc_contain_str 0 stopDatafile "Datafile Service has already been stopped!" |
| 57 | dfc_contain_str 0 start "Datafile Service has been started!" |
| 58 | dfc_contain_str 0 stopDatafile "Datafile Service has already been stopped!" |
| 59 | dfc_contain_str 0 start "Datafile Service has been started!" |
| 60 | dfc_contain_str 0 stopDatafile "Datafile Service has already been stopped!" |
| 61 | dfc_contain_str 0 start "Datafile Service has been started!" |
| 62 | dfc_contain_str 0 stopDatafile "Datafile Service has already been stopped!" |
| 63 | dfc_contain_str 0 start "Datafile Service has been started!" |
| 64 | dfc_contain_str 0 stopDatafile "Datafile Service has already been stopped!" |
| 65 | dfc_contain_str 0 start "Datafile Service has been started!" |
| 66 | dfc_contain_str 0 stopDatafile "Datafile Service has already been stopped!" |
| 67 | dfc_contain_str 0 start "Datafile Service has been started!" |
| 68 | dfc_contain_str 0 stopDatafile "Datafile Service has already been stopped!" |
| 69 | dfc_contain_str 0 start "Datafile Service has been started!" |
| 70 | dfc_contain_str 0 stopDatafile "Datafile Service has already been stopped!" |
| 71 | dfc_contain_str 0 start "Datafile Service has been started!" |
| 72 | dfc_contain_str 0 stopDatafile "Datafile Service has already been stopped!" |
| 73 | dfc_contain_str 0 start "Datafile Service has been started!" |
| 74 | dfc_contain_str 0 stopDatafile "Datafile Service has already been stopped!" |
| 75 | dfc_contain_str 0 start "Datafile Service has been started!" |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 76 | |
| 77 | |
| 78 | |
| 79 | sleep_wait 30 |
| 80 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 81 | dr_equal ctr_published_files 1 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 82 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 83 | mr_greater ctr_requests 1 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 84 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 85 | mr_equal ctr_events 1 |
| 86 | mr_equal ctr_unique_files 1 |
| 87 | mr_equal ctr_unique_PNFs 1 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 88 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 89 | dr_equal ctr_publish_query 1 |
| 90 | dr_equal ctr_publish_query_bad_file_prefix 0 |
| 91 | dr_equal ctr_publish_query_published 0 |
| 92 | dr_equal ctr_publish_query_not_published 1 |
| 93 | dr_equal ctr_publish_req 1 |
| 94 | dr_equal ctr_publish_req_bad_file_prefix 0 |
| 95 | dr_equal ctr_publish_req_redirect 1 |
| 96 | dr_equal ctr_publish_req_published 0 |
| 97 | dr_equal ctr_published_files 1 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 98 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 99 | drr_equal ctr_publish_requests 1 |
| 100 | drr_equal ctr_publish_requests_bad_file_prefix 0 |
| 101 | drr_equal ctr_publish_responses 1 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 102 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 103 | drr_equal dwl_volume 1000000 |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 104 | |
BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 105 | check_dfc_logs |
BjornMagnussonXA | 42dcb26 | 2019-04-26 19:29:54 +0000 | [diff] [blame] | 106 | |
| 107 | #### TEST COMPLETE #### |
| 108 | |
| 109 | store_logs END |
| 110 | |
| 111 | print_result |