blob: 4daeb3c02e6c7214cf7357ab3de80d7810082afe [file] [log] [blame]
Krzysztof Gajewskic7468822021-02-01 17:46:51 +01001#!/bin/bash
2#
3# Copyright (C) 2021 Nokia. All rights reserved.
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11
12TC_ONELINE_DESCR="One 5MB file from one PNF in one event using HTTPS, from poll to publish"
13
14. ../common/testcase_common.sh $1 $2
15
16#### TEST BEGIN ####
17
18clean_containers
19
20export MR_TC="--tc401"
21export MR_GROUPS="OpenDcae-c12:PM_MEAS_FILES"
22export MR_FILE_PREFIX_MAPPING="PM_MEAS_FILES:A"
23
24export DR_TC="--tc normal"
25export DR_FEEDS="2:A"
26
27export DR_REDIR_TC="--tc normal"
28export DR_REDIR_FEEDS="2:A"
29
30export NUM_HTTPFILES="10"
31export NUM_PNFS="1"
32export FILE_SIZE="5MB"
33export HTTP_TYPE="HTTPS"
34export HTTP_FILE_PREFIXES="A"
35export NUM_HTTP_SERVERS=1
36
37log_sim_settings
38
39start_simulators
40
Piotr Marcinkiewicz1cb88f32021-09-03 14:57:16 +020041dfc_config_app 0 "../simulator-group/dfc_configs/c12_feed2_PM_HTTPS.yaml"
Krzysztof Gajewskic7468822021-02-01 17:46:51 +010042
43mr_equal ctr_requests 0 60
44dr_equal ctr_published_files 0 60
45
46mr_print tc_info
47dr_print tc_info
48drr_print tc_info
49
50start_dfc 0
51
52dr_equal ctr_published_files 1 60
53
54sleep_wait 30
55
56dr_equal ctr_published_files 1
57
58mr_greater ctr_requests 1
59
60mr_equal ctr_events 1
61mr_equal ctr_unique_files 1
62mr_equal ctr_unique_PNFs 1
63
64dr_equal ctr_publish_query 1
65dr_equal ctr_publish_query_bad_file_prefix 0
66dr_equal ctr_publish_query_published 0
67dr_equal ctr_publish_query_not_published 1
68dr_equal ctr_publish_req 1
69dr_equal ctr_publish_req_bad_file_prefix 0
70dr_equal ctr_publish_req_redirect 1
71dr_equal ctr_publish_req_published 0
72dr_equal ctr_published_files 1
73dr_equal ctr_double_publish 0
74
75drr_equal ctr_publish_requests 1
76drr_equal ctr_publish_requests_bad_file_prefix 0
77drr_equal ctr_publish_responses 1
78
79drr_equal dwl_volume 5000000
80
81check_dfc_logs
82
83#### TEST COMPLETE ####
84
85store_logs END
86
87print_result