Debian Codegraph @

config_tempest/constants.py

raw
1 # Copyright 2013, 2016, 2018 Red Hat, Inc.
2 # All Rights Reserved.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License"); you may
5 # not use this file except in compliance with the License. You may obtain
6 # a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13 # License for the specific language governing permissions and limitations
14 # under the License.
15
16 import logging
17 import os
18
19 LOG = logging.getLogger(__name__)
20
21 # Get the current tempest workspace path
22 TEMPEST_WORKSPACE = os.getcwd()
23
24 DEPLOYER_INPUT = os.path.join(os.path.expanduser("~"),
25 "tempest-deployer-input.conf")
26 DEFAULT_IMAGE_DIR = 'etc'
27 DEFAULT_IMAGE = ("https://download.cirros-cloud.net/0.6.2/"
28 "cirros-0.6.2-x86_64-disk.img")
29 # Should DEFAULT_IMAGE be changed to a format which is not qcow2,
30 # then disconnect DEFAULT_IMAGE from DEFAULT_QCOW2_IMAGE
31 DEFAULT_QCOW2_IMAGE = DEFAULT_IMAGE
32
33 DEFAULT_IMAGES = [("https://download.cirros-cloud.net/0.6.2/"
34 "cirros-0.6.2-x86_64-disk.img"),
35 ("http://images.rdoproject.org/cirros/"
36 "cirros-0.6.2-x86_64-disk.img")]
37 DEFAULT_IMAGE_FORMAT = 'qcow2'
38
39 DEFAULT_FLAVOR_RAM = 128
40 DEFAULT_FLAVOR_RAM_ALT = 192
41 DEFAULT_FLAVOR_DISK = 1
42 DEFAULT_FLAVOR_VCPUS = 1
43
44 DEFAULT_OCTAVIA_TEST_SERVER_FILE = '/tmp/test_server.bin'
45 DEFAULT_OCTAVIA_COMPAT_TEST_SERVER_FILE = (
46 '/usr/libexec/octavia-tempest-plugin-tests-httpd')
47
48 # The dict holds the credentials, which are not supposed to be printed
49 # to a tempest.conf when --test-accounts CLI parameter is used.
50 ALL_CREDENTIALS_KEYS = {
51 "auth.admin_username": [],
52 "auth.admin_password": [],
53 "auth.admin_project_name": [],
54 "auth.admin_domain_name": [],
55 "identity.username": [],
56 "identity.password": [],
57 "identity.project_name": [],
58 "identity.alt_username": [],
59 "identity.alt_password": [],
60 "identity.alt_project_name": [],
61 "identity.admin_domain_name": [],
62 }