Configure enabled and disabled extensions in tempest
This patch adds support for configuring the api_extensions option of the various feature-$service-(enabled|disabled) sections in tempest's configuration file. Please note that enabled extensions for the object storage service are specified in tempest using the discoverable_apis configuration options. Partially-implements: Blueprint branchless-tempest-extensions Change-Id: Ib64c0a474b153f42f3a4a427d86275c85f107997
This commit is contained in:
parent
58f8f429c8
commit
3046bc68c0
15
lib/tempest
15
lib/tempest
@ -292,6 +292,10 @@ function configure_tempest {
|
|||||||
iniset $TEMPEST_CONFIG compute-feature-enabled live_migration ${LIVE_MIGRATION_AVAILABLE:-False}
|
iniset $TEMPEST_CONFIG compute-feature-enabled live_migration ${LIVE_MIGRATION_AVAILABLE:-False}
|
||||||
iniset $TEMPEST_CONFIG compute-feature-enabled change_password False
|
iniset $TEMPEST_CONFIG compute-feature-enabled change_password False
|
||||||
iniset $TEMPEST_CONFIG compute-feature-enabled block_migration_for_live_migration ${USE_BLOCK_MIGRATION_FOR_LIVE_MIGRATION:-False}
|
iniset $TEMPEST_CONFIG compute-feature-enabled block_migration_for_live_migration ${USE_BLOCK_MIGRATION_FOR_LIVE_MIGRATION:-False}
|
||||||
|
iniset $TEMPEST_CONFIG compute-feature-enabled api_extensions ${COMPUTE_API_EXTENSIONS:-"all"}
|
||||||
|
iniset $TEMPEST_CONFIG compute-feature-disabled api_extensions ${DISABLE_COMPUTE_API_EXTENSIONS}
|
||||||
|
iniset $TEMPEST_CONFIG compute-feature-enabled api_v3_extensions ${COMPUTE_API_V3_EXTENSIONS:-"all"}
|
||||||
|
iniset $TEMPEST_CONFIG compute-feature-disabled api_v3_extensions ${DISABLE_COMPUTE_API_V3_EXTENSIONS}
|
||||||
|
|
||||||
# Compute admin
|
# Compute admin
|
||||||
iniset $TEMPEST_CONFIG "compute-admin" username $ADMIN_USERNAME
|
iniset $TEMPEST_CONFIG "compute-admin" username $ADMIN_USERNAME
|
||||||
@ -306,6 +310,8 @@ function configure_tempest {
|
|||||||
iniset $TEMPEST_CONFIG network default_network "$FIXED_RANGE"
|
iniset $TEMPEST_CONFIG network default_network "$FIXED_RANGE"
|
||||||
iniset $TEMPEST_CONFIG network-feature-enabled ipv6 "$IPV6_ENABLED"
|
iniset $TEMPEST_CONFIG network-feature-enabled ipv6 "$IPV6_ENABLED"
|
||||||
iniset $TEMPEST_CONFIG network-feature-enabled ipv6_subnet_attributes "$IPV6_SUBNET_ATTRIBUTES_ENABLED"
|
iniset $TEMPEST_CONFIG network-feature-enabled ipv6_subnet_attributes "$IPV6_SUBNET_ATTRIBUTES_ENABLED"
|
||||||
|
iniset $TEMPEST_CONFIG network-feature-enabled api_extensions ${NETWORK_API_EXTENSIONS:-"all"}
|
||||||
|
iniset $TEMPEST_CONFIG network-feature-disabled api_extensions ${DISABLE_NETWORK_API_EXTENSIONS}
|
||||||
|
|
||||||
# boto
|
# boto
|
||||||
iniset $TEMPEST_CONFIG boto ec2_url "http://$SERVICE_HOST:8773/services/Cloud"
|
iniset $TEMPEST_CONFIG boto ec2_url "http://$SERVICE_HOST:8773/services/Cloud"
|
||||||
@ -346,7 +352,13 @@ function configure_tempest {
|
|||||||
# Once Tempest retires support for icehouse this flag can be removed.
|
# Once Tempest retires support for icehouse this flag can be removed.
|
||||||
iniset $TEMPEST_CONFIG telemetry too_slow_to_test "False"
|
iniset $TEMPEST_CONFIG telemetry too_slow_to_test "False"
|
||||||
|
|
||||||
|
# Object storage
|
||||||
|
iniset $TEMPEST_CONFIG object-storage-feature-enabled discoverable_apis ${OBJECT_STORAGE_API_EXTENSIONS:-"all"}
|
||||||
|
iniset $TEMPEST_CONFIG object-storage-feature-disabled discoverable_apis ${OBJECT_STORAGE_DISABLE_API_EXTENSIONS}
|
||||||
|
|
||||||
# Volume
|
# Volume
|
||||||
|
iniset $TEMPEST_CONFIG volume-feature-enabled api_extensions ${VOLUME_API_EXTENSIONS:-"all"}
|
||||||
|
iniset $TEMPEST_CONFIG volume-feature-disabled api_extensions ${DISABLE_VOLUME_API_EXTENSIONS}
|
||||||
if ! is_service_enabled c-bak; then
|
if ! is_service_enabled c-bak; then
|
||||||
iniset $TEMPEST_CONFIG volume-feature-enabled backup False
|
iniset $TEMPEST_CONFIG volume-feature-enabled backup False
|
||||||
fi
|
fi
|
||||||
@ -369,9 +381,6 @@ function configure_tempest {
|
|||||||
# cli
|
# cli
|
||||||
iniset $TEMPEST_CONFIG cli cli_dir $NOVA_BIN_DIR
|
iniset $TEMPEST_CONFIG cli cli_dir $NOVA_BIN_DIR
|
||||||
|
|
||||||
# Networking
|
|
||||||
iniset $TEMPEST_CONFIG network-feature-enabled api_extensions "${NETWORK_API_EXTENSIONS:-all}"
|
|
||||||
|
|
||||||
# Baremetal
|
# Baremetal
|
||||||
if [ "$VIRT_DRIVER" = "ironic" ] ; then
|
if [ "$VIRT_DRIVER" = "ironic" ] ; then
|
||||||
iniset $TEMPEST_CONFIG baremetal driver_enabled True
|
iniset $TEMPEST_CONFIG baremetal driver_enabled True
|
||||||
|
Loading…
Reference in New Issue
Block a user