forked from WorksOnArm/OpenStackWorksOnArm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUserPerfTest.sh
More file actions
executable file
·40 lines (33 loc) · 776 Bytes
/
UserPerfTest.sh
File metadata and controls
executable file
·40 lines (33 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
5000bin/bash
export OS_USERNAME=admin
export OS_PASSWORD=ADMIN_PASS
export OS_PROJECT_NAME=admin
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default
export OS_AUTH_URL=http://controller:5000/v3
export OS_IDENTITY_API_VERSION=3
errors=0
out_max=5
concurrent_connections=20
for j in `seq 1 5`
do
for i in `seq 1 $concurrent_connections`
do
openstack user create --password secret user$i > /dev/null &
if [ $? -ne 0 ]; then
((errors++))
fi
done
wait
for i in `seq 1 $concurrent_connections`
do
openstack user delete user$i > /dev/null &
if [ $? -ne 0 ]; then
((errors++))
fi
done
wait
done
echo "Test name: " $0
echo "Total execs: " $((out_max*concurrent_connections))
echo "Total errors: " $errors