Update DFC tests to use file based conifg
[integration.git] / test / mocks / datafilecollector-testharness / auto-test / FTC404.sh
1 #!/bin/bash
2 #
3 # Copyright (C) 2021 Nokia. All rights reserved.
4 #
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
8 #
9 #     http://www.apache.org/licenses/LICENSE-2.0
10 #
11
12 TC_ONELINE_DESCR="One 1MB file from one PNF in one event using HTTPS no clientt authentication, from poll to publish"
13
14 . ../common/testcase_common.sh $1 $2
15
16 #### TEST BEGIN ####
17
18 clean_containers
19
20 export MR_TC="--tc404"
21 export MR_GROUPS="OpenDcae-c12:PM_MEAS_FILES"
22 export MR_FILE_PREFIX_MAPPING="PM_MEAS_FILES:A"
23
24 export DR_TC="--tc normal"
25 export DR_FEEDS="2:A"
26
27 export DR_REDIR_TC="--tc normal"
28 export DR_REDIR_FEEDS="2:A"
29
30 export NUM_HTTPFILES="10"
31 export NUM_PNFS="1"
32 export FILE_SIZE="1MB"
33 export HTTP_TYPE="HTTPS"
34 export HTTP_FILE_PREFIXES="A"
35 export NUM_HTTP_SERVERS=1
36
37 log_sim_settings
38
39 start_simulators
40
41 dfc_config_app   0                                    "../simulator-group/dfc_configs/c12_feed2_PM_HTTPS.yaml"
42
43 mr_equal            ctr_requests                         0 60
44 dr_equal            ctr_published_files                  0 60
45
46 mr_print            tc_info
47 dr_print            tc_info
48 drr_print           tc_info
49
50 start_dfc           0
51
52 dr_equal            ctr_published_files                  1 60
53
54 sleep_wait          30
55
56 dr_equal            ctr_published_files                  1
57
58 mr_greater          ctr_requests                         1
59
60 mr_equal            ctr_events                           1
61 mr_equal            ctr_unique_files                     1
62 mr_equal            ctr_unique_PNFs                      1
63
64 dr_equal            ctr_publish_query                    1
65 dr_equal            ctr_publish_query_bad_file_prefix    0
66 dr_equal            ctr_publish_query_published          0
67 dr_equal            ctr_publish_query_not_published      1
68 dr_equal            ctr_publish_req                      1
69 dr_equal            ctr_publish_req_bad_file_prefix      0
70 dr_equal            ctr_publish_req_redirect             1
71 dr_equal            ctr_publish_req_published            0
72 dr_equal            ctr_published_files                  1
73 dr_equal            ctr_double_publish                   0
74
75 drr_equal           ctr_publish_requests                 1
76 drr_equal           ctr_publish_requests_bad_file_prefix 0
77 drr_equal           ctr_publish_responses                1
78
79 drr_equal           dwl_volume                           1000000
80
81 check_dfc_logs
82
83 #### TEST COMPLETE ####
84
85 store_logs          END
86
87 print_result