DFC automated tests
[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 DR_TC="--tc normal"
12 export DR_REDIR_TC="--tc normal"
13 export MR_TC="--tc113"
14 export BC_TC=""
15 export NUM_FTPFILES="199"
16 export NUM_PNFS="1"
17 export FILE_SIZE="1MB"
18 export FTP_TYPE="SFTP"
19
20 log_sim_settings
21
22 start_simulators
23
24 mr_equal            ctr_requests                    0 60
25 dr_equal            ctr_published_files             0 60
26
27 mr_print            tc_info
28 dr_print            tc_info
29 drr_print           tc_info
30
31 start_dfc
32
33 mr_greater          ctr_events                      0 120
34 dr_print            ctr_published_files
35
36
37 dfc_contain_str     heartbeat                       "I'm living!"
38 dfc_contain_str     stopDatafile                    "Datafile Service has already been stopped!"
39
40 sleep_wait          120
41
42 dfc_contain_str     start                           "Datafile Service has been started!"
43
44 dr_greater          ctr_published_files             100 60
45 dr_less             ctr_published_files             199
46 dr_print            ctr_published_files
47
48 dfc_contain_str     heartbeat                       "I'm living!"
49 dfc_contain_str     stopDatafile                    "Datafile Service has already been stopped!"
50
51 sleep_wait          120
52
53 dfc_contain_str     start                           "Datafile Service has been started!"
54
55 dr_equal            ctr_published_files             199 60
56
57
58 mr_equal            ctr_events                      100
59 mr_equal            ctr_unique_files                199
60 mr_equal            ctr_unique_PNFs                 1
61
62 dr_equal            ctr_publish_query               199
63 dr_equal            ctr_publish_query_published     0
64 dr_equal            ctr_publish_query_not_published 199
65 dr_equal            ctr_publish_req                 199
66 dr_equal            ctr_publish_req_redirect        199
67 dr_equal            ctr_publish_req_published       0
68 dr_equal            ctr_published_files             199
69
70 drr_equal           ctr_publish_requests            199
71 drr_equal           ctr_publish_responses           199
72
73 drr_equal           dwl_volume                      199000000
74
75 check_dfc_log
76
77 #### TEST COMPLETE ####
78
79 store_logs          END
80
81 print_result