BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | TC_ONELINE_DESCR="25 events for each 4 feeds with 100 1MB files per event from one PNF using SFTP, 1 change id with no feed, 1 change with one feed and two change id to one feed." |
| 4 | |
| 5 | . ../common/testcase_common.sh $1 $2 |
| 6 | |
| 7 | #### TEST BEGIN #### |
| 8 | |
| 9 | clean_containers |
| 10 | |
| 11 | export MR_TC="--tc111" |
| 12 | export MR_GROUPS="OpenDcae-c12:PM_MEAS_FILES:CTR_MEAS_FILES:LOG_FILES:TEMP_FILES" |
| 13 | export MR_FILE_PREFIX_MAPPING="PM_MEAS_FILES:A,CTR_MEAS_FILES:B,LOG_FILES:C,TEMP_FILES:D" |
| 14 | |
| 15 | export DR_TC="--tc normal" |
| 16 | export DR_FEEDS="2:B,3:C:D" |
| 17 | |
| 18 | export DR_REDIR_TC="--tc normal" |
| 19 | export DR_REDIR_FEEDS="2:B,3:C:D" |
| 20 | |
| 21 | export NUM_FTPFILES="200" |
| 22 | export NUM_PNFS="1" |
| 23 | export FILE_SIZE="1MB" |
| 24 | export FTP_TYPE="SFTP" |
| 25 | export FTP_FILE_PREFIXES="A,B,C,D" |
| 26 | export NUM_FTP_SERVERS=1 |
| 27 | |
| 28 | log_sim_settings |
| 29 | |
| 30 | start_simulators |
| 31 | |
| 32 | consul_config_app 0 "../simulator-group/consul/c12_feed2_CTR_feed3_LOG_TEMP.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 |
| 36 | |
| 37 | mr_print tc_info |
| 38 | dr_print tc_info |
| 39 | drr_print tc_info |
| 40 | |
| 41 | start_dfc 0 |
| 42 | |
| 43 | dr_equal ctr_published_files 588 2000 |
| 44 | dr_equal ctr_published_files/2 196 |
| 45 | dr_equal ctr_published_files/3 392 |
| 46 | sleep_wait 30 |
| 47 | |
| 48 | dr_equal ctr_published_files 588 |
| 49 | dr_equal ctr_published_files/2 196 |
| 50 | dr_equal ctr_published_files/3 392 |
| 51 | |
| 52 | mr_greater ctr_requests 100 |
| 53 | |
| 54 | mr_equal ctr_events 100 |
| 55 | mr_equal ctr_unique_files 784 |
| 56 | mr_equal ctr_unique_PNFs 1 |
| 57 | |
| 58 | dr_equal ctr_publish_query 588 |
| 59 | dr_equal ctr_publish_query/2 196 |
| 60 | dr_equal ctr_publish_query/3 392 |
| 61 | dr_equal ctr_publish_query_bad_file_prefix 0 |
| 62 | dr_equal ctr_publish_query_published 0 |
| 63 | dr_equal ctr_publish_query_not_published 588 |
| 64 | dr_equal ctr_publish_query_not_published/2 196 |
| 65 | dr_equal ctr_publish_query_not_published/3 392 |
| 66 | dr_equal ctr_publish_req 588 |
| 67 | dr_equal ctr_publish_req/2 196 |
| 68 | dr_equal ctr_publish_req/3 392 |
| 69 | dr_equal ctr_publish_req_bad_file_prefix 0 |
| 70 | dr_equal ctr_publish_req_redirect 588 |
| 71 | dr_equal ctr_publish_req_redirect/2 196 |
| 72 | dr_equal ctr_publish_req_redirect/3 392 |
| 73 | dr_equal ctr_publish_req_published 0 |
| 74 | dr_equal ctr_published_files 588 |
| 75 | dr_equal ctr_published_files/2 196 |
| 76 | dr_equal ctr_published_files/3 392 |
| 77 | dr_equal ctr_double_publish 0 |
| 78 | |
| 79 | drr_equal ctr_publish_requests 588 |
| 80 | drr_equal ctr_publish_requests/2 196 |
| 81 | drr_equal ctr_publish_requests/3 392 |
| 82 | drr_equal ctr_publish_requests_bad_file_prefix 0 |
| 83 | drr_equal ctr_publish_responses 588 |
| 84 | drr_equal ctr_publish_responses/2 196 |
| 85 | drr_equal ctr_publish_responses/3 392 |
| 86 | |
| 87 | drr_equal dwl_volume 588000000 |
| 88 | drr_equal dwl_volume/2 196000000 |
| 89 | drr_equal dwl_volume/3 392000000 |
| 90 | |
| 91 | check_dfc_logs |
| 92 | |
| 93 | #### TEST COMPLETE #### |
| 94 | |
| 95 | print_all |
| 96 | |
| 97 | store_logs END |
| 98 | |
| 99 | print_result |