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
10 # http://www.apache.org/licenses/LICENSE-2.0
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========================================================================
22 if [[ "$arg" == "all" || "$arg" == "acm" ]]; then
23 echo "++++++++++++++++++++++++++ ACM ++++++++++++++++++++++++++"
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
29 echo -e "\n\n********** Kserve Participant **********"
32 echo -e "\n\n********** Kubernetes Participant **********"
33 kubectl get pods --selector=app=nonrtric-ransliceassurance -n nonrtric
36 if [[ "$arg" == "all" || "$arg" == "dme" ]]; then
37 echo -e "\n\n********** DME Participant **********"
39 ICS_HOST=http://$(kubectl get service informationservice -n nonrtric -o jsonpath='{.spec.clusterIP}'):9082
41 echo -e "\n\n********** DME Info Types **********"
42 curl -sS --location "$ICS_HOST/data-producer/v1/info-types" --header 'Accept: application/json' | jq
44 echo -e "\n\n********** DME Data Producers **********"
45 curl -sS --location "$ICS_HOST/data-producer/v1/info-producers" --header 'Accept: application/json' | jq
47 echo -e "\n\n********** DME Data Consumers **********"
48 curl -sS --location "$ICS_HOST/data-consumer/v1/info-jobs" --header 'Accept: application/json' | jq
51 if [[ "$arg" == "all" || "$arg" == "sme" ]]; then
52 echo -e "\n\n++++++++++++++++++++++++++ SME ++++++++++++++++++++++++++"
54 CAPIF_HOST=http://$(kubectl get service capifcore -n nonrtric -o jsonpath='{.spec.clusterIP}'):8090
56 curl -sS --location "$CAPIF_HOST/service-apis/v1/allServiceAPIs?api-invoker-id=api_invoker_id_Invoker_App_1" --header 'Accept: application/json' | jq
60 echo -e "\n\n++++++++++++++++++++++++++ Completed ++++++++++++++++++++++++++"