blob: 780fbf7245294e00a9bb49cc3c257ad8b5c9207d [file] [log] [blame]
BjornMagnussonXAa79a0432019-07-17 08:26:50 +00001#!/bin/bash
2
3TC_ONELINE_DESCR="100 events (1 evt per poll) per DFC with 100 1MB files from one PNF using two DFC (different consumer groups) each publishing using unique change ids/feeds over SFTP."
4
5. ../common/testcase_common.sh $1 $2
6
7#### TEST BEGIN ####
8
9clean_containers
10
11export MR_TC="--tc111"
12export MR_GROUPS="OpenDcae-c12:PM_MEAS_FILES:CTR_MEAS_FILES,OpenDcae-c13:PM_MEAS_FILES:CTR_MEAS_FILES"
13export MR_FILE_PREFIX_MAPPING="PM_MEAS_FILES:A,CTR_MEAS_FILES:B"
14
15export DR_TC="--tc normal"
16export DR_FEEDS="1:A,2:B"
17
18export DR_REDIR_TC="--tc normal"
19export DR_REDIR_FEEDS="1:A,2:B"
20
21export NUM_FTPFILES="1000"
22export NUM_PNFS="1"
23export FILE_SIZE="1MB"
24export FTP_TYPE="SFTP"
25export FTP_FILE_PREFIXES="A,B"
26export NUM_FTP_SERVERS=1
27
28log_sim_settings
29
30start_simulators
31
32consul_config_app 0 "../simulator-group/consul/c12_feed1_PM.json"
33consul_config_dmaap 0 "../simulator-group/consul/dmaap_feed1.json"
34consul_config_app 1 "../simulator-group/consul/c13_feed2_CTR.json"
35consul_config_dmaap 1 "../simulator-group/consul/dmaap_feed2.json"
36
37mr_equal ctr_requests 0 60
38dr_equal ctr_published_files 0 60
39
40mr_print tc_info
41dr_print tc_info
42drr_print tc_info
43
44start_dfc 0
45start_dfc 1
46
47dr_equal ctr_published_files 396 2000
48
49sleep_wait 30
50
51dr_equal ctr_published_files 396
52
53mr_greater ctr_requests 200
54
55mr_equal ctr_events 200
56mr_equal ctr_unique_files 792
57mr_equal ctr_unique_PNFs 2
58mr_equal ctr_unique_PNFs/OpenDcae-c12 1
59mr_equal ctr_unique_PNFs/OpenDcae-c13 1
60
61dr_equal ctr_publish_query 396
62dr_equal ctr_publish_query/1 198
63dr_equal ctr_publish_query/2 198
64dr_equal ctr_publish_query_bad_file_prefix 0
65dr_equal ctr_publish_query_published 0
66dr_equal ctr_publish_query_not_published 396
67dr_equal ctr_publish_query_not_published/1 198
68dr_equal ctr_publish_query_not_published/2 198
69dr_equal ctr_publish_req 396
70dr_equal ctr_publish_req/1 198
71dr_equal ctr_publish_req/2 198
72dr_equal ctr_publish_req_bad_file_prefix 0
73dr_equal ctr_publish_req_redirect 396
74dr_equal ctr_publish_req_redirect/1 198
75dr_equal ctr_publish_req_redirect/2 198
76dr_equal ctr_publish_req_published 0
77dr_equal ctr_published_files 396
78dr_equal ctr_published_files/1 198
79dr_equal ctr_published_files/2 198
80dr_equal ctr_double_publish 0
81
82drr_equal ctr_publish_requests 396
83drr_equal ctr_publish_requests/1 198
84drr_equal ctr_publish_requests/2 198
85drr_equal ctr_publish_requests_bad_file_prefix 0
86drr_equal ctr_publish_responses 396
87drr_equal ctr_publish_responses/1 198
88drr_equal ctr_publish_responses/2 198
89
90drr_equal dwl_volume 396000000
91drr_equal dwl_volume/1 198000000
92drr_equal dwl_volume/2 198000000
93
94check_dfc_logs
95
96#### TEST COMPLETE ####
97
98store_logs END
99
100print_result