blob: 50da063a4a18b58c52f1d3a0ea19756a0ec77b88 [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"
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000033consul_config_app 1 "../simulator-group/consul/c13_feed2_CTR.json"
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000034
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
42start_dfc 0
43start_dfc 1
44
45dr_equal ctr_published_files 396 2000
46
47sleep_wait 30
48
49dr_equal ctr_published_files 396
50
51mr_greater ctr_requests 200
52
53mr_equal ctr_events 200
54mr_equal ctr_unique_files 792
55mr_equal ctr_unique_PNFs 2
56mr_equal ctr_unique_PNFs/OpenDcae-c12 1
57mr_equal ctr_unique_PNFs/OpenDcae-c13 1
58
59dr_equal ctr_publish_query 396
60dr_equal ctr_publish_query/1 198
61dr_equal ctr_publish_query/2 198
62dr_equal ctr_publish_query_bad_file_prefix 0
63dr_equal ctr_publish_query_published 0
64dr_equal ctr_publish_query_not_published 396
65dr_equal ctr_publish_query_not_published/1 198
66dr_equal ctr_publish_query_not_published/2 198
67dr_equal ctr_publish_req 396
68dr_equal ctr_publish_req/1 198
69dr_equal ctr_publish_req/2 198
70dr_equal ctr_publish_req_bad_file_prefix 0
71dr_equal ctr_publish_req_redirect 396
72dr_equal ctr_publish_req_redirect/1 198
73dr_equal ctr_publish_req_redirect/2 198
74dr_equal ctr_publish_req_published 0
75dr_equal ctr_published_files 396
76dr_equal ctr_published_files/1 198
77dr_equal ctr_published_files/2 198
78dr_equal ctr_double_publish 0
79
80drr_equal ctr_publish_requests 396
81drr_equal ctr_publish_requests/1 198
82drr_equal ctr_publish_requests/2 198
83drr_equal ctr_publish_requests_bad_file_prefix 0
84drr_equal ctr_publish_responses 396
85drr_equal ctr_publish_responses/1 198
86drr_equal ctr_publish_responses/2 198
87
88drr_equal dwl_volume 396000000
89drr_equal dwl_volume/1 198000000
90drr_equal dwl_volume/2 198000000
91
92check_dfc_logs
93
94#### TEST COMPLETE ####
95
96store_logs END
97
98print_result