fog-openstack 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -1
- data/Rakefile +25 -15
- data/{lib/fog/openstack/docs → docs}/compute.md +0 -0
- data/{lib/fog/openstack/docs → docs}/getting_started.md +0 -0
- data/{lib/fog/openstack/docs → docs}/introspection.md +0 -0
- data/{lib/fog/openstack/docs → docs}/metering.md +0 -0
- data/{lib/fog/openstack/docs → docs}/network.md +0 -0
- data/{lib/fog/openstack/docs → docs}/nfv.md +0 -0
- data/{lib/fog/openstack/docs → docs}/orchestration.md +0 -0
- data/{lib/fog/openstack/docs → docs}/planning.md +0 -0
- data/{lib/fog/openstack/docs → docs}/storage.md +0 -0
- data/{lib/fog/openstack/examples → examples}/compute/basics.rb +0 -0
- data/{lib/fog/openstack/examples → examples}/compute/block_device_mapping_v2.rb +0 -0
- data/{lib/fog/openstack/examples → examples}/identity/basics.rb +0 -0
- data/{lib/fog/openstack/examples → examples}/image/upload-test-image.rb +0 -0
- data/{lib/fog/openstack/examples → examples}/introspection/basics.rb +0 -0
- data/{lib/fog/openstack/examples → examples}/network/network_add_port.rb +0 -0
- data/{lib/fog/openstack/examples → examples}/network/network_rbac.rb +0 -0
- data/{lib/fog/openstack/examples → examples}/network/network_subnets_routers.rb +0 -0
- data/{lib/fog/openstack/examples → examples}/planning/basics.rb +0 -0
- data/{lib/fog/openstack/examples → examples}/storage/set-account-quota.rb +0 -0
- data/fog-openstack.gemspec +1 -1
- data/lib/fog/openstack.rb +6 -0
- data/lib/fog/openstack/models/compute/aggregate.rb +3 -2
- data/lib/fog/openstack/models/monitoring/alarm.rb +48 -0
- data/lib/fog/openstack/models/monitoring/alarm_count.rb +17 -0
- data/lib/fog/openstack/models/monitoring/alarm_counts.rb +16 -0
- data/lib/fog/openstack/models/monitoring/alarm_definition.rb +56 -0
- data/lib/fog/openstack/models/monitoring/alarm_definitions.rb +42 -0
- data/lib/fog/openstack/models/monitoring/alarm_state.rb +32 -0
- data/lib/fog/openstack/models/monitoring/alarm_states.rb +20 -0
- data/lib/fog/openstack/models/monitoring/alarms.rb +30 -0
- data/lib/fog/openstack/models/monitoring/measurement.rb +20 -0
- data/lib/fog/openstack/models/monitoring/measurements.rb +16 -0
- data/lib/fog/openstack/models/monitoring/metric.rb +27 -0
- data/lib/fog/openstack/models/monitoring/metrics.rb +28 -0
- data/lib/fog/openstack/models/monitoring/notification_method.rb +40 -0
- data/lib/fog/openstack/models/monitoring/notification_methods.rb +38 -0
- data/lib/fog/openstack/models/monitoring/statistic.rb +20 -0
- data/lib/fog/openstack/models/monitoring/statistics.rb +16 -0
- data/lib/fog/openstack/monitoring.rb +116 -0
- data/lib/fog/openstack/requests/compute/attach_volume.rb +1 -0
- data/lib/fog/openstack/requests/compute/create_aggregate.rb +1 -1
- data/lib/fog/openstack/requests/compute/create_server.rb +2 -2
- data/lib/fog/openstack/requests/compute/detach_volume.rb +1 -0
- data/lib/fog/openstack/requests/compute/update_aggregate.rb +1 -1
- data/lib/fog/openstack/requests/monitoring/create_alarm_definition.rb +19 -0
- data/lib/fog/openstack/requests/monitoring/create_metric.rb +29 -0
- data/lib/fog/openstack/requests/monitoring/create_metric_array.rb +19 -0
- data/lib/fog/openstack/requests/monitoring/create_notification_method.rb +19 -0
- data/lib/fog/openstack/requests/monitoring/delete_alarm.rb +18 -0
- data/lib/fog/openstack/requests/monitoring/delete_alarm_definition.rb +18 -0
- data/lib/fog/openstack/requests/monitoring/delete_notification_method.rb +18 -0
- data/lib/fog/openstack/requests/monitoring/find_measurements.rb +22 -0
- data/lib/fog/openstack/requests/monitoring/get_alarm.rb +22 -0
- data/lib/fog/openstack/requests/monitoring/get_alarm_counts.rb +22 -0
- data/lib/fog/openstack/requests/monitoring/get_alarm_definition.rb +18 -0
- data/lib/fog/openstack/requests/monitoring/get_notification_method.rb +18 -0
- data/lib/fog/openstack/requests/monitoring/list_alarm_definitions.rb +22 -0
- data/lib/fog/openstack/requests/monitoring/list_alarm_state_history_for_all_alarms.rb +22 -0
- data/lib/fog/openstack/requests/monitoring/list_alarm_state_history_for_specific_alarm.rb +22 -0
- data/lib/fog/openstack/requests/monitoring/list_alarms.rb +22 -0
- data/lib/fog/openstack/requests/monitoring/list_metric_names.rb +22 -0
- data/lib/fog/openstack/requests/monitoring/list_metrics.rb +22 -0
- data/lib/fog/openstack/requests/monitoring/list_notification_methods.rb +22 -0
- data/lib/fog/openstack/requests/monitoring/list_statistics.rb +22 -0
- data/lib/fog/openstack/requests/monitoring/patch_alarm.rb +19 -0
- data/lib/fog/openstack/requests/monitoring/patch_alarm_definition.rb +19 -0
- data/lib/fog/openstack/requests/monitoring/update_alarm.rb +19 -0
- data/lib/fog/openstack/requests/monitoring/update_alarm_definition.rb +19 -0
- data/lib/fog/openstack/requests/monitoring/update_notification_method.rb +19 -0
- data/lib/fog/openstack/version.rb +1 -1
- metadata +65 -42
- data/tests/openstack/models/identity/ec2_credential_tests.rb +0 -41
- data/tests/openstack/models/identity/ec2_credentials_tests.rb +0 -58
- data/tests/openstack/models/identity/role_tests.rb +0 -31
- data/tests/openstack/models/identity/roles_tests.rb +0 -21
- data/tests/openstack/models/identity/tenant_tests.rb +0 -33
- data/tests/openstack/models/identity/tenants_tests.rb +0 -31
- data/tests/openstack/models/identity/user_tests.rb +0 -47
- data/tests/openstack/models/identity/users_tests.rb +0 -46
- data/tests/openstack/requests/baremetal/chassis_tests.rb +0 -48
- data/tests/openstack/requests/baremetal/driver_tests.rb +0 -40
- data/tests/openstack/requests/baremetal/node_tests.rb +0 -83
- data/tests/openstack/requests/baremetal/port_tests.rb +0 -56
- data/tests/openstack/requests/identity/ec2_credentials_tests.rb +0 -41
- data/tests/openstack/requests/identity/helper.rb +0 -21
- data/tests/openstack/requests/identity/role_tests.rb +0 -48
- data/tests/openstack/requests/identity/tenant_tests.rb +0 -57
- data/tests/openstack/requests/identity/user_tests.rb +0 -46
- data/tests/openstack/requests/introspection/introspection_tests.rb +0 -297
- data/tests/openstack/requests/introspection/rules_tests.rb +0 -46
@@ -1,46 +0,0 @@
|
|
1
|
-
Shindo.tests('Fog::Identity[:openstack] | user requests', ['openstack']) do
|
2
|
-
|
3
|
-
@user_format = {
|
4
|
-
'id' => String,
|
5
|
-
'name' => String,
|
6
|
-
'enabled' => Fog::Boolean,
|
7
|
-
'email' => String,
|
8
|
-
'tenantId' => Fog::Nullable::String
|
9
|
-
}
|
10
|
-
|
11
|
-
@identity = Fog::Identity[:openstack]
|
12
|
-
|
13
|
-
tests('success') do
|
14
|
-
|
15
|
-
@user_name = Fog::Mock.random_hex(64)
|
16
|
-
@user_name_update = Fog::Mock.random_hex(64)
|
17
|
-
|
18
|
-
tests("#create_user('#{@user_name}', 'mypassword', 'morph@example.com', 't3n4nt1d', true)").formats(@user_format, false) do
|
19
|
-
@user = @identity.create_user(
|
20
|
-
@user_name, "mypassword", "morph@example.com",
|
21
|
-
OpenStack::Identity.get_tenant_id
|
22
|
-
).body['user']
|
23
|
-
end
|
24
|
-
|
25
|
-
tests('#list_users').formats({'users' => [@user_format]}) do
|
26
|
-
@identity.list_users.body
|
27
|
-
end
|
28
|
-
|
29
|
-
tests('#get_user_by_id').formats(@user_format) do
|
30
|
-
@identity.get_user_by_id(@user['id']).body['user']
|
31
|
-
end
|
32
|
-
|
33
|
-
tests('#get_user_by_name').formats(@user_format) do
|
34
|
-
@identity.get_user_by_name(@user['name']).body['user']
|
35
|
-
end
|
36
|
-
|
37
|
-
tests("#update_user(#{@user['id']}, :name => 'fogupdateduser')").succeeds do
|
38
|
-
@identity.update_user(@user['id'], :name => @user_name_update, :email => 'fog@test.com')
|
39
|
-
end
|
40
|
-
|
41
|
-
tests("#delete_user(#{@user['id']})").succeeds do
|
42
|
-
@identity.delete_user(@user['id'])
|
43
|
-
end
|
44
|
-
|
45
|
-
end
|
46
|
-
end
|
@@ -1,297 +0,0 @@
|
|
1
|
-
Shindo.tests('Fog::Introspection::OpenStack | Introspection requests', ['openstack']) do
|
2
|
-
@inspector = Fog::Introspection::OpenStack.new
|
3
|
-
|
4
|
-
@node_uuid = Fog::UUID.uuid
|
5
|
-
|
6
|
-
@introspection_finished = {
|
7
|
-
"error" => "null",
|
8
|
-
"finished" => "true"
|
9
|
-
}
|
10
|
-
|
11
|
-
@introspection_data = {
|
12
|
-
"cpu_arch" => String,
|
13
|
-
"macs" => Array,
|
14
|
-
"root_disk" => {
|
15
|
-
"rotational" => Fog::Boolean,
|
16
|
-
"vendor" => String,
|
17
|
-
"name" => String,
|
18
|
-
"wwn_vendor_extension" => Fog::Nullable::String,
|
19
|
-
"wwn_with_extension" => Fog::Nullable::String,
|
20
|
-
"model" => Fog::Nullable::String,
|
21
|
-
"wwn" => Fog::Nullable::String,
|
22
|
-
"serial" => Fog::Nullable::String,
|
23
|
-
"size" => Integer,
|
24
|
-
},
|
25
|
-
"extra" => {
|
26
|
-
"network" => {
|
27
|
-
"eth0" => {
|
28
|
-
"vlan-challenged" => String,
|
29
|
-
"tx-udp_tnl-segmentation" => String,
|
30
|
-
"ipv4-network" => String,
|
31
|
-
"rx-vlan-stag-filter" => String,
|
32
|
-
"highdma" => String,
|
33
|
-
"tx-nocache-copy" => String,
|
34
|
-
"tx-gso-robust" => String,
|
35
|
-
"fcoe-mtu" => String,
|
36
|
-
"netns-local" => String,
|
37
|
-
"udp-fragmentation-offload" => String,
|
38
|
-
"serial" => String,
|
39
|
-
"latency" => Integer,
|
40
|
-
"tx-checksumming/tx-checksum-ipv6" => String,
|
41
|
-
"tx-checksumming/tx-checksum-ipv4" => String,
|
42
|
-
"ipv4-netmask" => String,
|
43
|
-
"tcp-segmentation-offload/tx-tcp-segmentation" => String,
|
44
|
-
"tx-ipip-segmentation" => String,
|
45
|
-
"rx-vlan-offload" => String,
|
46
|
-
"tx-gre-segmentation" => String,
|
47
|
-
"tx-checksumming/tx-checksum-ip-generic" => String,
|
48
|
-
"tcp-segmentation-offload/tx-tcp-ecn-segmentation" => String,
|
49
|
-
"tx-checksumming/tx-checksum-fcoe-crc" => String,
|
50
|
-
"ipv4" => String,
|
51
|
-
"businfo" => String,
|
52
|
-
"rx-vlan-stag-hw-parse" => String,
|
53
|
-
"tx-vlan-offload" => String,
|
54
|
-
"product" => String,
|
55
|
-
"vendor" => String,
|
56
|
-
"tx-checksumming/tx-checksum-sctp" => String,
|
57
|
-
"driver" => String,
|
58
|
-
"tx-sit-segmentation" => String,
|
59
|
-
"busy-poll" => String,
|
60
|
-
"tx-vlan-stag-hw-insert" => String,
|
61
|
-
"scatter-gather/tx-scatter-gather" => String,
|
62
|
-
"link" => String,
|
63
|
-
"ntuple-filters" => String,
|
64
|
-
"rx-all" => String,
|
65
|
-
"tcp-segmentation-offload" => String,
|
66
|
-
"tcp-segmentation-offload/tx-tcp6-segmentation" => String,
|
67
|
-
"rx-checksumming" => String,
|
68
|
-
"rx-fcs" => String,
|
69
|
-
"tx-lockless" => String,
|
70
|
-
"generic-segmentation-offload" => String,
|
71
|
-
"tx-fcoe-segmentation" => String,
|
72
|
-
"tx-checksumming" => String,
|
73
|
-
"ipv4-cidr" => Integer,
|
74
|
-
"large-receive-offload" => String,
|
75
|
-
"rx-vlan-filter" => String,
|
76
|
-
"receive-hashing" => String,
|
77
|
-
"scatter-gather/tx-scatter-gather-fraglist" => String,
|
78
|
-
"generic-receive-offload" => String,
|
79
|
-
"loopback" => String,
|
80
|
-
"scatter-gather" => String,
|
81
|
-
"tx-mpls-segmentation" => String
|
82
|
-
},
|
83
|
-
"eth1" => {
|
84
|
-
"vlan-challenged" => String,
|
85
|
-
"tx-udp_tnl-segmentation" => String,
|
86
|
-
"tx-vlan-stag-hw-insert" => String,
|
87
|
-
"rx-vlan-stag-filter" => String,
|
88
|
-
"highdma" => String,
|
89
|
-
"tx-nocache-copy" => String,
|
90
|
-
"tx-gso-robust" => String,
|
91
|
-
"fcoe-mtu" => String,
|
92
|
-
"netns-local" => String,
|
93
|
-
"udp-fragmentation-offload" => String,
|
94
|
-
"serial" => String,
|
95
|
-
"latency" => Integer,
|
96
|
-
"tx-checksumming/tx-checksum-ipv6" => String,
|
97
|
-
"tx-checksumming/tx-checksum-ipv4" => String,
|
98
|
-
"tx-fcoe-segmentation" => String,
|
99
|
-
"tcp-segmentation-offload/tx-tcp-segmentation" => String,
|
100
|
-
"tx-ipip-segmentation" => String,
|
101
|
-
"rx-vlan-offload" => String,
|
102
|
-
"tx-gre-segmentation" => String,
|
103
|
-
"tx-checksumming/tx-checksum-ip-generic" => String,
|
104
|
-
"tcp-segmentation-offload/tx-tcp-ecn-segmentation" => String,
|
105
|
-
"tx-checksumming/tx-checksum-fcoe-crc" => String,
|
106
|
-
"rx-vlan-stag-hw-parse" => String,
|
107
|
-
"businfo" => String,
|
108
|
-
"tx-vlan-offload" => String,
|
109
|
-
"product" => String,
|
110
|
-
"vendor" => String,
|
111
|
-
"tx-checksumming/tx-checksum-sctp" => String,
|
112
|
-
"driver" => String,
|
113
|
-
"tx-sit-segmentation" => String,
|
114
|
-
"busy-poll" => String,
|
115
|
-
"scatter-gather/tx-scatter-gather" => String,
|
116
|
-
"link" => String,
|
117
|
-
"ntuple-filters" => String,
|
118
|
-
"rx-all" => String,
|
119
|
-
"tcp-segmentation-offload" => String,
|
120
|
-
"tcp-segmentation-offload/tx-tcp6-segmentation" => String,
|
121
|
-
"rx-checksumming" => String,
|
122
|
-
"tx-lockless" => String,
|
123
|
-
"generic-segmentation-offload" => String,
|
124
|
-
"loopback" => String,
|
125
|
-
"tx-checksumming" => String,
|
126
|
-
"large-receive-offload" => String,
|
127
|
-
"rx-vlan-filter" => String,
|
128
|
-
"receive-hashing" => String,
|
129
|
-
"scatter-gather/tx-scatter-gather-fraglist" => String,
|
130
|
-
"generic-receive-offload" => String,
|
131
|
-
"rx-fcs" => String,
|
132
|
-
"scatter-gather" => String,
|
133
|
-
"tx-mpls-segmentation" => String
|
134
|
-
}
|
135
|
-
},
|
136
|
-
"firmware" => {
|
137
|
-
"bios" => {
|
138
|
-
"date" => String,
|
139
|
-
"version" => String,
|
140
|
-
"vendor" => String
|
141
|
-
}
|
142
|
-
},
|
143
|
-
"system" => {
|
144
|
-
"kernel" => {
|
145
|
-
"cmdline" => String,
|
146
|
-
"version" => String,
|
147
|
-
"arch" => String
|
148
|
-
},
|
149
|
-
"product" => {
|
150
|
-
"version" => String,
|
151
|
-
"vendor" => String,
|
152
|
-
"name" => String,
|
153
|
-
"uuid" => String
|
154
|
-
},
|
155
|
-
"os" => {
|
156
|
-
"version" => String,
|
157
|
-
"vendor" => String
|
158
|
-
}
|
159
|
-
},
|
160
|
-
"memory" => {
|
161
|
-
"total" => {
|
162
|
-
"size" => Integer
|
163
|
-
}
|
164
|
-
},
|
165
|
-
"disk" => {
|
166
|
-
"vda" => {
|
167
|
-
"optimal_io_size" => Integer,
|
168
|
-
"physical_block_size" => Integer,
|
169
|
-
"rotational" => Integer,
|
170
|
-
"vendor" => String,
|
171
|
-
"size" => Integer
|
172
|
-
},
|
173
|
-
"logical" => {"count" => Integer}
|
174
|
-
},
|
175
|
-
"cpu" => {
|
176
|
-
"logical" => {"number" => Integer},
|
177
|
-
"physical_0" => {
|
178
|
-
"physid" => Integer,
|
179
|
-
"product" => String,
|
180
|
-
"frequency" => Integer,
|
181
|
-
"vendor" => String,
|
182
|
-
"flags" => String
|
183
|
-
},
|
184
|
-
"physical_1" => {
|
185
|
-
"physid" => Integer,
|
186
|
-
"product" => String,
|
187
|
-
"frequency" => Integer,
|
188
|
-
"vendor" => String,
|
189
|
-
"flags" => String
|
190
|
-
},
|
191
|
-
"physical_2" => {
|
192
|
-
"physid" => Integer,
|
193
|
-
"product" => String,
|
194
|
-
"frequency" => Integer,
|
195
|
-
"vendor" => String,
|
196
|
-
"flags" => String
|
197
|
-
},
|
198
|
-
"physical_3" => {
|
199
|
-
"physid" => Integer,
|
200
|
-
"product" => String,
|
201
|
-
"frequency" => Integer,
|
202
|
-
"vendor" => String,
|
203
|
-
"flags" => String
|
204
|
-
},
|
205
|
-
"physical" => {"number" => Integer}
|
206
|
-
}
|
207
|
-
},
|
208
|
-
"interfaces" => {
|
209
|
-
"eth0" => {
|
210
|
-
"ip" => String,
|
211
|
-
"mac" => String
|
212
|
-
}
|
213
|
-
},
|
214
|
-
"cpus" => 4,
|
215
|
-
"boot_interface" => String,
|
216
|
-
"memory_mb" => Integer,
|
217
|
-
"ipmi_address" => String,
|
218
|
-
"inventory" => {
|
219
|
-
"bmc_address" => String,
|
220
|
-
"interfaces" => [
|
221
|
-
{
|
222
|
-
"ipv4_address" => Fog::Nullable::String,
|
223
|
-
"switch_port_descr" => Fog::Nullable::String,
|
224
|
-
"switch_chassis_descr" => Fog::Nullable::String,
|
225
|
-
"name" => String,
|
226
|
-
"mac_address" => String
|
227
|
-
},
|
228
|
-
{
|
229
|
-
"ipv4_address" => Fog::Nullable::String,
|
230
|
-
"switch_port_descr" => Fog::Nullable::String,
|
231
|
-
"switch_chassis_descr" => Fog::Nullable::String,
|
232
|
-
"name" => String,
|
233
|
-
"mac_address" => String
|
234
|
-
}
|
235
|
-
],
|
236
|
-
"disks" => [
|
237
|
-
{
|
238
|
-
"rotational" => Fog::Boolean,
|
239
|
-
"vendor" => String,
|
240
|
-
"name" => String,
|
241
|
-
"wwn_vendor_extension" => Fog::Nullable::String,
|
242
|
-
"wwn_with_extension" => Fog::Nullable::String,
|
243
|
-
"model" => Fog::Nullable::String,
|
244
|
-
"wwn" => Fog::Nullable::String,
|
245
|
-
"serial" => Fog::Nullable::String,
|
246
|
-
"size" => Integer
|
247
|
-
}
|
248
|
-
],
|
249
|
-
"system_vendor" => {
|
250
|
-
"serial_number" => String,
|
251
|
-
"product_name" => String,
|
252
|
-
"manufacturer" => String
|
253
|
-
},
|
254
|
-
"memory" => {
|
255
|
-
"physical_mb" => Integer,
|
256
|
-
"total" => Integer
|
257
|
-
},
|
258
|
-
"cpu" => {
|
259
|
-
"count" => Integer,
|
260
|
-
"frequency" => String,
|
261
|
-
"model_name" => String,
|
262
|
-
"architecture" => String
|
263
|
-
}
|
264
|
-
},
|
265
|
-
"error" => Fog::Nullable::String,
|
266
|
-
"local_gb" => Integer,
|
267
|
-
"all_interfaces" => {
|
268
|
-
"eth0" => {
|
269
|
-
"ip" => Fog::Nullable::String,
|
270
|
-
"mac" => String
|
271
|
-
},
|
272
|
-
"eth1" => {
|
273
|
-
"ip" => Fog::Nullable::String,
|
274
|
-
"mac" => String
|
275
|
-
}
|
276
|
-
},
|
277
|
-
"logs" => String
|
278
|
-
}
|
279
|
-
|
280
|
-
tests('success') do
|
281
|
-
tests('#create_introspection').succeeds do
|
282
|
-
@inspector.create_introspection(@node_uuid).body
|
283
|
-
end
|
284
|
-
|
285
|
-
tests('#abort_introspection').succeeds do
|
286
|
-
@inspector.abort_introspection(@node_uuid).body
|
287
|
-
end
|
288
|
-
|
289
|
-
tests('#get_introspection').data_matches_schema(@introspection_finished) do
|
290
|
-
@inspector.get_introspection(@node_uuid).body
|
291
|
-
end
|
292
|
-
|
293
|
-
tests('#get_introspection_details').data_matches_schema('data' => @introspection_data) do
|
294
|
-
@inspector.get_introspection_details(@node_uuid).body
|
295
|
-
end
|
296
|
-
end
|
297
|
-
end
|
@@ -1,46 +0,0 @@
|
|
1
|
-
Shindo.tests('@inspector | Introspection rules requests', ['openstack']) do
|
2
|
-
@inspector = Fog::Introspection::OpenStack.new
|
3
|
-
@rules_id = Fog::UUID.uuid
|
4
|
-
@rules = {
|
5
|
-
'description' => Fog::Nullable::String,
|
6
|
-
'actions' => Array,
|
7
|
-
'conditions' => Array,
|
8
|
-
'uuid' => Fog::Nullable::String,
|
9
|
-
}
|
10
|
-
|
11
|
-
tests('success') do
|
12
|
-
tests('#list_rules').data_matches_schema('rules' => @rules) do
|
13
|
-
@inspector.list_rules.body
|
14
|
-
end
|
15
|
-
|
16
|
-
tests('#create_rules').data_matches_schema('rules' => @rules) do
|
17
|
-
attributes = {
|
18
|
-
"actions" => {
|
19
|
-
"action" => "set-attribute",
|
20
|
-
"path" => "/driver_info/ipmi_address",
|
21
|
-
"value" => "{data[inventory][bmc_address]}"
|
22
|
-
},
|
23
|
-
"conditions" => {
|
24
|
-
"field" => "node://property.path",
|
25
|
-
"op" => "eq",
|
26
|
-
"value" => "val",
|
27
|
-
},
|
28
|
-
"description" => "",
|
29
|
-
"uuid" => ""
|
30
|
-
}
|
31
|
-
@inspector.create_rules(attributes).body
|
32
|
-
end
|
33
|
-
|
34
|
-
tests('#get_rules').data_matches_schema('rules' => @rules) do
|
35
|
-
@inspector.get_rules(@rules_id).body
|
36
|
-
end
|
37
|
-
|
38
|
-
tests('#delete_rules').succeeds do
|
39
|
-
@inspector.delete_rules(@rules_id)
|
40
|
-
end
|
41
|
-
|
42
|
-
tests('#delete_rules_all').succeeds do
|
43
|
-
@inspector.delete_rules_all
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|