3 # ============LICENSE_START=======================================================
4 # ORAN SMO PACKAGE - PYTHONSDK TESTS
5 # ================================================================================
6 # Copyright (C) 2022 AT&T Intellectual Property. All rights
8 # ================================================================================
9 # Licensed under the Apache License, Version 2.0 (the "License");
10 # you may not use this file except in compliance with the License.
11 # You may obtain a copy of the License at
13 # http://www.apache.org/licenses/LICENSE-2.0
15 # Unless required by applicable law or agreed to in writing, software
16 # distributed under the License is distributed on an "AS IS" BASIS,
17 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 # See the License for the specific language governing permissions and
19 # limitations under the License.
20 # ============LICENSE_END============================================
21 # ===================================================================
24 """Onap AAI module."""
25 from onapsdk.aai.aai_element import AaiElement
26 from onapsdk.configuration import settings
28 class Aai(AaiElement):
29 """AAI healthcheck class."""
31 def healthcheck(self) -> str:
32 """AAI Model healthcheck.
35 result of the health check
37 res = self.send_message_json("GET", "A&AI healthcheck", f"{self.url}/echo?action=long")
42 """Define the base url.
45 the base url of the class
48 return f"{settings.AAI_URL}/aai/util"