File: tempest.py

package info (click to toggle)
rally-openstack 3.0.0-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,968 kB
  • sloc: python: 53,131; sh: 262; makefile: 38
file content (88 lines) | stat: -rw-r--r-- 4,096 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Copyright 2013: Mirantis Inc.
# All Rights Reserved.
#
#    Licensed under the Apache License, Version 2.0 (the "License"); you may
#    not use this file except in compliance with the License. You may obtain
#    a copy of the License at
#
#         http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#    License for the specific language governing permissions and limitations
#    under the License.

from rally.common import cfg

OPTS = {"openstack": [
    cfg.StrOpt("img_url",
               default="http://download.cirros-cloud.net/"
                       "0.5.2/cirros-0.5.2-x86_64-disk.img",
               deprecated_group="tempest",
               help="image URL"),
    cfg.StrOpt("img_disk_format",
               default="qcow2",
               deprecated_group="tempest",
               help="Image disk format to use when creating the image"),
    cfg.StrOpt("img_container_format",
               default="bare",
               deprecated_group="tempest",
               help="Image container format to use when creating the image"),
    cfg.StrOpt("img_name_regex",
               default="^.*(cirros|testvm).*$",
               deprecated_group="tempest",
               help="Regular expression for name of a public image to "
                    "discover it in the cloud and use it for the tests. "
                    "Note that when Rally is searching for the image, case "
                    "insensitive matching is performed. Specify nothing "
                    "('img_name_regex =') if you want to disable discovering. "
                    "In this case Rally will create needed resources by "
                    "itself if the values for the corresponding config "
                    "options are not specified in the Tempest config file"),
    cfg.StrOpt("swift_operator_role",
               default="member",
               deprecated_group="tempest",
               help="Role required for users "
                    "to be able to create Swift containers"),
    cfg.StrOpt("swift_reseller_admin_role",
               default="ResellerAdmin",
               deprecated_group="tempest",
               help="User role that has reseller admin"),
    cfg.StrOpt("heat_stack_owner_role",
               default="heat_stack_owner",
               deprecated_group="tempest",
               help="Role required for users "
                    "to be able to manage Heat stacks"),
    cfg.StrOpt("heat_stack_user_role",
               default="heat_stack_user",
               deprecated_group="tempest",
               help="Role for Heat template-defined users"),
    cfg.IntOpt("flavor_ref_ram",
               default="128",
               deprecated_group="tempest",
               help="Primary flavor RAM size used by most of the test cases"),
    cfg.IntOpt("flavor_ref_alt_ram",
               default="192",
               deprecated_group="tempest",
               help="Alternate reference flavor RAM size used by test that "
               "need two flavors, like those that resize an instance"),
    cfg.IntOpt("flavor_ref_disk",
               default="5",
               help="Primary flavor disk size in GiB used by most of the test "
               "cases"),
    cfg.IntOpt("flavor_ref_alt_disk",
               default="5",
               help="Alternate reference flavor disk size in GiB used by "
               "tests that need two flavors, like those that resize an "
               "instance"),
    cfg.IntOpt("heat_instance_type_ram",
               default="128",
               deprecated_group="tempest",
               help="RAM size flavor used for orchestration test cases"),
    cfg.IntOpt("heat_instance_type_disk",
               default="5",
               deprecated_group="tempest",
               help="Disk size requirement in GiB flavor used for "
               "orchestration test cases"),
]}