blob: 1f7a8e9a1ed3545cf272a76f008223299e3f0946 [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 SFTP, 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="--tc102"
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
21export NUM_FTPFILES="10"
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000022export NUM_PNFS="1"
23export FILE_SIZE="50MB"
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
ecaiyanlinux796e8fe2019-08-21 12:10:33 +000032consul_config_app 0 "../simulator-group/consul/c12_feed2_PM_secureMR.json"
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000033consul_config_dmaap 0 "../simulator-group/consul/dmaap_feed2.json"
34
ecaiyanlinux796e8fe2019-08-21 12:10:33 +000035mr_secure_equal ctr_requests 0 60
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000036dr_equal ctr_published_files 0 60
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000037
ecaiyanlinux796e8fe2019-08-21 12:10:33 +000038mr_secure_print tc_info
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000039dr_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 1 60
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000045
46sleep_wait 30
47
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000048dr_equal ctr_published_files 1
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000049
ecaiyanlinux796e8fe2019-08-21 12:10:33 +000050mr_secure_greater ctr_requests 1
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000051
ecaiyanlinux796e8fe2019-08-21 12:10:33 +000052mr_secure_equal ctr_events 1
53mr_secure_equal ctr_unique_files 1
54mr_secure_equal ctr_unique_PNFs 1
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000055
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000056dr_equal ctr_publish_query 1
57dr_equal ctr_publish_query_bad_file_prefix 0
58dr_equal ctr_publish_query_published 0
59dr_equal ctr_publish_query_not_published 1
60dr_equal ctr_publish_req 1
61dr_equal ctr_publish_req_bad_file_prefix 0
62dr_equal ctr_publish_req_redirect 1
63dr_equal ctr_publish_req_published 0
64dr_equal ctr_published_files 1
65dr_equal ctr_double_publish 0
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000066
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000067drr_equal ctr_publish_requests 1
68drr_equal ctr_publish_requests_bad_file_prefix 0
69drr_equal ctr_publish_responses 1
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000070
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000071drr_equal dwl_volume 50000000
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000072
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000073check_dfc_logs
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000074
75
76#### TEST COMPLETE ####
77
78store_logs END
79
80print_result