-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtestOpenstack.bash
More file actions
executable file
·82 lines (67 loc) · 1.7 KB
/
Copy pathtestOpenstack.bash
File metadata and controls
executable file
·82 lines (67 loc) · 1.7 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/bin/bash
echo="echo [TESTOPENSTACK]"
U="${OS_REGION_NAME}_${OS_PROJECT_NAME}"
while [[ ! -z $1 ]]; do
if [[ $1 == 'create' ]]; then
create='x'
fi
if [[ $1 == 'delete' ]]; then
delete='x'
fi
shift
done
set -e
if [[ ! -z $create ]]; then
if [[ ! -e .openstackTest.${U}.misc ]]; then
$echo "Misc create"
testing/misc.bash create
touch .openstackTest.${U}.misc
fi
if [[ ! -e .openstackTest.${U}.glance ]]; then
$echo "Glance create"
testing/glance.bash create
touch .openstackTest.${U}.glance
fi
if [[ ! -e .openstackTest.${U}.neutron ]]; then
$echo "Neutron create"
testing/neutron.bash create
touch .openstackTest.${U}.neutron
fi
if [[ ! -e .openstackTest.${U}.nova ]]; then
$echo "Nova create"
testing/nova.bash create
touch .openstackTest.${U}.nova
fi
if [[ ! -e .openstackTest.${U}.cinder ]]; then
$echo "Cinder create"
testing/cinder.bash create
touch .openstackTest.${U}.cinder
fi
fi
if [[ ! -z $delete ]]; then
if [[ -e .openstackTest.${U}.cinder ]]; then
$echo "Cinder delete"
testing/cinder.bash delete
rm .openstackTest.${U}.cinder
fi
if [[ -e .openstackTest.${U}.nova ]]; then
$echo "Nova delete"
testing/nova.bash delete
rm .openstackTest.${U}.nova
fi
if [[ -e .openstackTest.${U}.neutron ]]; then
$echo "Neutron delete"
testing/neutron.bash delete
rm .openstackTest.${U}.neutron
fi
if [[ -e .openstackTest.${U}.glance ]]; then
$echo "Glance delete"
testing/glance.bash delete
rm .openstackTest.${U}.glance
fi
if [[ -e .openstackTest.${U}.misc ]]; then
$echo "Misc delete"
testing/misc.bash delete
rm .openstackTest.${U}.misc
fi
fi