We don't run q-metering in default single host configuration, so we
should make it so that tempest won't attempt to test for it either.
Change-Id: I928be70e3b10fc3753fd1081631e54fa839b671d
| ... | ... |
@@ -569,6 +569,12 @@ function configure_tempest {
|
| 569 | 569 |
fi |
| 570 | 570 |
iniset $TEMPEST_CONFIG compute-feature-enabled api_extensions $compute_api_extensions |
| 571 | 571 |
# Neutron API Extensions |
| 572 |
+ |
|
| 573 |
+ # disable metering if we didn't enable the service |
|
| 574 |
+ if ! is_service_enabled q-metering; then |
|
| 575 |
+ DISABLE_NETWORK_API_EXTENSIONS+=", metering" |
|
| 576 |
+ fi |
|
| 577 |
+ |
|
| 572 | 578 |
local network_api_extensions=${NETWORK_API_EXTENSIONS:-"all"}
|
| 573 | 579 |
if [[ ! -z "$DISABLE_NETWORK_API_EXTENSIONS" ]]; then |
| 574 | 580 |
# Enabled extensions are either the ones explicitly specified or those available on the API endpoint |