Browse code

Fix api extension settings in tempest for Liberty

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 liberty branch for neutron, cinder and swift. So copy from
kilo and added the following API extensions (not in kilo):
network
- dns-integration
- flavors
- port-security
- rbac-policies

volume
- capabilities
- os-snapshot-manage
- os-snapshot-unmanage

object store
- bulk

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

[1] http://docs.openstack.org/developer/nova/stable_api.html#stable-api

Change-Id: Ic4a6292390a88e732f7460cf558c479baa8771b1

Bruce Tan authored on 2016/09/30 18:39:37
Showing 1 changed files
... ...
@@ -427,7 +427,15 @@ function configure_tempest {
427 427
     iniset $TEMPEST_CONFIG network-feature-enabled ipv6 "$IPV6_ENABLED"
428 428
     iniset $TEMPEST_CONFIG network-feature-enabled ipv6_subnet_attributes "$IPV6_SUBNET_ATTRIBUTES_ENABLED"
429 429
 
430
-    local network_api_extensions=${NETWORK_API_EXTENSIONS:-"all"}
430
+    DEFAULT_NET_EXT="agent,allowed-address-pairs,binding"
431
+    DEFAULT_NET_EXT+=",dhcp_agent_scheduler,dns-integration"
432
+    DEFAULT_NET_EXT+=",dvr,ext-gw-mode,external-net"
433
+    DEFAULT_NET_EXT+=",extra_dhcp_opt,extraroute,flavors,fwaas"
434
+    DEFAULT_NET_EXT+=",fwaasrouterinsertion,l3-ha,l3_agent_scheduler,lbaas"
435
+    DEFAULT_NET_EXT+=",lbaas_agent_scheduler,metering,multi-provider,net-mtu,port-security"
436
+    DEFAULT_NET_EXT+=",provider,quotas,rbac-policies,router,security-group,service-type"
437
+    DEFAULT_NET_EXT+=",subnet_allocation,vpnaas"
438
+    local network_api_extensions="${NETWORK_API_EXTENSIONS:-$DEFAULT_NET_EXT}"
431 439
     if [[ ! -z "$DISABLE_NETWORK_API_EXTENSIONS" ]]; then
432 440
         # Enabled extensions are either the ones explicitly specified or those available on the API endpoint
433 441
         network_api_extensions=${NETWORK_API_EXTENSIONS:-$(iniget $tmp_cfg_file network-feature-enabled api_extensions | tr -d " ")}
... ...
@@ -476,7 +484,11 @@ function configure_tempest {
476 476
     iniset $TEMPEST_CONFIG telemetry-feature-enabled events "True"
477 477
 
478 478
     # Object Store
479
-    local object_storage_api_extensions=${OBJECT_STORAGE_API_EXTENSIONS:-"all"}
479
+    DEFAULT_SWIFT_OPT="account_quotas,bulk,bulk_delete,bulk_upload,container_quotas"
480
+    DEFAULT_SWIFT_OPT+=",container_sync,crossdomain,formpost,ratelimit,slo"
481
+    DEFAULT_SWIFT_OPT+=",staticweb,tempauth,tempurl"
482
+
483
+    local object_storage_api_extensions="${OBJECT_STORAGE_API_EXTENSIONS:-$DEFAULT_SWIFT_OPT}"
480 484
     if [[ ! -z "$DISABLE_OBJECT_STORAGE_API_EXTENSIONS" ]]; then
481 485
         # Enabled extensions are either the ones explicitly specified or those available on the API endpoint
482 486
         object_storage_api_extensions=${OBJECT_STORAGE_API_EXTENSIONS:-$(iniget $tmp_cfg_file object-storage-feature-enabled discoverable_apis | tr -d " ")}
... ...
@@ -496,7 +508,18 @@ function configure_tempest {
496 496
     # TODO(obutenko): Remove the incremental_backup_force flag when Kilo and Juno is end of life.
497 497
     iniset $TEMPEST_CONFIG volume-feature-enabled incremental_backup_force True
498 498
 
499
-    local volume_api_extensions=${VOLUME_API_EXTENSIONS:-"all"}
499
+    DEFAULT_VOL_EXT="OS-SCH-HNT,backups,capabilities,cgsnapshots,consistencygroups"
500
+    DEFAULT_VOL_EXT+=",encryption,os-admin-actions,os-availability-zone"
501
+    DEFAULT_VOL_EXT+=",os-extended-services,os-extended-snapshot-attributes"
502
+    DEFAULT_VOL_EXT+=",os-hosts,os-image-create,os-quota-class-sets,os-quota-sets"
503
+    DEFAULT_VOL_EXT+=",os-services,os-snapshot-actions,os-snapshot-manage,os-snapshot-unmanage"
504
+    DEFAULT_VOL_EXT+=",os-types-extra-specs"
505
+    DEFAULT_VOL_EXT+=",os-types-manage,os-used-limits,os-vol-host-attr,os-vol-image-meta"
506
+    DEFAULT_VOL_EXT+=",os-vol-mig-status-attr,os-vol-tenant-attr,os-volume-actions"
507
+    DEFAULT_VOL_EXT+=",os-volume-encryption-metadata,os-volume-manage"
508
+    DEFAULT_VOL_EXT+=",os-volume-replication,os-volume-transfer,os-volume-type-access"
509
+    DEFAULT_VOL_EXT+=",os-volume-unmanage,qos-specs,scheduler-stats"
510
+    local volume_api_extensions="${VOLUME_API_EXTENSIONS:-$DEFAULT_VOL_EXT}"
500 511
     if [[ ! -z "$DISABLE_VOLUME_API_EXTENSIONS" ]]; then
501 512
         # Enabled extensions are either the ones explicitly specified or those available on the API endpoint
502 513
         volume_api_extensions=${VOLUME_API_EXTENSIONS:-$(iniget $tmp_cfg_file volume-feature-enabled api_extensions | tr -d " ")}