Add simulator helm charts
[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_AUTH      = "Basic ZGVtb0BwZW9wbGUub3NhYWYub3JnOmRlbW8xMjM0NTYh"
65 VES_URL         = "http://ves.api.simpledemo.onap.org:30417"
66 DMAAP_URL       = "http://192.168.1.39:3904"
67 NBI_URL         = "https://nbi.api.simpledemo.onap.org:30274"
68 NBI_API_VERSION = "/nbi/api/v4"
69
70 POLICY_BASICAUTH = { 'username': 'policyadmin', 'password': 'zb!XztG34' }
71 SDNC_BASICAUTH = { 'username': 'admin', 'password': 'Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U' }
72 CLAMP_BASICAUTH = { 'username': 'demo@people.osaaf.org', 'password': 'demo123456!' }
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 CLAMP_URL = "https://"+subprocess.run("kubectl get services policy-clamp-be -n onap |grep policy-clamp-be | awk '{print $3}'", shell=True, check=True, stdout=subprocess.PIPE).stdout.decode('utf-8').strip()+":8443"
84 OOF_URL = "https://"+subprocess.run("kubectl get services oof-has-api -n onap |grep oof-has-api | awk '{print $3}'", shell=True, check=True, stdout=subprocess.PIPE).stdout.decode('utf-8').strip()+":8091"
85
86 ### Network simulators topology
87 NETWORK_SIMULATORS_RU_LIST = ["o-ru-11211","o-ru-11221","o-ru-11222","o-ru-11223"]
88 NETWORK_SIMULATORS_DU_LIST = ["o-du-1121","o-du-1122"]
89 NETWORK_SIMULATORS_TOPOLOGY_SERVER = ["topology-server"]
90 NETWORK_SIMULATORS_DU_RU_LIST = NETWORK_SIMULATORS_DU_LIST + NETWORK_SIMULATORS_RU_LIST
91 NETWORK_SIMULATORS_LIST = NETWORK_SIMULATORS_DU_RU_LIST + NETWORK_SIMULATORS_TOPOLOGY_SERVER
92 DMAAP_GROUP = "o1test"
93 DMAAP_USER = "o1test"
94 DMAAP_CL_GROUP = "cltest"
95 DMAAP_CL_USER = "cltest"
96 DMAAP_TOPIC_PNFREG = "unauthenticated.VES_PNFREG_OUTPUT"
97 DMAAP_TOPIC_PNFREG_JSON = '{"topicName": "' + DMAAP_TOPIC_PNFREG + '", "replicationCount": 1}'
98 DMAAP_TOPIC_FAULT = "unauthenticated.SEC_FAULT_OUTPUT"
99 DMAAP_TOPIC_FAULT_JSON = '{"topicName": "' + DMAAP_TOPIC_FAULT + '", "replicationCount": 1}'
100
101 ### Number of pods left in completed state for ONAP namespace
102 ONAP_PODS_WHEN_READY = 9
103 SMO_CHECK_RETRY = 30
104 SMO_CHECK_TIMEOUT = 900
105 SDNC_CHECK_RETRY = 30
106 SDNC_CHECK_TIMEOUT = 900
107 POLICY_CHECK_RETRY = 30
108 POLICY_CHECK_TIMEOUT = 900
109 CLAMP_CHECK_RETRY = 30
110 CLAMP_CHECK_TIMEOUT = 900
111 NETWORK_SIMULATOR_CHECK_RETRY = 30
112 NETWORK_SIMULATOR_CHECK_TIMEOUT = 900
113 DEFAULT_CHECK_RETRY = 30
114 DEFAULT_CHECK_TIMEOUT = 900