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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
|
{
"command_options": "-f value",
"tests_group": {
"main": [
{
"auth_name": "admin",
"description": "Change user to admin (just in case...)"
},
{
"name": "list tenant",
"command": "tenant list",
"no_result": "demo",
"description": "List all tenants (must be empty)"
},
{
"name": "add tenant demo",
"command": "tenant add demo",
"result": "^$",
"description": "Add a new tenant",
"command_options": ""
},
{
"name": "check tenant demo",
"command": "tenant list",
"result": "(?P<uuid>\\w+)\\s+demo",
"description": "Check that tenant demo has been correctly added"
},
{
"name": "create_intraextension_admin",
"command": "intraextension add --policy_model policy_rbac_admin admin_test",
"result": "IntraExtension created: (?P<uuid_admin>\\w+)",
"description": "Create an admin intra extension",
"command_options": ""
},
{
"name": "list_intraextension_admin",
"command": "intraextension list",
"result": "$uuid_admin",
"description": "Check the existence of that admin intra extension"
},
{
"name": "create_intraextension_authz",
"command": "intraextension add --policy_model policy_authz authz_test",
"result": "IntraExtension created: (?P<uuid_authz>\\w+)",
"description": "Create an authz intra extension",
"command_options": ""
},
{
"name": "list_intraextension_authz",
"command": "intraextension list",
"result": "$uuid_authz",
"description": "Check the existence of that authz intra extension"
},
{
"name": "set_tenant_authz",
"command": "tenant set --authz $uuid_authz $uuid",
"result": "",
"description": "Connect the authz intra extension to the tenant demo",
"command_options": ""
},
{
"name": "check authz ie for tenant demo",
"command": "tenant list",
"result": "demo $uuid_authz",
"description": "Check that authz ie has been correctly added for tenant demo ",
"command_options": "-c name -c intra_authz_extension_id -f value"
},
{
"name": "select_authz_ie",
"command": "intraextension select $uuid_authz",
"result": "Select $uuid_authz IntraExtension.",
"description": "Select the authz IntraExtension",
"command_options": ""
},
{
"name": "check_select_authz_ie",
"command": "intraextension show selected",
"result": "$uuid_authz",
"description": "Check the selected authz IntraExtension",
"command_options": "-c id -f value"
},
{
"name": "set_tenant_admin",
"command": "tenant set --admin $uuid_admin $uuid",
"result": "",
"description": "Connect the admin intra extension to the tenant demo",
"command_options": ""
},
{
"name": "check admin ie for tenant demo",
"command": "tenant list",
"result": "demo $uuid_admin",
"description": "Check that admin ie has been correctly added for tenant demo ",
"command_options": "-c name -c intra_admin_extension_id -f value"
},
{
"name": "get aggregation algorithm",
"command": "aggregation algorithm list",
"result": "(?P<uuid_aggregation>\\w+)\\s+one_true",
"description": "Get aggregation algorithm.",
"command_options": "-c id -c name -f value"
},
{
"name": "set aggregation algorithm",
"command": "aggregation algorithm set $uuid_aggregation",
"result": "",
"description": "Set aggregation algorithm to one_true.",
"command_options": ""
},
{
"name": "get aggregation algorithm",
"command": "aggregation algorithm show",
"result": "$uuid_aggregation\\s+one_true",
"description": "Check aggregation algorithm.",
"command_options": "-c id -c name -f value"
},
{
"name": "nova image-list",
"external_command": "nova image-list",
"result": "(?P<uuid_image>[\\w-]+)\\s+\\| cirros-0.",
"description": "Get an Image ID"
},
{
"name": "neutron net-list",
"external_command": "neutron net-list",
"result": "(?P<uuid_net>[\\w-]+)\\s+\\| public",
"description": "Get an Net ID"
},
{
"name": "nova boot new server",
"external_command": "nova boot --flavor m1.tiny --image $uuid_image --nic net-id=$uuid_net test_moonclient",
"result": "(?P<uuid_image>[\\w-]+)\\s+\\| cirros-0.",
"description": "Get an Image ID"
},
{
"name": "sleep",
"external_command": "sleep 10",
"result": "",
"description": "time for server to really boot"
},
{
"name": "check nova command",
"external_command": "nova list",
"result": "\\| (?P<uuid_server>[\\w\\-]+)\\s+\\| (?P<name_server>\\w+)\\s+\\| ACTIVE\\s+\\| [\\w\\-]+\\s+\\| Running",
"description": "Check that nova is running and get the ID of one running server"
},
{
"name": "delete_admin_intra_extension",
"command": "intraextension delete $uuid_admin",
"result": "",
"description": "Delete the admin intra extension",
"command_options": ""
},
{
"name": "delete_authz_intra_extension",
"command": "intraextension delete $uuid_authz",
"result": "",
"description": "Delete the authz intra extension",
"command_options": ""
},
{
"name": "delete_tenant",
"command": "tenant delete $uuid",
"result": "",
"description": "Delete the tenant demo",
"command_options": ""
}
]
}
}
|