Modify Python ONAP SDK tests to not require kubeconfig
[testsuite/pythonsdk-tests.git] / src / onaptests / configuration / settings.py
1 """Specific settings module."""  # pylint: disable=bad-whitespace
2
3 ######################
4 #                    #
5 # ONAP INPUTS DATAS  #
6 #                    #
7 ######################
8
9
10 # Variables to set logger information
11 # Possible values for logging levels in onapsdk: INFO, DEBUG , WARNING, ERROR
12 LOG_CONFIG = {
13     "version": 1,
14     "disable_existing_loggers": False,
15     "formatters": {
16         "default": {
17             "class": "logging.Formatter",
18             "format": "%(asctime)s %(levelname)s %(lineno)d:%(filename)s(%(process)d) - %(message)s"
19         }
20     },
21     "handlers": {
22         "console": {
23             "level": "DEBUG",
24             "class": "logging.StreamHandler",
25             "formatter": "default"
26         },
27         "file": {
28             "level": "DEBUG",
29             "class": "logging.FileHandler",
30             "formatter": "default",
31             "filename": "/tmp/pythonsdk.debug.log",
32             "mode": "w"
33         }
34     },
35     "root": {
36         "level": "DEBUG",
37         "handlers": ["console", "file"]
38     }
39 }
40 CLEANUP_FLAG = False
41 SDC_CLEANUP = False
42
43 REPORTING_FILE_DIRECTORY = "/tmp/"
44 HTML_REPORTING_FILE_NAME = "reporting.html"
45 JSON_REPORTING_FILE_NAME = "reporting.json"
46 K8S_REGION_TYPE = "k8s"
47 TILLER_HOST = "localhost"
48 K8S_CONFIG = None  # None means it will use default config (~/.kube/config)
49 K8S_ONAP_NAMESPACE = "onap"  # ONAP Kubernetes namespace
50 K8S_ADDITIONAL_RESOURCES_NAMESPACE = K8S_ONAP_NAMESPACE  # Resources created on tests namespace
51 #SOCK_HTTP = "socks5h://127.0.0.1:8091"
52
53 ORCHESTRATION_REQUEST_TIMEOUT = 60.0 * 15  # 15 minutes in seconds
54 SERVICE_DISTRIBUTION_NUMBER_OF_TRIES = 30
55 SERVICE_DISTRIBUTION_SLEEP_TIME = 60
56 EXPOSE_SERVICES_NODE_PORTS = True
57 IN_CLUSTER = False