blob: 134c87c733d9169396d34a06d8548b6268a81304 [file] [log] [blame]
BjornMagnussonXAa79a0432019-07-17 08:26:50 +00001#!/bin/bash
2
3TC_ONELINE_DESCR="25 events for each 4 feeds with 100 1MB files per event from one PNF using SFTP, 1 change id with no feed, 1 change with one feed and two change id to one feed."
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:LOG_FILES:TEMP_FILES"
13export MR_FILE_PREFIX_MAPPING="PM_MEAS_FILES:A,CTR_MEAS_FILES:B,LOG_FILES:C,TEMP_FILES:D"
14
15export DR_TC="--tc normal"
16export DR_FEEDS="2:B,3:C:D"
17
18export DR_REDIR_TC="--tc normal"
19export DR_REDIR_FEEDS="2:B,3:C:D"
20
21export NUM_FTPFILES="200"
22export NUM_PNFS="1"
23export FILE_SIZE="1MB"
24export FTP_TYPE="SFTP"
25export FTP_FILE_PREFIXES="A,B,C,D"
26export NUM_FTP_SERVERS=1
27
28log_sim_settings
29
30start_simulators
31
32consul_config_app 0 "../simulator-group/consul/c12_feed2_CTR_feed3_LOG_TEMP.json"
33consul_config_dmaap 0 "../simulator-group/consul/dmaap_feed1_2_3_4.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
42start_dfc 0
43
44dr_equal ctr_published_files 588 2000
45dr_equal ctr_published_files/2 196
46dr_equal ctr_published_files/3 392
47sleep_wait 30
48
49dr_equal ctr_published_files 588
50dr_equal ctr_published_files/2 196
51dr_equal ctr_published_files/3 392
52
53mr_greater ctr_requests 100
54
55mr_equal ctr_events 100
56mr_equal ctr_unique_files 784
57mr_equal ctr_unique_PNFs 1
58
59dr_equal ctr_publish_query 588
60dr_equal ctr_publish_query/2 196
61dr_equal ctr_publish_query/3 392
62dr_equal ctr_publish_query_bad_file_prefix 0
63dr_equal ctr_publish_query_published 0
64dr_equal ctr_publish_query_not_published 588
65dr_equal ctr_publish_query_not_published/2 196
66dr_equal ctr_publish_query_not_published/3 392
67dr_equal ctr_publish_req 588
68dr_equal ctr_publish_req/2 196
69dr_equal ctr_publish_req/3 392
70dr_equal ctr_publish_req_bad_file_prefix 0
71dr_equal ctr_publish_req_redirect 588
72dr_equal ctr_publish_req_redirect/2 196
73dr_equal ctr_publish_req_redirect/3 392
74dr_equal ctr_publish_req_published 0
75dr_equal ctr_published_files 588
76dr_equal ctr_published_files/2 196
77dr_equal ctr_published_files/3 392
78dr_equal ctr_double_publish 0
79
80drr_equal ctr_publish_requests 588
81drr_equal ctr_publish_requests/2 196
82drr_equal ctr_publish_requests/3 392
83drr_equal ctr_publish_requests_bad_file_prefix 0
84drr_equal ctr_publish_responses 588
85drr_equal ctr_publish_responses/2 196
86drr_equal ctr_publish_responses/3 392
87
88drr_equal dwl_volume 588000000
89drr_equal dwl_volume/2 196000000
90drr_equal dwl_volume/3 392000000
91
92check_dfc_logs
93
94#### TEST COMPLETE ####
95
96print_all
97
98store_logs END
99
100print_result