blob: e278f5f9c65449b8413be1f669917fc5691f2a3b [file] [log] [blame]
mpriyank220711e2022-03-11 17:22:24 +05301# ============LICENSE_START=======================================================
2# Copyright (C) 2022 Nordix Foundation.
3# ================================================================================
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16# SPDX-License-Identifier: Apache-2.0
17# ============LICENSE_END=========================================================
18
19*** Settings ***
20Documentation DMI - Actuator endpoints
21
22Library Collections
23Library RequestsLibrary
24
halil.cakal56b84062023-10-25 12:02:49 +010025Suite Setup Create Session MANAGEMENT_URL http://${DMI_HOST}:${DMI_PORT}/actuator
mpriyank220711e2022-03-11 17:22:24 +053026
27*** Test Cases ***
28Test DMI Enhanced Healthcheck
29 [Documentation] Runs DMI Health Check. It will check for overall status update of DMI component like, Database and diskspace status along with liveliness and readiness check
30 ${response}= GET On Session MANAGEMENT_URL health expected_status=200
31 ${resp_body}= Convert to string ${response.text}
32 Should Contain ${resp_body} UP
33 Should Not Contain ${resp_body} DOWN