blob: 77477a82a9a869643534c8dabed6b12ccf26dfab [file] [log] [blame]
BjornMagnussonXAa79a0432019-07-17 08:26:50 +00001#!/bin/bash
2
3TC_ONELINE_DESCR="100 event with 1 1MB file in each evewnt from one PNF in one event using SFTP with feed reconfigure"
4
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"
16export DR_FEEDS="2:A"
17
18export DR_REDIR_TC="--tc normal"
19export DR_REDIR_FEEDS="2:A"
20
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"
33consul_config_dmaap 0 "../simulator-group/consul/dmaap_feed2.json"
34
35mr_equal ctr_requests 0 60
36dr_equal ctr_published_files 0 60
37
38mr_print tc_info
39dr_print tc_info
40drr_print tc_info
41
42dr_contain_str feeds "2:A"
43drr_contain_str feeds "2:A"
44
45start_dfc 0
46
47dr_equal ctr_published_files 50 900
48
49
50export DR_TC="--tc normal"
51export DR_FEEDS="1:A"
52
53export DR_REDIR_TC="--tc normal"
54export DR_REDIR_FEEDS="1:A"
55
56consul_config_app 0 "../simulator-group/consul/c12_feed1_PM.json"
57consul_config_dmaap 0 "../simulator-group/consul/dmaap_feed1.json"
58
59kill_dr
60kill_drr
61
62log_sim_settings
63
64start_simulators
65
66mr_equal ctr_events 100 900
67mr_equal ctr_unique_files 100
68mr_equal ctr_unique_PNFs 1
69
70dr_greater ctr_published_files 1
71
72dr_contain_str feeds "1:A"
73drr_contain_str feeds "1:A"
74
75check_dfc_logs
76
77#### TEST COMPLETE ####
78
79store_logs END
80
81print_result