stewie925 dd537c8e76 Token authentication for tempest tests
Add token authentication logic for ranger tempest tests

Change-Id: I101531cf455294dd3aa78910650b6e217e701d81
2019-03-24 21:36:53 -07:00

73 lines
2.4 KiB
Python
Executable File

# Copyright 2015
# 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 oslo_config import cfg
service_available_group = cfg.OptGroup(
name="service_available",
title="Available OpenStack Services"
)
ServiceAvailableGroup = [
cfg.BoolOpt("ranger", default=False,
help="Whether or not ranger is expected to be available")
]
orm_group = cfg.OptGroup(
name="ranger",
title="Ranger Service option"
)
OrmGroup = [
cfg.StrOpt("uri",
default="orm",
help="Uri of the orm service."),
cfg.StrOpt("cms_port",
default='7080',
help="cms port of the orm url."),
cfg.StrOpt("fms_port",
default='8082',
help="fms port of the orm url."),
cfg.StrOpt("region_port",
default='8080',
help="region port of the orm url."),
cfg.BoolOpt("alt_region_available",
default=None,
help="alt_region_available of the orm alternate region."),
cfg.StrOpt("ims_port",
default='8084',
help="ims port of the orm url."),
cfg.StrOpt("image_url",
help="swift container url where image is located"),
cfg.StrOpt("RANGER_CMS_BASE_URL",
help="Ranger Project Service URL"),
cfg.StrOpt("RANGER_FMS_BASE_URL",
help="Ranger Flavor Service URL"),
cfg.StrOpt("RANGER_IMS_BASE_URL",
help="Ranger Image Service URL"),
cfg.StrOpt("RANGER_RMS_BASE_URL",
help="Ranger Region Service URL"),
cfg.BoolOpt('verify',
default=False,
help='Flag for SSL verfiy Enabled/Disabled.'),
cfg.BoolOpt('auth_enabled',
default=False,
help='Token Authentication enabled/disabled'),
cfg.ListOpt("flavor_series",
default=['xx'],
help="Supported flavor series")
]