Update DFC tests to use file based conifg
[integration.git] / test / mocks / datafilecollector-testharness / auto-test / FTC70.sh
1 #!/bin/bash
2
3 TC_ONELINE_DESCR="199 file publish attempt where 10% of calls to DR sim and DR redir sim responds with error"
4
5 . ../common/testcase_common.sh $1 $2
6
7 #### TEST BEGIN ####
8
9 clean_containers
10
11 export MR_TC="--tc113"
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 10p_error_response"
16 export DR_FEEDS="2:A"
17
18 export DR_REDIR_TC="--tc 10p_error_response"
19 export DR_REDIR_FEEDS="2:A"
20
21 export NUM_FTPFILES="199"
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 dfc_config_app   0                                    "../simulator-group/dfc_configs/c12_feed2_PM.yaml"
33
34 mr_equal            ctr_requests                         0 60
35 dr_equal            ctr_published_files                  0 60
36
37 mr_print            tc_info
38 dr_print            tc_info
39 drr_print           tc_info
40
41 start_dfc           0
42
43 dr_equal            ctr_published_files                  199 300
44
45 sleep_wait          30
46
47 dr_equal            ctr_published_files                  199
48
49 mr_greater          ctr_requests                         1
50
51 mr_equal            ctr_events                           100
52 mr_equal            ctr_unique_files                     199
53 mr_equal            ctr_unique_PNFs                      1
54
55 dr_equal            ctr_publish_query                    199
56 dr_equal            ctr_publish_query_bad_file_prefix    0
57 dr_equal            ctr_publish_query_published          0
58 dr_less             ctr_publish_query_not_published      199
59 dr_greater          ctr_publish_req                      199
60 dr_equal            ctr_publish_req_bad_file_prefix      0
61 dr_greater          ctr_publish_req_redirect             199
62 dr_equal            ctr_publish_req_published            0
63 dr_equal            ctr_published_files                  199
64 dr_equal            ctr_double_publish                   0
65
66 drr_greater         ctr_publish_requests                 199
67 drr_equal           ctr_publish_requests_bad_file_prefix 0
68 drr_greater         ctr_publish_responses                199
69
70 drr_equal           dwl_volume                           199000000
71
72 check_dfc_logs
73
74 #### TEST COMPLETE ####
75
76 store_logs          END
77
78 print_result