mpriyank | 220711e | 2022-03-11 17:22:24 +0530 | [diff] [blame] | 1 | # ============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 *** |
| 20 | Documentation DMI - Actuator endpoints |
| 21 | |
| 22 | Library Collections |
| 23 | Library RequestsLibrary |
| 24 | |
halil.cakal | 56b8406 | 2023-10-25 12:02:49 +0100 | [diff] [blame^] | 25 | Suite Setup Create Session MANAGEMENT_URL http://${DMI_HOST}:${DMI_PORT}/actuator |
mpriyank | 220711e | 2022-03-11 17:22:24 +0530 | [diff] [blame] | 26 | |
| 27 | *** Test Cases *** |
| 28 | Test 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 |