blob: 34cf8aecfc156cec719ac6dbf6f9fe45465c3001 [file] [log] [blame]
BjornMagnussonXA42dcb262019-04-26 19:29:54 +00001#!/bin/bash
2
3TC_ONELINE_DESCR="DFC file retention using DR. Publish 1 file, retstart MR sim and dfc. No new 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="--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
35sleep_wait 30
36
37dr_equal ctr_published_files 1
38
39
40mr_equal ctr_events 1
41mr_equal ctr_unique_files 1
42mr_equal ctr_unique_PNFs 1
43
44dr_equal ctr_publish_query 1
45dr_equal ctr_publish_query_published 0
46dr_equal ctr_publish_query_not_published 1
47dr_equal ctr_publish_req 1
48dr_equal ctr_publish_req_redirect 1
49dr_equal ctr_publish_req_published 0
50dr_equal ctr_published_files 1
51dr_equal ctr_double_publish 0
52
53drr_equal ctr_publish_requests 1
54drr_equal ctr_publish_responses 1
55
56drr_equal dwl_volume 1000000
57
58check_dfc_log
59
60store_logs PART1
61
62kill_mr
63kill_dfc
64start_simulators
65
66mr_equal ctr_events 0 60
67mr_equal ctr_unique_files 0
68mr_equal ctr_unique_PNFs 0
69
70start_dfc
71
72sleep_wait 30
73
74mr_equal ctr_events 1 60
75mr_equal ctr_unique_files 1
76mr_equal ctr_unique_PNFs 1
77
78dr_equal ctr_publish_query 2
79dr_equal ctr_publish_query_published 1
80dr_equal ctr_publish_query_not_published 1
81dr_equal ctr_publish_req 1
82dr_equal ctr_publish_req_redirect 1
83dr_equal ctr_publish_req_published 0
84dr_equal ctr_published_files 1
85dr_equal ctr_double_publish 0
86
87drr_equal ctr_publish_requests 1
88drr_equal ctr_publish_responses 1
89
90drr_equal dwl_volume 1000000
91
92check_dfc_log
93
94#### TEST COMPLETE ####
95
96store_logs END
97
98print_result