New O1 tests for python SDK
[it/dep.git] / smo-install / test / pythonsdk / src / orantests / configuration / settings.py
1 """Specific settings module."""  # pylint: disable=bad-whitespace
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': 'healthcheck', 'password': 'zb!XztG34' }
72
73 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"
74
75 A1SIM_OSC_URL = "http://"+subprocess.run("kubectl get services a1-sim-osc -n nonrtric |grep a1-sim-osc | awk '{print $3}'", shell=True, check=True, stdout=subprocess.PIPE).stdout.decode('utf-8').strip()+":8085"
76 A1SIM_STD1_URL = "http://"+subprocess.run("kubectl get services a1-sim-std-1 -n nonrtric |grep a1-sim-std-1 | awk '{print $3}'", shell=True, check=True, stdout=subprocess.PIPE).stdout.decode('utf-8').strip()+":3904"
77 A1SIM_STD2_URL = "http://"+subprocess.run("kubectl get services a1-sim-std-2 -n nonrtric |grep a1-sim-std-2 | awk '{print $3}'", shell=True, check=True, stdout=subprocess.PIPE).stdout.decode('utf-8').strip()+":3904"
78
79 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"
80 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"
81 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"
82
83 ### Network simulators topology
84 NETWORK_SIMULATORS_RU_LIST = ["o-ru-11211","o-ru-11221","o-ru-11222","o-ru-11223"]
85 NETWORK_SIMULATORS_DU_LIST = ["o-du-1121","o-du-1122"]
86 NETWORK_SIMULATORS_TOPOLOGY_SERVER = ["topology-server"]
87 NETWORK_SIMULATOR_DEVICES_LIST = NETWORK_SIMULATORS_RU_LIST + NETWORK_SIMULATORS_DU_LIST + NETWORK_SIMULATORS_TOPOLOGY_SERVER
88 DMAAP_GROUP = "o1test"
89 DMAAP_USER = "o1test"