blob: 7cb07de2cc4fb0f39b9f0a10744bd0ad427e5a86 [file] [log] [blame]
BjornMagnussonXA42dcb262019-04-26 19:29:54 +00001#!/bin/bash
2
3TC_ONELINE_DESCR="DFC start, stop and hearbeat output."
4
5. ../common/testcase_common.sh $1 $2
6
7#### TEST BEGIN ####
8
9clean_containers
10
11export DR_TC="--tc normal"
12export DR_REDIR_TC="--tc normal"
13export MR_TC="--tc100"
14export BC_TC=""
15export NUM_FTPFILES="1"
16export NUM_PNFS="1"
17export FILE_SIZE="1MB"
18export FTP_TYPE="SFTP"
19
20log_sim_settings
21
22start_simulators
23
24mr_equal ctr_requests 0 60
25dr_equal ctr_published_files 0 60
26
27mr_print tc_info
28dr_print tc_info
29drr_print tc_info
30
31start_dfc
32
33dr_equal ctr_published_files 1 60
34
35dfc_contain_str heartbeat "I'm living!"
36dfc_contain_str stopDatafile "Datafile Service has already been stopped!"
37dfc_contain_str stopDatafile "Datafile Service has already been stopped!"
38dfc_contain_str heartbeat "I'm living"
39dfc_contain_str start "Datafile Service has been started!"
40dfc_contain_str start "Datafile Service is still running!"
41dfc_contain_str heartbeat "I'm living"
42
43
44dfc_contain_str stopDatafile "Datafile Service has already been stopped!"
45dfc_contain_str start "Datafile Service has been started!"
46dfc_contain_str stopDatafile "Datafile Service has already been stopped!"
47dfc_contain_str start "Datafile Service has been started!"
48dfc_contain_str stopDatafile "Datafile Service has already been stopped!"
49dfc_contain_str start "Datafile Service has been started!"
50dfc_contain_str stopDatafile "Datafile Service has already been stopped!"
51dfc_contain_str start "Datafile Service has been started!"
52dfc_contain_str stopDatafile "Datafile Service has already been stopped!"
53dfc_contain_str start "Datafile Service has been started!"
54dfc_contain_str stopDatafile "Datafile Service has already been stopped!"
55dfc_contain_str start "Datafile Service has been started!"
56dfc_contain_str stopDatafile "Datafile Service has already been stopped!"
57dfc_contain_str start "Datafile Service has been started!"
58dfc_contain_str stopDatafile "Datafile Service has already been stopped!"
59dfc_contain_str start "Datafile Service has been started!"
60dfc_contain_str stopDatafile "Datafile Service has already been stopped!"
61dfc_contain_str start "Datafile Service has been started!"
62dfc_contain_str stopDatafile "Datafile Service has already been stopped!"
63dfc_contain_str start "Datafile Service has been started!"
64
65
66
67sleep_wait 30
68
69dr_equal ctr_published_files 1
70
71mr_greater ctr_requests 1
72
73mr_equal ctr_events 1
74mr_equal ctr_unique_files 1
75mr_equal ctr_unique_PNFs 1
76
77dr_equal ctr_publish_query 1
78dr_equal ctr_publish_query_published 0
79dr_equal ctr_publish_query_not_published 1
80dr_equal ctr_publish_req 1
81dr_equal ctr_publish_req_redirect 1
82dr_equal ctr_publish_req_published 0
83dr_equal ctr_published_files 1
84
85drr_equal ctr_publish_requests 1
86drr_equal ctr_publish_responses 1
87
88drr_equal dwl_volume 1000000
89
90check_dfc_log
91
92#### TEST COMPLETE ####
93
94store_logs END
95
96print_result