Test fixes
[it/dep.git] / smo-install / test / pythonsdk / src / orantests / configuration / settings.py
1 """Specific settings module."""  # pylint: disable=bad-whitespace,line-too-long
2 import subprocess
3
4 ######################
5 #                    #
6 # ONAP INPUTS DATAS  #
7 #                    #
8 ######################
9
10
11 # Variables to set logger information
12 # Possible values for logging levels in onapsdk: INFO, DEBUG , WARNING, ERROR
13 LOG_CONFIG = {
14     "version": 1,
15     "disable_existing_loggers": False,
16     "formatters": {
17         "default": {
18             "class": "logging.Formatter",
19             "format": "%(asctime)s %(levelname)s %(lineno)d:%(filename)s(%(process)d) - %(message)s"
20         }
21     },
22     "handlers": {
23         "console": {
24             "level": "DEBUG",
25             "class": "logging.StreamHandler",
26             "formatter": "default"
27         },
28         "file": {
29             "level": "DEBUG",
30             "class": "logging.FileHandler",
31             "formatter": "default",
32             "filename": "pythonsdk.debug.log",
33             "mode": "w"
34         }
35     },
36     "root": {
37         "level": "DEBUG",
38         "handlers": ["console", "file"]
39     }
40 }
41
42 ######################
43 #                    #
44 # ONAP SERVICES URLS #
45 #                    #
46 ######################
47
48 AAI_URL         = "https://aai.api.sparky.simpledemo.onap.org:30233"
49 AAI_API_VERSION = "v23"
50 AAI_AUTH        = "Basic QUFJOkFBSQ=="
51 CDS_URL         = "http://portal.api.simpledemo.onap.org:30449"
52 CDS_AUTH        = ("ccsdkapps", "ccsdkapps")
53 MSB_URL         = "https://msb.api.simpledemo.onap.org:30283"
54 SDC_BE_URL      = "https://sdc.api.be.simpledemo.onap.org:30204"
55 SDC_FE_URL      = "https://sdc.api.fe.simpledemo.onap.org:30207"
56 SDC_AUTH        = "Basic YWFpOktwOGJKNFNYc3pNMFdYbGhhazNlSGxjc2UyZ0F3ODR2YW9HR21KdlV5MlU="
57 #SDNC_URL        = "https://sdnc.api.simpledemo.onap.org:30267"
58 SDNC_AUTH       = "Basic YWRtaW46S3A4Yko0U1hzek0wV1hsaGFrM2VIbGNzZTJnQXc4NHZhb0dHbUp2VXkyVQ=="
59 SO_URL          = "http://so.api.simpledemo.onap.org:30277"
60 SO_API_VERSION  = "v7"
61 SO_AUTH         = "Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA=="
62 VID_URL         = "https://vid.api.simpledemo.onap.org:30200"
63 VID_API_VERSION = "/vid"
64 CLAMP_URL       = "https://clamp.api.simpledemo.onap.org:30258"
65 CLAMP_AUTH      = "Basic ZGVtb0BwZW9wbGUub3NhYWYub3JnOmRlbW8xMjM0NTYh"
66 VES_URL         = "http://ves.api.simpledemo.onap.org:30417"
67 DMAAP_URL       = "http://192.168.1.39:3904"
68 NBI_URL         = "https://nbi.api.simpledemo.onap.org:30274"
69 NBI_API_VERSION = "/nbi/api/v4"
70
71 POLICY_BASICAUTH = { 'username': 'policyadmin', 'password': 'zb!XztG34' }
72 SDNC_BASICAUTH = { 'username': 'admin', 'password': 'Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U' }
73
74 DMAAP_URL = "http://"+subprocess.run("kubectl get services message-router -n onap |grep message-router | awk '{print $3}'", shell=True, check=True, stdout=subprocess.PIPE).stdout.decode('utf-8').strip()+":3904"
75
76 A1SIM_OSC_URL = "http://"+subprocess.run("kubectl get services a1-sim-osc-0 -n nonrtric |grep a1-sim-osc-0 | awk '{print $3}'", shell=True, check=True, stdout=subprocess.PIPE).stdout.decode('utf-8').strip()+":8085"
77 A1SIM_STD1_URL = "http://"+subprocess.run("kubectl get services a1-sim-std1-0 -n nonrtric |grep a1-sim-std1-0 | awk '{print $3}'", shell=True, check=True, stdout=subprocess.PIPE).stdout.decode('utf-8').strip()+":3904"
78 A1SIM_STD2_URL = "http://"+subprocess.run("kubectl get services a1-sim-std2-0 -n nonrtric |grep a1-sim-std2-0 | awk '{print $3}'", shell=True, check=True, stdout=subprocess.PIPE).stdout.decode('utf-8').strip()+":3904"
79
80 POLICY_PAP_URL = "https://"+subprocess.run("kubectl get services policy-pap -n onap |grep policy-pap | awk '{print $3}'", shell=True, check=True, stdout=subprocess.PIPE).stdout.decode('utf-8').strip()+":6969"
81 POLICY_API_URL = "https://"+subprocess.run("kubectl get services policy-api -n onap |grep policy-api | awk '{print $3}'", shell=True, check=True, stdout=subprocess.PIPE).stdout.decode('utf-8').strip()+":6969"
82 SDNC_URL = "http://"+subprocess.run("kubectl get services sdnc-oam -n onap |grep sdnc-oam | awk '{print $3}'", shell=True, check=True, stdout=subprocess.PIPE).stdout.decode('utf-8').strip()+":8282"
83
84 ### Network simulators topology
85 NETWORK_SIMULATORS_RU_LIST = ["o-ru-11211","o-ru-11221","o-ru-11222","o-ru-11223"]
86 NETWORK_SIMULATORS_DU_LIST = ["o-du-1121","o-du-1122"]
87 NETWORK_SIMULATORS_TOPOLOGY_SERVER = ["topology-server"]
88 NETWORK_SIMULATORS_DU_RU_LIST = NETWORK_SIMULATORS_DU_LIST + NETWORK_SIMULATORS_RU_LIST
89 NETWORK_SIMULATORS_LIST = NETWORK_SIMULATORS_DU_RU_LIST + NETWORK_SIMULATORS_TOPOLOGY_SERVER
90 DMAAP_GROUP = "o1test"
91 DMAAP_USER = "o1test"