BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | TC_ONELINE_DESCR="100 events (1 evt per poll) per DFC with 100 1MB files from one PNF using two DFC (different consumer groups) each publishing using unique change ids/feeds over SFTP." |
| 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,OpenDcae-c13:PM_MEAS_FILES:CTR_MEAS_FILES" |
| 13 | export MR_FILE_PREFIX_MAPPING="PM_MEAS_FILES:A,CTR_MEAS_FILES:B" |
| 14 | |
| 15 | export DR_TC="--tc normal" |
| 16 | export DR_FEEDS="1:A,2:B" |
| 17 | |
| 18 | export DR_REDIR_TC="--tc normal" |
| 19 | export DR_REDIR_FEEDS="1:A,2:B" |
| 20 | |
| 21 | export NUM_FTPFILES="1000" |
| 22 | export NUM_PNFS="1" |
| 23 | export FILE_SIZE="1MB" |
| 24 | export FTP_TYPE="SFTP" |
| 25 | export FTP_FILE_PREFIXES="A,B" |
| 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_feed1_PM.json" |
| 33 | consul_config_dmaap 0 "../simulator-group/consul/dmaap_feed1.json" |
| 34 | consul_config_app 1 "../simulator-group/consul/c13_feed2_CTR.json" |
| 35 | consul_config_dmaap 1 "../simulator-group/consul/dmaap_feed2.json" |
| 36 | |
| 37 | mr_equal ctr_requests 0 60 |
| 38 | dr_equal ctr_published_files 0 60 |
| 39 | |
| 40 | mr_print tc_info |
| 41 | dr_print tc_info |
| 42 | drr_print tc_info |
| 43 | |
| 44 | start_dfc 0 |
| 45 | start_dfc 1 |
| 46 | |
| 47 | dr_equal ctr_published_files 396 2000 |
| 48 | |
| 49 | sleep_wait 30 |
| 50 | |
| 51 | dr_equal ctr_published_files 396 |
| 52 | |
| 53 | mr_greater ctr_requests 200 |
| 54 | |
| 55 | mr_equal ctr_events 200 |
| 56 | mr_equal ctr_unique_files 792 |
| 57 | mr_equal ctr_unique_PNFs 2 |
| 58 | mr_equal ctr_unique_PNFs/OpenDcae-c12 1 |
| 59 | mr_equal ctr_unique_PNFs/OpenDcae-c13 1 |
| 60 | |
| 61 | dr_equal ctr_publish_query 396 |
| 62 | dr_equal ctr_publish_query/1 198 |
| 63 | dr_equal ctr_publish_query/2 198 |
| 64 | dr_equal ctr_publish_query_bad_file_prefix 0 |
| 65 | dr_equal ctr_publish_query_published 0 |
| 66 | dr_equal ctr_publish_query_not_published 396 |
| 67 | dr_equal ctr_publish_query_not_published/1 198 |
| 68 | dr_equal ctr_publish_query_not_published/2 198 |
| 69 | dr_equal ctr_publish_req 396 |
| 70 | dr_equal ctr_publish_req/1 198 |
| 71 | dr_equal ctr_publish_req/2 198 |
| 72 | dr_equal ctr_publish_req_bad_file_prefix 0 |
| 73 | dr_equal ctr_publish_req_redirect 396 |
| 74 | dr_equal ctr_publish_req_redirect/1 198 |
| 75 | dr_equal ctr_publish_req_redirect/2 198 |
| 76 | dr_equal ctr_publish_req_published 0 |
| 77 | dr_equal ctr_published_files 396 |
| 78 | dr_equal ctr_published_files/1 198 |
| 79 | dr_equal ctr_published_files/2 198 |
| 80 | dr_equal ctr_double_publish 0 |
| 81 | |
| 82 | drr_equal ctr_publish_requests 396 |
| 83 | drr_equal ctr_publish_requests/1 198 |
| 84 | drr_equal ctr_publish_requests/2 198 |
| 85 | drr_equal ctr_publish_requests_bad_file_prefix 0 |
| 86 | drr_equal ctr_publish_responses 396 |
| 87 | drr_equal ctr_publish_responses/1 198 |
| 88 | drr_equal ctr_publish_responses/2 198 |
| 89 | |
| 90 | drr_equal dwl_volume 396000000 |
| 91 | drr_equal dwl_volume/1 198000000 |
| 92 | drr_equal dwl_volume/2 198000000 |
| 93 | |
| 94 | check_dfc_logs |
| 95 | |
| 96 | #### TEST COMPLETE #### |
| 97 | |
| 98 | store_logs END |
| 99 | |
| 100 | print_result |