25e68e7252c97897e6e5fe481fab93aa7bbba10b
[integration.git] / test / mocks / datafilecollector-testharness / auto-test / FTC40.sh
1 #!/bin/bash
2
3 TC_ONELINE_DESCR="Poll, download and publish of 1MB, 5MB and 50MB using both SFTP and SFTP with restart of MR between each file."
4
5 . ../common/testcase_common.sh $1 $2
6
7 #### TEST BEGIN ####
8
9 clean_containers
10
11 export MR_TC="--tc100"
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="1"
22 export NUM_PNFS="1"
23 export FILE_SIZE="ALL"
24 export FTP_TYPE="ALL"
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
39 start_dfc           0
40
41 mr_equal            ctr_events                           1 60
42 mr_contain_str      tc_info                              "TC#100"
43 dr_equal            ctr_published_files                  1 30
44
45
46 kill_mr
47 export MR_TC="--tc101"
48 log_sim_settings
49 start_simulators
50
51 mr_print            tc_info
52 mr_equal            ctr_events                           1 60
53 mr_contain_str      tc_info                              "TC#101"
54 dr_equal            ctr_published_files                  2 30
55
56 kill_mr
57 export MR_TC="--tc102"
58 log_sim_settings
59 start_simulators
60
61 mr_print            tc_info
62 mr_equal            ctr_events                           1 60
63 mr_contain_str      tc_info                              "TC#102"
64 dr_equal            ctr_published_files                  3 30
65
66 kill_mr
67 export MR_TC="--tc200"
68 log_sim_settings
69 start_simulators
70
71 mr_print            tc_info
72 mr_equal            ctr_events                           1 60
73 mr_contain_str      tc_info                              "TC#200"
74 dr_equal            ctr_published_files                  3 30
75
76 kill_mr
77 export MR_TC="--tc201"
78 start_simulators
79
80
81 mr_print            tc_info
82 mr_equal            ctr_events                           1 60
83 mr_contain_str      tc_info                              "TC#201"
84 dr_equal            ctr_published_files                  3 30
85
86 kill_mr
87 export MR_TC="--tc202"
88 start_simulators
89
90
91 mr_print            tc_info
92 mr_equal            ctr_events                           1 60
93 mr_contain_str      tc_info                              "TC#202"
94 dr_equal            ctr_published_files                  3 30
95
96
97 dr_equal            ctr_publish_query                    3
98 dr_equal            ctr_publish_query_bad_file_prefix    0
99 dr_equal            ctr_publish_query_published          0
100 dr_equal            ctr_publish_query_not_published      3
101 dr_equal            ctr_publish_req                      3
102 dr_equal            ctr_publish_req_bad_file_prefix      0
103 dr_equal            ctr_publish_req_redirect             3
104 dr_equal            ctr_publish_req_published            0
105 dr_equal            ctr_published_files                  3
106 dr_equal            ctr_double_publish                   0
107
108 drr_equal           ctr_publish_requests                 3
109 drr_equal           ctr_publish_requests_bad_file_prefix 0
110 drr_equal           ctr_publish_responses                3
111
112 drr_equal           dwl_volume                           56000000
113
114 check_dfc_logs
115
116 #### TEST COMPLETE ####
117
118 store_logs END
119
120 print_result