blob: 1b1ae452cb47f03caec4a752c9a288e29bb4863d [file] [log] [blame]
BjornMagnussonXA42dcb262019-04-26 19:29:54 +00001#!/bin/bash
2
BjornMagnussonXAa79a0432019-07-17 08:26:50 +00003TC_ONELINE_DESCR="DFC file retention (files with SFTP and then same files over FTPS). 1MB, 5MB and 50MB using first SFTP and thenSFTP with restart of MR between each file."
BjornMagnussonXA42dcb262019-04-26 19:29:54 +00004
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"
33consul_config_dmaap 0 "../simulator-group/consul/dmaap_feed2.json"
34
35mr_equal ctr_requests 0 60
36dr_equal ctr_published_files 0 60
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000037
38
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000039start_dfc 0
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000040
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000041mr_equal ctr_events 1 60
42mr_contain_str tc_info "TC#100"
43dr_equal ctr_published_files 1 30
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000044
45
46kill_mr
47export MR_TC="--tc101"
48log_sim_settings
49start_simulators
50
51mr_print tc_info
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000052mr_equal ctr_events 1 60
53mr_contain_str tc_info "TC#101"
54dr_equal ctr_published_files 2 30
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000055
56kill_mr
57export MR_TC="--tc102"
58log_sim_settings
59start_simulators
60
61mr_print tc_info
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000062mr_equal ctr_events 1 60
63mr_contain_str tc_info "TC#102"
64dr_equal ctr_published_files 3 30
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000065
66kill_mr
67export MR_TC="--tc200"
68log_sim_settings
69start_simulators
70
71mr_print tc_info
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000072mr_equal ctr_events 1 60
73mr_contain_str tc_info "TC#200"
74dr_equal ctr_published_files 3 30
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000075
76kill_mr
77export MR_TC="--tc201"
78start_simulators
79
80
81mr_print tc_info
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000082mr_equal ctr_events 1 60
83mr_contain_str tc_info "TC#201"
84dr_equal ctr_published_files 3 30
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000085
86kill_mr
87export MR_TC="--tc202"
88start_simulators
89
90
91mr_print tc_info
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000092mr_equal ctr_events 1 60
93mr_contain_str tc_info "TC#202"
94dr_equal ctr_published_files 3 30
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000095
96
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000097dr_equal ctr_publish_query 3
98dr_equal ctr_publish_query_bad_file_prefix 0
99dr_equal ctr_publish_query_published 0
100dr_equal ctr_publish_query_not_published 3
101dr_equal ctr_publish_req 3
102dr_equal ctr_publish_req_bad_file_prefix 0
103dr_equal ctr_publish_req_redirect 3
104dr_equal ctr_publish_req_published 0
105dr_equal ctr_published_files 3
106dr_equal ctr_double_publish 0
BjornMagnussonXA42dcb262019-04-26 19:29:54 +0000107
BjornMagnussonXAa79a0432019-07-17 08:26:50 +0000108drr_equal ctr_publish_requests 3
109drr_equal ctr_publish_requests_bad_file_prefix 0
110drr_equal ctr_publish_responses 3
BjornMagnussonXA42dcb262019-04-26 19:29:54 +0000111
BjornMagnussonXAa79a0432019-07-17 08:26:50 +0000112drr_equal dwl_volume 56000000
BjornMagnussonXA42dcb262019-04-26 19:29:54 +0000113
BjornMagnussonXAa79a0432019-07-17 08:26:50 +0000114check_dfc_logs
BjornMagnussonXA42dcb262019-04-26 19:29:54 +0000115
116#### TEST COMPLETE ####
117
118store_logs END
119
120print_result