blob: fca2f2e045b51e11a22e784b3fd99c2da0e0bcbe [file] [log] [blame]
aravind.est4c6f09a2023-11-20 11:10:40 +00001#!/bin/bash
2#
3# ============LICENSE_START======================================================================
4# Copyright (C) 2023 OpenInfra Foundation Europe. All rights reserved.
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
20arg=${1:-"all"}
21
22if [[ "$arg" == "all" || "$arg" == "acm" ]]; then
23 echo "++++++++++++++++++++++++++ ACM ++++++++++++++++++++++++++"
24
25 echo -e "\n********** A1PMS Participant **********"
26 A1_PMS_HOST=http://$(kubectl get service policymanagementservice -n nonrtric -o jsonpath='{.spec.clusterIP}'):9080
27 curl -sS --location "$A1_PMS_HOST/a1-policy/v2/services" --header 'Accept: application/json' | jq
28
29 echo -e "\n\n********** Kserve Participant **********"
30 kubectl get isvc -A
31
32 echo -e "\n\n********** Kubernetes Participant **********"
33 kubectl get pods --selector=app=nonrtric-ransliceassurance -n nonrtric
34fi
35
36if [[ "$arg" == "all" || "$arg" == "dme" ]]; then
37 echo -e "\n\n********** DME Participant **********"
38
39 ICS_HOST=http://$(kubectl get service informationservice -n nonrtric -o jsonpath='{.spec.clusterIP}'):9082
40
41 echo -e "\n\n********** DME Info Types **********"
42 curl -sS --location "$ICS_HOST/data-producer/v1/info-types" --header 'Accept: application/json' | jq
43
44 echo -e "\n\n********** DME Data Producers **********"
45 curl -sS --location "$ICS_HOST/data-producer/v1/info-producers" --header 'Accept: application/json' | jq
46
47 echo -e "\n\n********** DME Data Consumers **********"
48 curl -sS --location "$ICS_HOST/data-consumer/v1/info-jobs" --header 'Accept: application/json' | jq
49fi
50
51if [[ "$arg" == "all" || "$arg" == "sme" ]]; then
52 echo -e "\n\n++++++++++++++++++++++++++ SME ++++++++++++++++++++++++++"
53
54 CAPIF_HOST=http://$(kubectl get service capifcore -n nonrtric -o jsonpath='{.spec.clusterIP}'):8090
55
56 curl -sS --location "$CAPIF_HOST/service-apis/v1/allServiceAPIs?api-invoker-id=api_invoker_id_Invoker_App_1" --header 'Accept: application/json' | jq
57
58fi
59
60echo -e "\n\n++++++++++++++++++++++++++ Completed ++++++++++++++++++++++++++"
61