blob: f7b67d51b02cb5200c28a5c1364d0c006d6df786 [file] [log] [blame]
BjornMagnussonXA42dcb262019-04-26 19:29:54 +00001#!/bin/bash
2
3TC_ONELINE_DESCR="Poll, download and publish of 1MB, 5MB and 50MB using both SFTP and SFTP with restart of MR between each file."
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="ALL"
24export FTP_TYPE="ALL"
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
37
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000038start_dfc 0
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000039
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000040mr_equal ctr_events 1 60
41mr_contain_str tc_info "TC#100"
42dr_equal ctr_published_files 1 30
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000043
44
45kill_mr
46export MR_TC="--tc101"
47log_sim_settings
48start_simulators
49
50mr_print tc_info
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000051mr_equal ctr_events 1 60
52mr_contain_str tc_info "TC#101"
53dr_equal ctr_published_files 2 30
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000054
55kill_mr
56export MR_TC="--tc102"
57log_sim_settings
58start_simulators
59
60mr_print tc_info
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000061mr_equal ctr_events 1 60
62mr_contain_str tc_info "TC#102"
63dr_equal ctr_published_files 3 30
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000064
65kill_mr
66export MR_TC="--tc200"
67log_sim_settings
68start_simulators
69
70mr_print tc_info
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000071mr_equal ctr_events 1 60
72mr_contain_str tc_info "TC#200"
73dr_equal ctr_published_files 3 30
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000074
75kill_mr
76export MR_TC="--tc201"
77start_simulators
78
79
80mr_print tc_info
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000081mr_equal ctr_events 1 60
82mr_contain_str tc_info "TC#201"
83dr_equal ctr_published_files 3 30
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000084
85kill_mr
86export MR_TC="--tc202"
87start_simulators
88
89
90mr_print tc_info
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000091mr_equal ctr_events 1 60
92mr_contain_str tc_info "TC#202"
93dr_equal ctr_published_files 3 30
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000094
95
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000096dr_equal ctr_publish_query 3
97dr_equal ctr_publish_query_bad_file_prefix 0
98dr_equal ctr_publish_query_published 0
99dr_equal ctr_publish_query_not_published 3
100dr_equal ctr_publish_req 3
101dr_equal ctr_publish_req_bad_file_prefix 0
102dr_equal ctr_publish_req_redirect 3
103dr_equal ctr_publish_req_published 0
104dr_equal ctr_published_files 3
105dr_equal ctr_double_publish 0
BjornMagnussonXA42dcb262019-04-26 19:29:54 +0000106
BjornMagnussonXAa79a0432019-07-17 08:26:50 +0000107drr_equal ctr_publish_requests 3
108drr_equal ctr_publish_requests_bad_file_prefix 0
109drr_equal ctr_publish_responses 3
BjornMagnussonXA42dcb262019-04-26 19:29:54 +0000110
BjornMagnussonXAa79a0432019-07-17 08:26:50 +0000111drr_equal dwl_volume 56000000
BjornMagnussonXA42dcb262019-04-26 19:29:54 +0000112
BjornMagnussonXAa79a0432019-07-17 08:26:50 +0000113check_dfc_logs
BjornMagnussonXA42dcb262019-04-26 19:29:54 +0000114
115#### TEST COMPLETE ####
116
117store_logs END
118
119print_result