Issue-ID: RIC-149
[it/test.git] / ric_robot_suite / helm / nanobot / configmap-src / public / resources / dbaas_interface.robot
1 #   Copyright (c) 2020 HCL Technologies Limited.
2 #   Licensed under the Apache License, Version 2.0 (the "License");
3 #   you may not use this file except in compliance with the License.
4 #   You may obtain a copy of the License at
5 #
6 #       http://www.apache.org/licenses/LICENSE-2.0
7 #
8 #   Unless required by applicable law or agreed to in writing, software
9 #   distributed under the License is distributed on an "AS IS" BASIS,
10 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 #   See the License for the specific language governing permissions and
12 #   limitations under the License.
13
14 *** Settings *** 
15 Documentation  Tests for the UE Event Collector XApp 
16  
17 Resource       /robot/resources/global_properties.robot 
18 Resource       /robot/resources/ric/ric_utils.robot 
19  
20 Library        String 
21 Library        Collections 
22 Library        XML 
23  
24 Library        KubernetesEntity  ${GLOBAL_RICPLT_NAMESPACE} 
25 Library        SDLWrapper       False 
26 *** Variables *** 
27  
28 *** Keywords *** 
29 Run dbaas Health Check 
30      [Documentation]  Runs dbaas Health check 
31      ${data_path} =  Set Variable           /v1/health 
32      ${resp} =       Run dbaas GET Request 
33  
34 Run dbaas GET Request 
35   ${c} =            Get From Dictionary  ${GLOBAL_RICPLT_COMPONENTS}  dbaas 
36   ${ctrl}  ${dbaas1} =  Split String         ${c}       | 
37   ${deploy} =       Run Keyword          ${ctrl}        ${dbaas1} 
38   ${log} =      Run Keyword     healthcheck 
39   Log To Console        ${log} 
40   Log   ${log}  console=yes 
41   [Return]        ${deploy} 
42