Browse code

Stop using deprecated tempest options

This commit updates lib/tempest to stop using deprecated config
options when tempest is configured.

Change-Id: I65b56ff681d6c27094380693c953fbc3664eceb0

Matthew Treinish authored on 2015/12/11 09:36:50
Showing 1 changed files
... ...
@@ -281,18 +281,12 @@ function configure_tempest {
281 281
     # Identity
282 282
     iniset $TEMPEST_CONFIG identity uri "$KEYSTONE_SERVICE_PROTOCOL://$KEYSTONE_SERVICE_HOST:5000/v2.0/"
283 283
     iniset $TEMPEST_CONFIG identity uri_v3 "$KEYSTONE_SERVICE_URI_V3"
284
-    iniset $TEMPEST_CONFIG identity username $TEMPEST_USERNAME
285
-    iniset $TEMPEST_CONFIG identity password "$password"
286
-    iniset $TEMPEST_CONFIG identity tenant_name $TEMPEST_TENANT_NAME
287
-    iniset $TEMPEST_CONFIG identity alt_username $ALT_USERNAME
288
-    iniset $TEMPEST_CONFIG identity alt_password "$password"
289
-    iniset $TEMPEST_CONFIG identity alt_tenant_name $ALT_TENANT_NAME
290 284
     if [[ "$TEMPEST_HAS_ADMIN" == "True" ]]; then
291
-        iniset $TEMPEST_CONFIG identity admin_username $ADMIN_USERNAME
292
-        iniset $TEMPEST_CONFIG identity admin_password "$password"
293
-        iniset $TEMPEST_CONFIG identity admin_tenant_name $ADMIN_TENANT_NAME
294
-        iniset $TEMPEST_CONFIG identity admin_tenant_id $ADMIN_TENANT_ID
295
-        iniset $TEMPEST_CONFIG identity admin_domain_name $ADMIN_DOMAIN_NAME
285
+        iniset $TEMPEST_CONFIG auth admin_username $ADMIN_USERNAME
286
+        iniset $TEMPEST_CONFIG auth admin_password "$password"
287
+        iniset $TEMPEST_CONFIG auth admin_tenant_name $ADMIN_TENANT_NAME
288
+        iniset $TEMPEST_CONFIG auth admin_tenant_id $ADMIN_TENANT_ID
289
+        iniset $TEMPEST_CONFIG auth admin_domain_name $ADMIN_DOMAIN_NAME
296 290
     fi
297 291
     if [ "$ENABLE_IDENTITY_V2" == "False" ]; then
298 292
         # Only Identity v3 is available; then skip Identity API v2 tests
... ...
@@ -319,11 +313,7 @@ function configure_tempest {
319 319
 
320 320
     # Compute
321 321
     iniset $TEMPEST_CONFIG compute ssh_user ${DEFAULT_INSTANCE_USER:-cirros} # DEPRECATED
322
-    iniset $TEMPEST_CONFIG compute network_for_ssh $PRIVATE_NETWORK_NAME
323
-    iniset $TEMPEST_CONFIG compute ip_version_for_ssh 4
324
-    iniset $TEMPEST_CONFIG compute ssh_timeout $BUILD_TIMEOUT
325 322
     iniset $TEMPEST_CONFIG compute image_ref $image_uuid
326
-    iniset $TEMPEST_CONFIG compute image_ssh_user ${DEFAULT_INSTANCE_USER:-cirros}
327 323
     iniset $TEMPEST_CONFIG compute image_ref_alt $image_uuid_alt
328 324
     iniset $TEMPEST_CONFIG compute image_alt_ssh_user ${ALT_INSTANCE_USER:-cirros}
329 325
     iniset $TEMPEST_CONFIG compute flavor_ref $flavor_ref
... ...
@@ -480,6 +470,10 @@ function configure_tempest {
480 480
 
481 481
     # Validation
482 482
     iniset $TEMPEST_CONFIG validation run_validation ${TEMPEST_RUN_VALIDATION:-False}
483
+    iniset $TEMPEST_CONFIG validation ip_version_for_ssh 4
484
+    iniset $TEMPEST_CONFIG validation ssh_timeout $BUILD_TIMEOUT
485
+    iniset $TEMPEST_CONFIG validation image_ssh_user ${DEFAULT_INSTANCE_USER:-cirros}
486
+    iniset $TEMPEST_CONFIG validation network_for_ssh $PRIVATE_NETWORK_NAME
483 487
 
484 488
     # Volume
485 489
     # TODO(dkranz): Remove the bootable flag when Juno is end of life.
... ...
@@ -525,7 +519,6 @@ function configure_tempest {
525 525
 
526 526
     # Dashboard
527 527
     iniset $TEMPEST_CONFIG dashboard dashboard_url "http://$SERVICE_HOST/"
528
-    iniset $TEMPEST_CONFIG dashboard login_url "http://$SERVICE_HOST/auth/login/"
529 528
 
530 529
     # CLI
531 530
     iniset $TEMPEST_CONFIG cli cli_dir $NOVA_BIN_DIR
... ...
@@ -592,13 +585,13 @@ function configure_tempest {
592 592
         else
593 593
             tempest-account-generator -c $TEMPEST_CONFIG --os-username $ADMIN_USERNAME --os-password $ADMIN_PASSWORD --os-tenant-name $ADMIN_TENANT_NAME -r $TEMPEST_CONCURRENCY etc/accounts.yaml
594 594
         fi
595
-        iniset $TEMPEST_CONFIG auth allow_tenant_isolation False
595
+        iniset $TEMPEST_CONFIG auth use_dynamic_credentials False
596 596
         iniset $TEMPEST_CONFIG auth test_accounts_file "etc/accounts.yaml"
597 597
     elif [[ $TEMPEST_HAS_ADMIN == "False" ]]; then
598
-        iniset $TEMPEST_CONFIG auth allow_tenant_isolation ${TEMPEST_ALLOW_TENANT_ISOLATION:-False}
598
+        iniset $TEMPEST_CONFIG auth use_dynamic_credentials ${TEMPEST_ALLOW_TENANT_ISOLATION:-False}
599 599
 
600 600
     else
601
-        iniset $TEMPEST_CONFIG auth allow_tenant_isolation ${TEMPEST_ALLOW_TENANT_ISOLATION:-True}
601
+        iniset $TEMPEST_CONFIG auth use_dynamic_credentials ${TEMPEST_ALLOW_TENANT_ISOLATION:-True}
602 602
     fi
603 603
 
604 604
     # Restore IFS