76afc8c7ca30c2be58310333fe5c3e11a6e8e463
[integration.git] / test / mocks / datafilecollector-testharness / auto-test / 25h_backlog_1MB_FTPS.sh
1 #!/bin/bash
2
3 TC_ONELINE_DESCR="Simulating a 25h backlog of events for 700 PNF with decreasing number of missing files, then continues with 15 min events from all PNFs using FTPS."
4
5 . ../common/testcase_common.sh $1 $2
6
7 #### TEST BEGIN ####
8
9 clean_containers
10
11 export MR_TC="--tc1500"
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="300"
22 export NUM_PNFS="700"
23 export FILE_SIZE="1MB"
24 export FTP_TYPE="FTPS"
25 export FTP_FILE_PREFIXES="A"
26 export NUM_FTP_SERVERS=5
27
28 log_sim_settings
29
30 start_simulators
31
32
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
38
39 mr_print            tc_info
40 dr_print            tc_info
41 drr_print           tc_info
42
43 start_dfc 0
44
45 mr_equal            ctr_unique_files                70000 18000
46
47 mr_print            stop
48
49 dr_equal            ctr_published_files             70000 900
50
51 sleep_wait          30
52
53 dr_equal            ctr_published_files             70000
54
55 mr_equal            ctr_events                      70700
56 mr_equal            ctr_unique_files                70000
57 mr_equal            ctr_unique_PNFs                 700
58
59 check_dfc_logs
60
61 #### TEST COMPLETE ####
62
63 store_logs          END
64
65 print_result