Merge "Adjust to new dcae-app-simulator api"
[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-2019 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       ConsulLibrary
22 Library       VesHvContainersUtilsLibrary
23
24 Suite Setup       HV-VES Collector Suites Setup
25
26 *** Keywords ***
27 HV-VES Collector Suites Setup
28     Log   Started Suite: HV-VES
29     Configure collector
30     Configure Dcae App
31     Log   Suite setup finished
32
33
34 Configure collector
35     ${CONSUL_API_ACCESS}=   Get Consul Api Access Url   ${HTTP_METHOD_URL}   ${CONSUL_CONTAINER_HOST}   ${CONSUL_CONTAINER_PORT}
36     ${CONSUL_API_URL}=  Catenate   SEPARATOR=   ${CONSUL_API_ACCESS}   ${CONSUL_HV_VES_CONFIGURATION_KEY_PATH}
37     Publish HV VES Configuration In Consul    ${CONSUL_API_URL}   ${HV_VES_CONFIGURATION_JSON_FILEPATH}
38
39 Configure Dcae App
40     Wait until keyword succeeds   10 sec   5 sec
41     ...    Configure Dcae App Simulator To Consume Messages From Topics   ${DEFAULT_PERF3GPP_TOPIC}
42     Set Suite Variable   ${DEFAULT_PERF3GPP_TOPIC}   children=True
43
44
45 *** Variables ***
46 ${HTTP_METHOD_URL}                             http://
47
48 ${CONSUL_CONTAINER_HOST}                       consul-server
49 ${CONSUL_CONTAINER_PORT}                       8500
50 ${CONSUL_HV_VES_CONFIGURATION_KEY_PATH}        /v1/kv/dcae-hv-ves-collector
51
52 ${DEFAULT_PERF3GPP_TOPIC}                      TEST_HV_VES_PERF3GPP
53
54 ${HV_VES_RESOURCES}                            %{WORKSPACE}/tests/dcaegen2-collectors-hv-ves/testcases/resources
55 ${HV_VES_CONFIGURATION_JSON_FILEPATH}          ${HV_VES_RESOURCES}/hv-ves-configuration.json