46fff9d5a67df8875ff3c7b67532633b44a1f1af
[integration.git] / test / mocks / datafilecollector-testharness / auto-test / FTC210.sh
1 #!/bin/bash
2
3 TC_ONELINE_DESCR="DFC start and stop during poll, download and publish."
4
5 . ../common/testcase_common.sh $1 $2
6
7 #### TEST BEGIN ####
8
9 clean_containers
10
11 export MR_TC="--tc1300"
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="200"
22 export NUM_PNFS="700"
23 export FILE_SIZE="1MB"
24 export FTP_TYPE="SFTP"
25 export FTP_FILE_PREFIXES="A"
26 export NUM_FTP_SERVERS=5
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 mr_print            tc_info
39 dr_print            tc_info
40 drr_print           tc_info
41
42 start_dfc           0
43
44 mr_equal            ctr_events                           35 120
45
46 dfc_contain_str     0                                    heartbeat    "I'm living!"
47 dfc_contain_str     0                                    stopDatafile "Datafile Service has already been stopped!"
48
49 dr_equal            ctr_published_files                  3500 900
50
51 sleep_wait          120
52
53 dfc_contain_str     0                                    start        "Datafile Service has been started!"
54
55 mr_equal            ctr_events                           70 120
56
57 dfc_contain_str     0                                    heartbeat    "I'm living!"
58 dfc_contain_str     0                                    stopDatafile "Datafile Service has already been stopped!"
59
60 dr_equal            ctr_published_files                  7000 900
61
62 sleep_wait          120
63
64 dfc_contain_str     0                                    start        "Datafile Service has been started!"
65
66 dr_equal            ctr_published_files                  7000
67
68
69 mr_equal            ctr_events                           70
70 mr_equal            ctr_unique_files                     7000
71 mr_equal            ctr_unique_PNFs                      70
72
73 dr_equal            ctr_publish_query                    7000
74 dr_equal            ctr_publish_query_bad_file_prefix    0
75 dr_equal            ctr_publish_query_published          0
76 dr_equal            ctr_publish_query_not_published      7000
77 dr_equal            ctr_publish_req                      7000
78 dr_equal            ctr_publish_req_bad_file_prefix      0
79 dr_equal            ctr_publish_req_redirect             7000
80 dr_equal            ctr_publish_req_published            0
81 dr_equal            ctr_published_files                  7000
82
83 drr_equal           ctr_publish_requests                 7000
84 drr_equal           ctr_publish_requests_bad_file_prefix 0
85 drr_equal           ctr_publish_responses                7000
86
87 drr_equal           dwl_volume                           7000000000
88
89 check_dfc_logs
90
91 #### TEST COMPLETE ####
92
93 store_logs          END
94
95 print_result