2eb9abc97d7902eabe5ce0c28333aaa015c46347
[integration.git] / test / mocks / datafilecollector-testharness / auto-test / FTC220.sh
1 #!/bin/bash
2
3 TC_ONELINE_DESCR="DFC stop before polling event (no polling during stopped), then dfc start."
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="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 consul_config_app   0                                    "../simulator-group/consul/c12_feed2_PM.json"
33
34 mr_equal            ctr_requests                         0 30
35
36 kill_mr
37
38 start_dfc           0
39
40 sleep_wait          30
41
42 dfc_contain_str     0                                    stopDatafile "Datafile Service has already been stopped!"
43
44 start_simulators
45
46 sleep_wait          120
47
48 mr_equal            ctr_requests                         0
49
50 dfc_contain_str     0                                    start        "Datafile Service has been started!"
51
52 dr_equal            ctr_published_files                  1 60
53
54 mr_greater          ctr_requests                         0
55
56 mr_equal            ctr_events                           1
57 mr_equal            ctr_unique_files                     1
58 mr_equal            ctr_unique_PNFs                      1
59
60 dr_equal            ctr_publish_query                    1
61 dr_equal            ctr_publish_query_bad_file_prefix    0
62 dr_equal            ctr_publish_query_published          0
63 dr_equal            ctr_publish_query_not_published      1
64 dr_equal            ctr_publish_req                      1
65 dr_equal            ctr_publish_req_bad_file_prefix      0
66 dr_equal            ctr_publish_req_redirect             1
67 dr_equal            ctr_publish_req_published            0
68 dr_equal            ctr_published_files                  1
69 dr_equal            ctr_double_publish                   0
70
71 drr_equal           ctr_publish_requests                 1
72 drr_equal           ctr_publish_requests_bad_file_prefix 0
73 drr_equal           ctr_publish_responses                1
74
75 drr_equal           dwl_volume                           1000000
76
77 check_dfc_logs
78
79 #### TEST COMPLETE ####
80
81 store_logs          END
82
83 print_result