blob: 2776399c3be2ed866f06e4291dd5e13ce35bc818 [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
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000011export MR_TC="--tc100"
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000012export MR_GROUPS="OpenDcae-c12:PM_MEAS_FILES"
13export MR_FILE_PREFIX_MAPPING="PM_MEAS_FILES:A"
14
15export DR_TC="--tc normal"
16export DR_FEEDS="2:A"
17
18export DR_REDIR_TC="--tc normal"
19export DR_REDIR_FEEDS="2:A"
20
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000021export NUM_FTPFILES="1"
22export NUM_PNFS="1"
23export FILE_SIZE="1MB"
24export FTP_TYPE="SFTP"
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000025export FTP_FILE_PREFIXES="A"
26export NUM_FTP_SERVERS=1
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000027
28log_sim_settings
29
30start_simulators
31
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000032consul_config_app 0 "../simulator-group/consul/c12_feed2_PM.json"
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000033
34mr_equal ctr_requests 0 60
35dr_equal ctr_published_files 0 60
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000036
37mr_print tc_info
38dr_print tc_info
39drr_print tc_info
40
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000041start_dfc 0
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000042
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000043dr_equal ctr_published_files 1 60
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000044
45sleep_wait 30
46
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000047dr_equal ctr_published_files 1
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000048
49
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000050mr_equal ctr_events 1
51mr_equal ctr_unique_files 1
52mr_equal ctr_unique_PNFs 1
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000053
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000054dr_equal ctr_publish_query 1
55dr_equal ctr_publish_query_bad_file_prefix 0
56dr_equal ctr_publish_query_published 0
57dr_equal ctr_publish_query_not_published 1
58dr_equal ctr_publish_req 1
59dr_equal ctr_publish_req_bad_file_prefix 0
60dr_equal ctr_publish_req_redirect 1
61dr_equal ctr_publish_req_published 0
62dr_equal ctr_published_files 1
63dr_equal ctr_double_publish 0
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000064
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000065drr_equal ctr_publish_requests 1
66drr_equal ctr_publish_requests_bad_file_prefix 0
67drr_equal ctr_publish_responses 1
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000068
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000069drr_equal dwl_volume 1000000
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000070
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000071check_dfc_logs
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000072
73store_logs PART1
74
75kill_mr
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000076kill_dfc 0
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000077start_simulators
78
79mr_equal ctr_events 0 60
80mr_equal ctr_unique_files 0
81mr_equal ctr_unique_PNFs 0
82
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000083start_dfc 0
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000084
85sleep_wait 30
86
87mr_equal ctr_events 1 60
88mr_equal ctr_unique_files 1
89mr_equal ctr_unique_PNFs 1
90
91dr_equal ctr_publish_query 2
92dr_equal ctr_publish_query_published 1
93dr_equal ctr_publish_query_not_published 1
94dr_equal ctr_publish_req 1
95dr_equal ctr_publish_req_redirect 1
96dr_equal ctr_publish_req_published 0
97dr_equal ctr_published_files 1
98dr_equal ctr_double_publish 0
99
100drr_equal ctr_publish_requests 1
101drr_equal ctr_publish_responses 1
102
103drr_equal dwl_volume 1000000
104
BjornMagnussonXAa79a0432019-07-17 08:26:50 +0000105check_dfc_logs
BjornMagnussonXA42dcb262019-04-26 19:29:54 +0000106
107#### TEST COMPLETE ####
108
109store_logs END
110
111print_result