| ... | ... |
@@ -357,9 +357,8 @@ function create_keystone_accounts {
|
| 357 | 357 |
# The Member role is used by Horizon and Swift so we need to keep it: |
| 358 | 358 |
local member_role=$(get_or_create_role "Member") |
| 359 | 359 |
|
| 360 |
- # ANOTHER_ROLE demonstrates that an arbitrary role may be created and used |
|
| 360 |
+ # another_role demonstrates that an arbitrary role may be created and used |
|
| 361 | 361 |
# TODO(sleepsonthefloor): show how this can be used for rbac in the future! |
| 362 |
- |
|
| 363 | 362 |
local another_role=$(get_or_create_role "anotherrole") |
| 364 | 363 |
|
| 365 | 364 |
# invisible tenant - admin can't see this one |
| ... | ... |
@@ -556,6 +556,7 @@ function create_swift_accounts {
|
| 556 | 556 |
|
| 557 | 557 |
local service_tenant=$(openstack project list | awk "/ $SERVICE_TENANT_NAME / { print \$2 }")
|
| 558 | 558 |
local admin_role=$(openstack role list | awk "/ admin / { print \$2 }")
|
| 559 |
+ local another_role=$(openstack role list | awk "/ anotherrole / { print \$2 }")
|
|
| 559 | 560 |
|
| 560 | 561 |
local swift_user=$(get_or_create_user "swift" \ |
| 561 | 562 |
"$SERVICE_PASSWORD" $service_tenant) |
| ... | ... |
@@ -582,7 +583,7 @@ function create_swift_accounts {
|
| 582 | 582 |
local swift_user_test3=$(get_or_create_user swiftusertest3 $swiftusertest3_password \ |
| 583 | 583 |
"$swift_tenant_test1" "test3@example.com") |
| 584 | 584 |
die_if_not_set $LINENO swift_user_test3 "Failure creating swift_user_test3" |
| 585 |
- get_or_add_user_role $ANOTHER_ROLE $swift_user_test3 $swift_tenant_test1 |
|
| 585 |
+ get_or_add_user_role $another_role $swift_user_test3 $swift_tenant_test1 |
|
| 586 | 586 |
|
| 587 | 587 |
local swift_tenant_test2=$(get_or_create_project swifttenanttest2) |
| 588 | 588 |
die_if_not_set $LINENO swift_tenant_test2 "Failure creating swift_tenant_test2" |