blob: 861e03532ea75fe7fdf829cd666e84ca3cfd60c2 [file] [log] [blame]
BjornMagnussonXA42dcb262019-04-26 19:29:54 +00001#!/bin/bash
2
BjornMagnussonXAa79a0432019-07-17 08:26:50 +00003TC_ONELINE_DESCR="Kill FTPS sever for 10+ sec during download"
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="--tc600"
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="2"
22export NUM_PNFS="700"
23export FILE_SIZE="1MB"
24export FTP_TYPE="FTPS"
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
38mr_print tc_info
39dr_print tc_info
40drr_print tc_info
41
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000042start_dfc 0
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000043
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000044dr_greater ctr_published_files 100 200
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000045
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000046stop_ftps 0
47sleep_wait 30
48start_ftps 0
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000049
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000050dr_equal ctr_published_files 1400 400
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000051
52sleep_wait 30
53
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000054dr_equal ctr_published_files 1400
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000055
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000056mr_greater ctr_requests 1
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000057
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000058mr_equal ctr_events 700
59mr_equal ctr_unique_files 1400
60mr_equal ctr_unique_PNFs 700
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000061
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000062dr_equal ctr_publish_query 1400
63dr_equal ctr_publish_query_bad_file_prefix 0
64dr_equal ctr_publish_query_published 0
65dr_equal ctr_publish_query_not_published 1400
66dr_equal ctr_publish_req 1400
67dr_equal ctr_publish_req_bad_file_prefix 0
68dr_equal ctr_publish_req_redirect 1400
69dr_equal ctr_publish_req_published 0
70dr_equal ctr_published_files 1400
71dr_equal ctr_double_publish 0
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000072
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000073drr_equal ctr_publish_requests 1400
74drr_equal ctr_publish_requests_bad_file_prefix 0
75drr_equal ctr_publish_responses 1400
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000076
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000077drr_equal dwl_volume 1400000000
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000078
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000079check_dfc_logs
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000080
81#### TEST COMPLETE ####
82
83store_logs END
84
85print_result