blob: 7e6288b84d67da7e562bb1372150f661cf1652f9 [file] [log] [blame]
BjornMagnussonXA42dcb262019-04-26 19:29:54 +00001#!/bin/bash
2
3TC_ONELINE_DESCR="Poll 199 new files (100 events) with 10% missing files (20 files with bad file names not existing in FTP server)"
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="--tc121"
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="199"
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"
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_equal ctr_published_files 179 5000
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000045
46sleep_wait 600
47
48
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000049dr_equal ctr_published_files 179
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000050
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000051mr_equal ctr_events 100
52mr_equal ctr_unique_files 179
53mr_equal ctr_unique_PNFs 1
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000054
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000055dr_greater ctr_publish_query 179
56dr_equal ctr_publish_query_bad_file_prefix 0
57dr_equal ctr_publish_query_published 0
58dr_greater ctr_publish_query_not_published 179
59dr_equal ctr_publish_req 179
60dr_equal ctr_publish_req_bad_file_prefix 0
61dr_equal ctr_publish_req_redirect 179
62dr_equal ctr_publish_req_published 0
63dr_equal ctr_published_files 179
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000064
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000065drr_equal ctr_publish_requests 179
66drr_equal ctr_publish_requests_bad_file_prefix 0
67drr_equal ctr_publish_responses 179
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000068
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000069drr_equal dwl_volume 179000000
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000070
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000071check_dfc_logs
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000072
73#### TEST COMPLETE ####
74
75store_logs END
76
77print_result