Add ORAN Python SDK first draft
[it/dep.git] / smo-install / test / apex-policy-test / apex-policy-test.sh
1 #!/bin/bash
2
3 ###
4 # ============LICENSE_START=======================================================
5 # ORAN SMO Package
6 # ================================================================================
7 # Copyright (C) 2021 AT&T Intellectual Property. All rights
8 #                             reserved.
9 # ================================================================================
10 # Licensed under the Apache License, Version 2.0 (the "License");
11 # you may not use this file except in compliance with the License.
12 # You may obtain a copy of the License at
13 #
14 # http://www.apache.org/licenses/LICENSE-2.0
15 #
16 # Unless required by applicable law or agreed to in writing, software
17 # distributed under the License is distributed on an "AS IS" BASIS,
18 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 # See the License for the specific language governing permissions and
20 # limitations under the License.
21 # ============LICENSE_END============================================
22 # ===================================================================
23 #
24 ###
25 pap_port=6969
26 api_port=6969
27 dmaap_port=3904
28 sdnc_port=8282
29
30 pap_url=`kubectl get services policy-pap -n onap |grep policy-pap | awk '{print $3}'`:$pap_port
31 echo "Policy pap url: $pap_url"
32
33 api_url=`kubectl get services policy-api -n onap |grep policy-api | awk '{print $3}'`:$api_port
34 echo "Policy api url: $api_url"
35
36 dmaap_url=`kubectl get services message-router -n onap |grep message-router | awk '{print $3}'`:$dmaap_port
37 echo "Dmaap url: $dmaap_url"
38
39 sdnc_url=`kubectl get services -n onap | grep sdnc-oam | awk  '{print $3}'`:$sdnc_port
40 echo "SDNC url: $sdnc_url"
41 echo -e "\n"