magnum-tempest-plugin/magnum_tempest_plugin/config.py

90 lines
3.8 KiB
Python

# 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 oslo_config import cfg
from tempest import config # noqa
magnum_scope_enforcement = cfg.BoolOpt('magnum',
default=False,
help="Does the Magnum service API "
"policies enforce scope? "
"This configuration value should "
"be same as magnum.conf: "
"[oslo_policy].enforce_scope "
"option.")
service_option = cfg.BoolOpt(
"magnum", default=True,
help="Whether or not magnum is expected to be available")
magnum_group = cfg.OptGroup(name="magnum", title="Magnum Options")
MagnumGroup = [
cfg.StrOpt("catalog_type",
default="container-infra",
help="Catalog type of the coe service."),
cfg.StrOpt('endpoint_type',
default='publicURL',
choices=['public', 'admin', 'internal',
'publicURL', 'adminURL', 'internalURL'],
help="The endpoint type to use for the coe service."),
cfg.StrOpt("docker_storage_driver",
help="Docker storage driver. Supported: devicemapper, overlay"),
cfg.StrOpt("image_id",
default="fedora-coreos-latest",
help="Image id to be used for ClusterTemplate."),
cfg.StrOpt("nic_id",
default="public",
help="NIC id."),
cfg.StrOpt("keypair_name",
default="magnum-test",
help="Keypair name to use to log into nova instances, the "
"keypair is created automatically if not exist."),
cfg.StrOpt("flavor_id",
default="ds2G",
help="Flavor id to use for ClusterTemplate."),
cfg.StrOpt("magnum_url",
help="Bypass URL for Magnum to skip service catalog lookup"),
cfg.StrOpt("master_flavor_id",
default="ds2G",
help="Master flavor id to use for ClusterTemplate."),
cfg.StrOpt("csr_location",
default="/opt/stack/new/magnum/default.csr",
deprecated_for_removal=True,
help="CSR location for certificates. This option is no "
"longer used for anything."),
cfg.StrOpt("dns_nameserver",
default="8.8.8.8",
help="DNS nameserver to use for ClusterTemplate."),
cfg.BoolOpt("copy_logs",
default=True,
help="Specify whether to copy nova server logs on failure."),
cfg.BoolOpt("copy_logs_success",
default=True,
help="Specify whether to copy nova server logs on success."),
cfg.StrOpt("coe",
default="kubernetes",
help="Container Orchestration Engine"),
cfg.StrOpt("network_driver",
help="Network Driver"),
cfg.StrOpt("cluster_template_id",
help="UUID of cluster template used for the test."),
cfg.IntOpt("cluster_creation_timeout",
default=30,
help="Timeout(in minutes) to wait for the cluster creation "
"finished."),
cfg.StrOpt("labels",
default={},
help="A dict of labels to be defined in cluster template"),
]