Align HV-VES tests to use mounted config file instead of Consul
[integration/csit.git] / tests / dcaegen2-collectors-hv-ves / testcases / __init__.robot
1 # ============LICENSE_START=======================================================
2 # csit-dcaegen2-collectors-hv-ves
3 # ================================================================================
4 # Copyright (C) 2018-2021 NOKIA
5 # ================================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 #
10 #      http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 # ============LICENSE_END=========================================================
18
19 *** Settings ***
20 Library       DcaeAppSimulatorLibrary
21 Library       VesHvContainersUtilsLibrary
22
23 Resource      resources/common-keywords.robot
24
25 Suite Setup       HV-VES Collector Suites Setup
26
27 *** Keywords ***
28 HV-VES Collector Suites Setup
29     Log   Started Suite: HV-VES
30     Configure collector
31     Configure Dcae App
32     Log   Suite setup finished
33
34
35 Configure collector
36     Set New Mounted Configuration    ${HV_VES_CONFIGURATION_JSON_FILEPATH}
37
38 Configure Dcae App
39     Wait until keyword succeeds   10 sec   5 sec
40     ...    Configure Dcae App Simulator To Consume Messages From Topics
41     ...    ${DEFAULT_PERF3GPP_TOPIC},${SECOND_PERF3GPP_TOPIC},${DEFAULT_STNDDEFINED_3GPP_HEARTBEAT_TOPIC}
42     Set Suite Variable   ${DEFAULT_PERF3GPP_TOPIC}   children=True
43     Set Suite Variable   ${SECOND_PERF3GPP_TOPIC}    children=True
44     Set Suite Variable   ${DEFAULT_STNDDEFINED_3GPP_HEARTBEAT_TOPIC}    children=True
45
46
47 *** Variables ***
48 ${HTTP_METHOD_URL}                             http://
49
50 ${CONSUL_CONTAINER_HOST}                       consul-server
51 ${CONSUL_CONTAINER_PORT}                       8500
52 ${CONSUL_HV_VES_CONFIGURATION_KEY_PATH}        /v1/kv/dcae-hv-ves-collector
53
54 ${DEFAULT_PERF3GPP_TOPIC}                      TEST_HV_VES_PERF3GPP
55 ${SECOND_PERF3GPP_TOPIC}                       TEST_HV_VES_PERF3GPP_BUT_WITH_EXTRA_WORDS
56 ${DEFAULT_STNDDEFINED_3GPP_HEARTBEAT_TOPIC}    TEST_SEC_3GPP_HEARTBEAT_OUTPUT
57
58 ${HV_VES_RESOURCES}                            %{WORKSPACE}/tests/dcaegen2-collectors-hv-ves/testcases/resources
59 ${HV_VES_CONFIGURATION_JSON_FILEPATH}          ${HV_VES_RESOURCES}/hv-ves-configuration.yaml