Browse code

Fix api extension settings in tempest for Mitaka

On stable branches, we are supposed to hard code the extension list of
what API extensions are available when we branch the project so that
test cases against new features will be skipped. However, we didn't do
this on Mitaka branch for neutron, cinder and swift. So copy from
another patch[1] and added the following API extensions (not in liberty):
network
- address-scope
- allowed-address-pairs
- auto-allocated-topology
- availability_zone
- binding
- default-subnetpools
- network-ip-availability
- network_availability_zone
- router_availability_zone
- standard-attr-description
- tag
- timestamp_core

For nova API, we are using [2] "stable API" and API extensions are
removed. So we can use "all" for "compute_api_extensions".

[1] https://review.openstack.org/#/c/380066/
[2] http://docs.openstack.org/developer/nova/stable_api.html#stable-api

Change-Id: I2112397184929d163001b72ee588c2cd1eb776e1

Bruce Tan authored on 2016/10/15 12:56:00
Showing 1 changed files
... ...
@@ -405,7 +405,19 @@ function configure_tempest {
405 405
     iniset $TEMPEST_CONFIG network-feature-enabled ipv6 "$IPV6_ENABLED"
406 406
     iniset $TEMPEST_CONFIG network-feature-enabled ipv6_subnet_attributes "$IPV6_SUBNET_ATTRIBUTES_ENABLED"
407 407
 
408
-    local network_api_extensions=${NETWORK_API_EXTENSIONS:-"all"}
408
+    DEFAULT_NET_EXT="address-scope,agent,allowed-address-pairs,binding"
409
+    DEFAULT_NET_EXT+=",allowed-address-pairs,auto-allocated-topology"
410
+    DEFAULT_NET_EXT+=",availability_zone,binding,default-subnetpool"
411
+    DEFAULT_NET_EXT+=",dhcp_agent_scheduler,dns-integration"
412
+    DEFAULT_NET_EXT+=",dvr,ext-gw-mode,external-net"
413
+    DEFAULT_NET_EXT+=",extra_dhcp_opt,extraroute,flavors,fwaas"
414
+    DEFAULT_NET_EXT+=",fwaasrouterinsertion,l3-ha,l3_agent_scheduler,lbaas"
415
+    DEFAULT_NET_EXT+=",lbaas_agent_scheduler,metering,multi-provider,net-mtu"
416
+    DEFAULT_NET_EXT+="network-ip-availability,network_availability_zone,port-security"
417
+    DEFAULT_NET_EXT+=",provider,quotas,rbac-policies,router,router_availability_zone"
418
+    DEFAULT_NET_EXT+=",security-group,service-type,standard-attr-description"
419
+    DEFAULT_NET_EXT+=",subnet_allocation,tag,timestamp_core,vpnaas"
420
+    local network_api_extensions="${NETWORK_API_EXTENSIONS:-$DEFAULT_NET_EXT}"
409 421
     if [[ ! -z "$DISABLE_NETWORK_API_EXTENSIONS" ]]; then
410 422
         # Enabled extensions are either the ones explicitly specified or those available on the API endpoint
411 423
         network_api_extensions=${NETWORK_API_EXTENSIONS:-$(iniget $tmp_cfg_file network-feature-enabled api_extensions | tr -d " ")}
... ...
@@ -447,7 +459,11 @@ function configure_tempest {
447 447
     iniset $TEMPEST_CONFIG telemetry-feature-enabled events "True"
448 448
 
449 449
     # Object Store
450
-    local object_storage_api_extensions=${OBJECT_STORAGE_API_EXTENSIONS:-"all"}
450
+    DEFAULT_SWIFT_OPT="account_quotas,bulk,bulk_delete,bulk_upload,container_quotas"
451
+    DEFAULT_SWIFT_OPT+=",container_sync,crossdomain,formpost,ratelimit,slo"
452
+    DEFAULT_SWIFT_OPT+=",staticweb,tempauth,tempurl"
453
+
454
+    local object_storage_api_extensions="${OBJECT_STORAGE_API_EXTENSIONS:-$DEFAULT_SWIFT_OPT}"
451 455
     if [[ ! -z "$DISABLE_OBJECT_STORAGE_API_EXTENSIONS" ]]; then
452 456
         # Enabled extensions are either the ones explicitly specified or those available on the API endpoint
453 457
         object_storage_api_extensions=${OBJECT_STORAGE_API_EXTENSIONS:-$(iniget $tmp_cfg_file object-storage-feature-enabled discoverable_apis | tr -d " ")}
... ...
@@ -469,7 +485,18 @@ function configure_tempest {
469 469
     # TODO(ynesenenko): Remove the volume_services flag when Liberty and Kilo will correct work with host info.
470 470
     iniset $TEMPEST_CONFIG volume-feature-enabled volume_services True
471 471
 
472
-    local volume_api_extensions=${VOLUME_API_EXTENSIONS:-"all"}
472
+    DEFAULT_VOL_EXT="OS-SCH-HNT,backups,capabilities,cgsnapshots,consistencygroups"
473
+    DEFAULT_VOL_EXT+=",encryption,os-admin-actions,os-availability-zone"
474
+    DEFAULT_VOL_EXT+=",os-extended-services,os-extended-snapshot-attributes"
475
+    DEFAULT_VOL_EXT+=",os-hosts,os-image-create,os-quota-class-sets,os-quota-sets"
476
+    DEFAULT_VOL_EXT+=",os-services,os-snapshot-actions,os-snapshot-manage,os-snapshot-unmanage"
477
+    DEFAULT_VOL_EXT+=",os-types-extra-specs"
478
+    DEFAULT_VOL_EXT+=",os-types-manage,os-used-limits,os-vol-host-attr,os-vol-image-meta"
479
+    DEFAULT_VOL_EXT+=",os-vol-mig-status-attr,os-vol-tenant-attr,os-volume-actions"
480
+    DEFAULT_VOL_EXT+=",os-volume-encryption-metadata,os-volume-manage"
481
+    DEFAULT_VOL_EXT+=",os-volume-replication,os-volume-transfer,os-volume-type-access"
482
+    DEFAULT_VOL_EXT+=",os-volume-unmanage,qos-specs,scheduler-stats"
483
+    local volume_api_extensions="${VOLUME_API_EXTENSIONS:-$DEFAULT_VOL_EXT}"
473 484
     if [[ ! -z "$DISABLE_VOLUME_API_EXTENSIONS" ]]; then
474 485
         # Enabled extensions are either the ones explicitly specified or those available on the API endpoint
475 486
         volume_api_extensions=${VOLUME_API_EXTENSIONS:-$(iniget $tmp_cfg_file volume-feature-enabled api_extensions | tr -d " ")}