summaryrefslogtreecommitdiffstats
path: root/tests/run.sh
diff options
context:
space:
mode:
authordongwenjuan <dong.wenjuan@zte.com.cn>2016-08-18 00:51:23 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-08-18 00:51:23 +0000
commitc0a49e9c8f74832ee9f67630275e75e42296fe00 (patch)
tree8256968a50fab4e63de738feafb9c312306cdb5e /tests/run.sh
parenta6795a5dec13bccd3113975a206a5e1c44fc3efc (diff)
parentb7d86efb0e13ff58db2b00d854f3d1913ae08bb5 (diff)
Merge "add project when create user"
Diffstat (limited to 'tests/run.sh')
-rwxr-xr-xtests/run.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/run.sh b/tests/run.sh
index 731d2ac6..01adf689 100755
--- a/tests/run.sh
+++ b/tests/run.sh
@@ -139,12 +139,13 @@ register_image() {
}
create_test_user() {
- openstack user list | grep -q " $DOCTOR_USER " || {
- openstack user create "$DOCTOR_USER" --password "$DOCTOR_PW"
- }
openstack project list | grep -q " $DOCTOR_PROJECT " || {
openstack project create "$DOCTOR_PROJECT"
}
+ openstack user list | grep -q " $DOCTOR_USER " || {
+ openstack user create "$DOCTOR_USER" --password "$DOCTOR_PW" \
+ --project "$DOCTOR_PROJECT"
+ }
openstack user role list "$DOCTOR_USER" --project "$DOCTOR_PROJECT" \
| grep -q " $DOCTOR_ROLE " || {
openstack role add "$DOCTOR_ROLE" --user "$DOCTOR_USER" \