blob: 9d9665bb2c89fa3f3f333ea0fa73978aa4263ee1 [file] [log] [blame]
BjornMagnussonXAa79a0432019-07-17 08:26:50 +00001#!/bin/bash
2
maximesson69311bf2019-08-30 14:05:15 +00003TC_ONELINE_DESCR="100 events with 1 1MB file in each event from one PNF using SFTP with feed reconfigure"
BjornMagnussonXAa79a0432019-07-17 08:26:50 +00004
5. ../common/testcase_common.sh $1 $2
6
7#### TEST BEGIN ####
8
9clean_containers
10
11export MR_TC="--tc110"
12export MR_GROUPS="OpenDcae-c12:PM_MEAS_FILES"
13export MR_FILE_PREFIX_MAPPING="PM_MEAS_FILES:A"
14
15export DR_TC="--tc normal"
maximesson69311bf2019-08-30 14:05:15 +000016export DR_FEEDS="1:A,2:A"
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000017
18export DR_REDIR_TC="--tc normal"
maximesson69311bf2019-08-30 14:05:15 +000019export DR_REDIR_FEEDS="1:A,2:A"
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000020
21export NUM_FTPFILES="200"
22export NUM_PNFS="1"
23export FILE_SIZE="1MB"
24export FTP_TYPE="SFTP"
25export FTP_FILE_PREFIXES="A"
26export NUM_FTP_SERVERS=1
27
28log_sim_settings
29
30start_simulators
31
32consul_config_app 0 "../simulator-group/consul/c12_feed2_PM.json"
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000033
34mr_equal ctr_requests 0 60
35dr_equal ctr_published_files 0 60
36
37mr_print tc_info
38dr_print tc_info
39drr_print tc_info
40
41dr_contain_str feeds "2:A"
42drr_contain_str feeds "2:A"
43
44start_dfc 0
45
maximesson69311bf2019-08-30 14:05:15 +000046dr_equal ctr_published_files 5 900
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000047
48consul_config_app 0 "../simulator-group/consul/c12_feed1_PM.json"
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000049
maximesson69311bf2019-08-30 14:05:15 +000050mr_equal ctr_events 100 1800
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000051mr_equal ctr_unique_files 100
52mr_equal ctr_unique_PNFs 1
53
54dr_greater ctr_published_files 1
55
56dr_contain_str feeds "1:A"
57drr_contain_str feeds "1:A"
58
59check_dfc_logs
60
61#### TEST COMPLETE ####
62
63store_logs END
64
65print_result