blob: f7e9bf5d8f9c3bcb8c4930e55f8dcaff6b45438c [file] [log] [blame]
BjornMagnussonXA42dcb262019-04-26 19:29:54 +00001#!/bin/bash
2
3TC_ONELINE_DESCR="DFC start and stop during poll, download and publish."
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="--tc113"
14export BC_TC=""
15export NUM_FTPFILES="199"
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
33mr_greater ctr_events 0 120
34dr_print ctr_published_files
35
36
37dfc_contain_str heartbeat "I'm living!"
38dfc_contain_str stopDatafile "Datafile Service has already been stopped!"
39
40sleep_wait 120
41
42dfc_contain_str start "Datafile Service has been started!"
43
44dr_greater ctr_published_files 100 60
45dr_less ctr_published_files 199
46dr_print ctr_published_files
47
48dfc_contain_str heartbeat "I'm living!"
49dfc_contain_str stopDatafile "Datafile Service has already been stopped!"
50
51sleep_wait 120
52
53dfc_contain_str start "Datafile Service has been started!"
54
55dr_equal ctr_published_files 199 60
56
57
58mr_equal ctr_events 100
59mr_equal ctr_unique_files 199
60mr_equal ctr_unique_PNFs 1
61
62dr_equal ctr_publish_query 199
63dr_equal ctr_publish_query_published 0
64dr_equal ctr_publish_query_not_published 199
65dr_equal ctr_publish_req 199
66dr_equal ctr_publish_req_redirect 199
67dr_equal ctr_publish_req_published 0
68dr_equal ctr_published_files 199
69
70drr_equal ctr_publish_requests 199
71drr_equal ctr_publish_responses 199
72
73drr_equal dwl_volume 199000000
74
75check_dfc_log
76
77#### TEST COMPLETE ####
78
79store_logs END
80
81print_result