blob: fd39773482032b8a9fe5d83bf4e751a043246e1f [file] [log] [blame]
BjornMagnussonXA42dcb262019-04-26 19:29:54 +00001#!/bin/bash
2
3TC_ONELINE_DESCR="One 50MB file from one PNF in one event using FTPS, from poll to 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="--tc202"
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="1:A"
17
18export DR_REDIR_TC="--tc normal"
19export DR_REDIR_FEEDS="1:A"
20
21export NUM_FTPFILES="10"
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000022export NUM_PNFS="1"
23export FILE_SIZE="50MB"
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_feed1_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
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000049mr_greater ctr_requests 1
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000050
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000051mr_equal ctr_events 1
52mr_equal ctr_unique_files 1
53mr_equal ctr_unique_PNFs 1
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000054
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000055dr_equal ctr_publish_query 1
56dr_equal ctr_publish_query_bad_file_prefix 0
57dr_equal ctr_publish_query_published 0
58dr_equal ctr_publish_query_not_published 1
59dr_equal ctr_publish_req 1
60dr_equal ctr_publish_req_bad_file_prefix 0
61dr_equal ctr_publish_req_redirect 1
62dr_equal ctr_publish_req_published 0
63dr_equal ctr_published_files 1
64dr_equal ctr_double_publish 0
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000065
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000066drr_equal ctr_publish_requests 1
67drr_equal ctr_publish_requests_bad_file_prefix 0
68drr_equal ctr_publish_responses 1
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000069
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000070drr_equal dwl_volume 50000000
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000071
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000072check_dfc_logs
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000073
74#### TEST COMPLETE ####
75
76store_logs END
77
78print_result