BjornMagnussonXA | a79a043 | 2019-07-17 08:26:50 +0000 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | |
| 3 | TC_ONELINE_DESCR="100 event with 1 1MB file in each evewnt from one PNF in one event using SFTP with feed reconfigure" |
| 4 | |
| 5 | . ../common/testcase_common.sh $1 $2 |
| 6 | |
| 7 | #### TEST BEGIN #### |
| 8 | |
| 9 | clean_containers |
| 10 | |
| 11 | export MR_TC="--tc110" |
| 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 | |
| 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" |
| 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_PM.json" |
| 33 | consul_config_dmaap 0 "../simulator-group/consul/dmaap_feed2.json" |
| 34 | |
| 35 | mr_equal ctr_requests 0 60 |
| 36 | dr_equal ctr_published_files 0 60 |
| 37 | |
| 38 | mr_print tc_info |
| 39 | dr_print tc_info |
| 40 | drr_print tc_info |
| 41 | |
| 42 | dr_contain_str feeds "2:A" |
| 43 | drr_contain_str feeds "2:A" |
| 44 | |
| 45 | start_dfc 0 |
| 46 | |
| 47 | dr_equal ctr_published_files 50 900 |
| 48 | |
| 49 | |
| 50 | export DR_TC="--tc normal" |
| 51 | export DR_FEEDS="1:A" |
| 52 | |
| 53 | export DR_REDIR_TC="--tc normal" |
| 54 | export DR_REDIR_FEEDS="1:A" |
| 55 | |
| 56 | consul_config_app 0 "../simulator-group/consul/c12_feed1_PM.json" |
| 57 | consul_config_dmaap 0 "../simulator-group/consul/dmaap_feed1.json" |
| 58 | |
| 59 | kill_dr |
| 60 | kill_drr |
| 61 | |
| 62 | log_sim_settings |
| 63 | |
| 64 | start_simulators |
| 65 | |
| 66 | mr_equal ctr_events 100 900 |
| 67 | mr_equal ctr_unique_files 100 |
| 68 | mr_equal ctr_unique_PNFs 1 |
| 69 | |
| 70 | dr_greater ctr_published_files 1 |
| 71 | |
| 72 | dr_contain_str feeds "1:A" |
| 73 | drr_contain_str feeds "1:A" |
| 74 | |
| 75 | check_dfc_logs |
| 76 | |
| 77 | #### TEST COMPLETE #### |
| 78 | |
| 79 | store_logs END |
| 80 | |
| 81 | print_result |