enable sdnr csit
[sdnc/oam.git] / csit / plans / sdnr / testdata / localhost.py
1 #!python
2
3 # This file describes test all paramters for a specific test environment and system under test.
4 # SDNR Custom keywords and test suites use this file to be independent
5 # This file es created once for a test system
6 # in robot commandline pass the file with '--variablefile <my_environment>.py'
7
8 ## Access SDNR cluster
9 SDNR_PROTOCOL = "http://"
10 SDNR_HOST = "127.0.0.1"
11 SDNR_PORT = "8181"
12 SDNR_USER = "admin"
13 #SDNR_PASSWORD = "Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U"
14 SDNR_PASSWORD = "admin"
15 WEBSOCKET_PORT = "8182"
16
17 # for odlux gui testing
18 WEBDRIVER_PATH = "/usr/local/bin/chromedriver"
19
20 # Access to elastic search SDNRDB
21 SDNRDB = {'PROTOCOL': 'http', 'IP': '127.0.0.1', 'PORT': '8181', 'USE_API_GATEWAY': True, 'USE_SSL': False,
22           'VERIFY_CERTS': False}
23 # elastic DB to store statistic datas
24 ELASTIC_LOG_DB = SDNRDB
25 RESTCONF_TIMEOUT = '90 s'
26 # Restconf response time longer than VALID_RESPONSE_TIME in s will be notified as warning in the robot logs
27 VALID_RESPONSE_TIME = 5
28
29 # Define network function parameter
30 NETWORK_FUNCTIONS = {
31     'O_RAN_FH': {"NAME": "o-ran-fh", "IP": "172.40.0.40", "PORT": "830", "USER": "netconf",
32                  "PASSWORD": "netconf!", 'NETCONF_HOST': '172.40.0.1', 'BASE_PORT': 40000, 'TLS_PORT': 40500},
33     'X_RAN': {"NAME": "x-ran", "IP": "172.40.0.42", "PORT": "830", "USER": "netconf",
34               "PASSWORD": "netconf!", 'NETCONF_HOST': '172.40.0.1', 'BASE_PORT': 42000, 'TLS_PORT': 42500},
35     'ONF_CORE_1_2': {"NAME": "onf-core-1-2", "IP": "172.40.0.30", "PORT": "830",
36                      "USER": "netconf", "PASSWORD": "netconf!", 'NETCONF_HOST': '172.40.0.1', 'BASE_PORT': 30000,
37                      'TLS_PORT': 30500},
38     'ONF_CORE_1_4': {"NAME": "onf-core-1-4", "IP": "172.40.0.31", "PORT": "830",
39                      "USER": "netconf", "PASSWORD": "netconf!", 'NETCONF_HOST': '172.40.0.1', 'BASE_PORT': 31000,
40                      'TLS_PORT': 31500},
41     'OPENROADM_6_1_0': {"NAME": "openroadm-6-1-0", "IP": "172.40.0.36", "PORT": "830", "USER": "netconf",
42                         "PASSWORD": "netconf!", 'NETCONF_HOST': '172.40.0.1', 'BASE_PORT': 36000, 'TLS_PORT': 36500}
43 }
44
45 VESCOLLECTOR = {"SCHEME": "https", "IP": "172.40.0.1", "PORT": 8443, "AUTHMETHOD": "basic-auth", "USERNAME": "sample1",
46                 "PASSWORD": "sample1"}
47
48 NTS_SSH_CONNECTIONS = 10
49 NTS_TLS_CONNECTIONS = 10
50 # ssh settings for karaf-shell
51 # list of default log topics, short name (defined in ...) or long name
52 KARAF_CONSOLE = {'KARAF_USER': "karaf", 'KARAF_PASSWORD': "karaf", 'KARAF_LOG_LEVEL': "DEFAULT",
53                  'KARAF_LOGGER_LIST': ['netconf', 'wtfeatures'],
54                  'HOST_LIST': [{'KARAF_HOST': "127.0.0.1", 'KARAF_PORT': 8101}
55                                ]}
56 # define log level used by default
57 KARAF_LOG_LEVEL = "DEFAULT"
58 # save karaf logs after test execution
59 KARAF_GET_LOG = True
60 KARAF_LOG_FILE_PATH = '/opt/opendaylight/data/log/'
61 # KARAF_LOG_FILE_PATH = '/var/log/onap/sdnc/karaf.log'
62 # write useful statistics in background
63 WRITE_STATISTICS_BACKGROUND = False
64 WRITE_STATISTICS_BACKGROUND_INTERVAL = 5
65
66 GLOBAL_SUITE_SETUP_CONFIG = {'setup_ssh_lib': True}