blob: a652f8554ccbd353f7cccb953a8f6db132f22449 [file] [log] [blame]
BjornMagnussonXA42dcb262019-04-26 19:29:54 +00001#!/bin/bash
2
3TC_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
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 30
25
26kill_mr
27
28start_dfc
29
30sleep_wait 30
31
32dfc_contain_str stopDatafile "Datafile Service has already been stopped!"
33
34start_simulators
35
36sleep_wait 120
37
38mr_less ctr_requests 2
39
40dfc_contain_str start "Datafile Service has been started!"
41
42dr_equal ctr_published_files 1 60
43
44mr_greater ctr_requests 0
45
46mr_equal ctr_events 1
47mr_equal ctr_unique_files 1
48mr_equal ctr_unique_PNFs 1
49
50dr_equal ctr_publish_query 1
51dr_equal ctr_publish_query_published 0
52dr_equal ctr_publish_query_not_published 1
53dr_equal ctr_publish_req 1
54dr_equal ctr_publish_req_redirect 1
55dr_equal ctr_publish_req_published 0
56dr_equal ctr_published_files 1
57dr_equal ctr_double_publish 0
58
59drr_equal ctr_publish_requests 1
60drr_equal ctr_publish_responses 1
61
62drr_equal dwl_volume 1000000
63
64check_dfc_log
65
66#### TEST COMPLETE ####
67
68store_logs END
69
70print_result