blob: ef480473d00a071db39e44ce7ea4db322eb0d0ba [file] [log] [blame]
BjornMagnussonXA42dcb262019-04-26 19:29:54 +00001#!/bin/bash
2
3TC_ONELINE_DESCR="Kill FTPs sever for 10+ sec during download"
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="--tc600"
14export BC_TC=""
15export NUM_FTPFILES="2"
16export NUM_PNFS="700"
17export FILE_SIZE="1MB"
18export FTP_TYPE="FTPS"
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_greater ctr_published_files 100 200
34
35kill_ftps
36sleep_wait 10 #Server will be gone longer due to long startup time of ftp (ftp file creatation)
37start_simulators
38
39dr_equal ctr_published_files 1400 400
40
41sleep_wait 30
42
43dr_equal ctr_published_files 1400
44
45mr_greater ctr_requests 1
46
47mr_equal ctr_events 700
48mr_equal ctr_unique_files 1400
49mr_equal ctr_unique_PNFs 700
50
51dr_equal ctr_publish_query 1400
52dr_equal ctr_publish_query_published 0
53dr_equal ctr_publish_query_not_published 1400
54dr_equal ctr_publish_req 1400
55dr_equal ctr_publish_req_redirect 1400
56dr_equal ctr_publish_req_published 0
57dr_equal ctr_published_files 1400
58dr_equal ctr_double_publish 0
59
60drr_equal ctr_publish_requests 1400
61drr_equal ctr_publish_responses 1400
62
63drr_equal dwl_volume 1400000000
64
65check_dfc_log
66
67#### TEST COMPLETE ####
68
69store_logs END
70
71print_result