45 lines
1.8 KiB
Python
45 lines
1.8 KiB
Python
# 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.
|
|
|
|
import itertools
|
|
|
|
from rally.benchmark.context import users
|
|
from rally.benchmark.scenarios.cinder import utils as cinder_utils
|
|
from rally.benchmark.scenarios.glance import utils as glance_utils
|
|
from rally.benchmark.scenarios.heat import utils as heat_utils
|
|
from rally.benchmark.scenarios.nova import utils as nova_utils
|
|
from rally.benchmark.scenarios.sahara import utils as sahara_utils
|
|
from rally.common import log
|
|
from rally import exceptions
|
|
from rally import osclients
|
|
from rally.verification.tempest import config as tempest_conf
|
|
|
|
|
|
def list_opts():
|
|
return [
|
|
("DEFAULT",
|
|
itertools.chain(log.DEBUG_OPTS,
|
|
exceptions.EXC_LOG_OPTS,
|
|
osclients.OSCLIENTS_OPTS)),
|
|
("benchmark",
|
|
itertools.chain(cinder_utils.CINDER_BENCHMARK_OPTS,
|
|
glance_utils.GLANCE_BENCHMARK_OPTS,
|
|
heat_utils.HEAT_BENCHMARK_OPTS,
|
|
nova_utils.NOVA_BENCHMARK_OPTS,
|
|
sahara_utils.SAHARA_TIMEOUT_OPTS)),
|
|
("image",
|
|
itertools.chain(tempest_conf.IMAGE_OPTS)),
|
|
("users_context", itertools.chain(users.USER_CONTEXT_OPTS))
|
|
]
|