Adjust DFC test files to use FTPES instead of FTPS
[integration.git] / test / mocks / datafilecollector-testharness / auto-test / FTC33.sh
1 #!/bin/bash
2
3 TC_ONELINE_DESCR="DFC file retention (files with SFTP and then same files over FTPES). 1MB, 5MB and 50MB using first SFTP and thenSFTP 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
34 mr_equal            ctr_requests                         0 60
35 dr_equal            ctr_published_files                  0 60
36
37
38 start_dfc           0
39
40 mr_equal            ctr_events                           1 60
41 mr_contain_str      tc_info                              "TC#100"
42 dr_equal            ctr_published_files                  1 30
43
44
45 kill_mr
46 export MR_TC="--tc101"
47 log_sim_settings
48 start_simulators
49
50 mr_print            tc_info
51 mr_equal            ctr_events                           1 60
52 mr_contain_str      tc_info                              "TC#101"
53 dr_equal            ctr_published_files                  2 30
54
55 kill_mr
56 export MR_TC="--tc102"
57 log_sim_settings
58 start_simulators
59
60 mr_print            tc_info
61 mr_equal            ctr_events                           1 60
62 mr_contain_str      tc_info                              "TC#102"
63 dr_equal            ctr_published_files                  3 30
64
65 kill_mr
66 export MR_TC="--tc200"
67 log_sim_settings
68 start_simulators
69
70 mr_print            tc_info
71 mr_equal            ctr_events                           1 60
72 mr_contain_str      tc_info                              "TC#200"
73 dr_equal            ctr_published_files                  3 30
74
75 kill_mr
76 export MR_TC="--tc201"
77 start_simulators
78
79
80 mr_print            tc_info
81 mr_equal            ctr_events                           1 60
82 mr_contain_str      tc_info                              "TC#201"
83 dr_equal            ctr_published_files                  3 30
84
85 kill_mr
86 export MR_TC="--tc202"
87 start_simulators
88
89
90 mr_print            tc_info
91 mr_equal            ctr_events                           1 60
92 mr_contain_str      tc_info                              "TC#202"
93 dr_equal            ctr_published_files                  3 30
94
95
96 dr_equal            ctr_publish_query                    3
97 dr_equal            ctr_publish_query_bad_file_prefix    0
98 dr_equal            ctr_publish_query_published          0
99 dr_equal            ctr_publish_query_not_published      3
100 dr_equal            ctr_publish_req                      3
101 dr_equal            ctr_publish_req_bad_file_prefix      0
102 dr_equal            ctr_publish_req_redirect             3
103 dr_equal            ctr_publish_req_published            0
104 dr_equal            ctr_published_files                  3
105 dr_equal            ctr_double_publish                   0
106
107 drr_equal           ctr_publish_requests                 3
108 drr_equal           ctr_publish_requests_bad_file_prefix 0
109 drr_equal           ctr_publish_responses                3
110
111 drr_equal           dwl_volume                           56000000
112
113 check_dfc_logs
114
115 #### TEST COMPLETE ####
116
117 store_logs END
118
119 print_result