blob: 0b18289664aa0e1ec6999d830f782ecec7caa327 [file] [log] [blame]
BjornMagnussonXA42dcb262019-04-26 19:29:54 +00001#!/bin/bash
2
3TC_ONELINE_DESCR="DFC start, stop and hearbeat output."
4
5. ../common/testcase_common.sh $1 $2
6
7#### TEST BEGIN ####
8
9clean_containers
10
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000011export MR_TC="--tc100"
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000012export 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
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000021export BC_TC=""
22export NUM_FTPFILES="1"
23export NUM_PNFS="1"
24export FILE_SIZE="1MB"
25export FTP_TYPE="SFTP"
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000026export FTP_FILE_PREFIXES="A"
27export NUM_FTP_SERVERS=1
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000028
29log_sim_settings
30
31start_simulators
32
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000033consul_config_app 0 "../simulator-group/consul/c12_feed2_PM.json"
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000034
35mr_equal ctr_requests 0 60
36dr_equal ctr_published_files 0 60
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000037
38mr_print tc_info
39dr_print tc_info
40drr_print tc_info
41
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000042start_dfc 0
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000043
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000044dr_equal ctr_published_files 1 60
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000045
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000046dfc_contain_str 0 heartbeat "I'm living!"
47dfc_contain_str 0 stopDatafile "Datafile Service has already been stopped!"
48dfc_contain_str 0 stopDatafile "Datafile Service has already been stopped!"
49dfc_contain_str 0 heartbeat "I'm living"
50dfc_contain_str 0 start "Datafile Service has been started!"
51dfc_contain_str 0 start "Datafile Service is still running!"
52dfc_contain_str 0 heartbeat "I'm living"
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000053
54
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000055dfc_contain_str 0 stopDatafile "Datafile Service has already been stopped!"
56dfc_contain_str 0 start "Datafile Service has been started!"
57dfc_contain_str 0 stopDatafile "Datafile Service has already been stopped!"
58dfc_contain_str 0 start "Datafile Service has been started!"
59dfc_contain_str 0 stopDatafile "Datafile Service has already been stopped!"
60dfc_contain_str 0 start "Datafile Service has been started!"
61dfc_contain_str 0 stopDatafile "Datafile Service has already been stopped!"
62dfc_contain_str 0 start "Datafile Service has been started!"
63dfc_contain_str 0 stopDatafile "Datafile Service has already been stopped!"
64dfc_contain_str 0 start "Datafile Service has been started!"
65dfc_contain_str 0 stopDatafile "Datafile Service has already been stopped!"
66dfc_contain_str 0 start "Datafile Service has been started!"
67dfc_contain_str 0 stopDatafile "Datafile Service has already been stopped!"
68dfc_contain_str 0 start "Datafile Service has been started!"
69dfc_contain_str 0 stopDatafile "Datafile Service has already been stopped!"
70dfc_contain_str 0 start "Datafile Service has been started!"
71dfc_contain_str 0 stopDatafile "Datafile Service has already been stopped!"
72dfc_contain_str 0 start "Datafile Service has been started!"
73dfc_contain_str 0 stopDatafile "Datafile Service has already been stopped!"
74dfc_contain_str 0 start "Datafile Service has been started!"
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000075
76
77
78sleep_wait 30
79
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000080dr_equal ctr_published_files 1
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000081
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000082mr_greater ctr_requests 1
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000083
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000084mr_equal ctr_events 1
85mr_equal ctr_unique_files 1
86mr_equal ctr_unique_PNFs 1
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000087
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000088dr_equal ctr_publish_query 1
89dr_equal ctr_publish_query_bad_file_prefix 0
90dr_equal ctr_publish_query_published 0
91dr_equal ctr_publish_query_not_published 1
92dr_equal ctr_publish_req 1
93dr_equal ctr_publish_req_bad_file_prefix 0
94dr_equal ctr_publish_req_redirect 1
95dr_equal ctr_publish_req_published 0
96dr_equal ctr_published_files 1
BjornMagnussonXA42dcb262019-04-26 19:29:54 +000097
BjornMagnussonXAa79a0432019-07-17 08:26:50 +000098drr_equal ctr_publish_requests 1
99drr_equal ctr_publish_requests_bad_file_prefix 0
100drr_equal ctr_publish_responses 1
BjornMagnussonXA42dcb262019-04-26 19:29:54 +0000101
BjornMagnussonXAa79a0432019-07-17 08:26:50 +0000102drr_equal dwl_volume 1000000
BjornMagnussonXA42dcb262019-04-26 19:29:54 +0000103
BjornMagnussonXAa79a0432019-07-17 08:26:50 +0000104check_dfc_logs
BjornMagnussonXA42dcb262019-04-26 19:29:54 +0000105
106#### TEST COMPLETE ####
107
108store_logs END
109
110print_result