fog-oraclecloud 0.1.15 → 0.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/lib/fog/oraclecloud/compute.rb +395 -6
  3. data/lib/fog/oraclecloud/database.rb +6 -0
  4. data/lib/fog/oraclecloud/java.rb +1 -0
  5. data/lib/fog/oraclecloud/models/compute/instance.rb +64 -2
  6. data/lib/fog/oraclecloud/models/compute/ip_association.rb +42 -0
  7. data/lib/fog/oraclecloud/models/compute/ip_associations.rb +22 -0
  8. data/lib/fog/oraclecloud/models/compute/ip_reservation.rb +10 -5
  9. data/lib/fog/oraclecloud/models/compute/security_application.rb +1 -0
  10. data/lib/fog/oraclecloud/models/compute/security_applications.rb +6 -2
  11. data/lib/fog/oraclecloud/models/compute/security_association.rb +31 -0
  12. data/lib/fog/oraclecloud/models/compute/security_associations.rb +20 -0
  13. data/lib/fog/oraclecloud/models/compute/security_ip_list.rb +27 -0
  14. data/lib/fog/oraclecloud/models/compute/security_ip_lists.rb +22 -0
  15. data/lib/fog/oraclecloud/models/compute/security_list.rb +75 -1
  16. data/lib/fog/oraclecloud/models/compute/security_rule.rb +3 -3
  17. data/lib/fog/oraclecloud/models/database/access_rule.rb +52 -0
  18. data/lib/fog/oraclecloud/models/database/access_rules.rb +28 -0
  19. data/lib/fog/oraclecloud/models/database/instance.rb +17 -4
  20. data/lib/fog/oraclecloud/monitoring.rb +1 -1
  21. data/lib/fog/oraclecloud/requests/compute/create_instance.rb +34 -1
  22. data/lib/fog/oraclecloud/requests/compute/create_ip_association.rb +39 -0
  23. data/lib/fog/oraclecloud/requests/compute/create_security_application.rb +18 -0
  24. data/lib/fog/oraclecloud/requests/compute/create_security_association.rb +47 -0
  25. data/lib/fog/oraclecloud/requests/compute/create_security_ip_list.rb +47 -0
  26. data/lib/fog/oraclecloud/requests/compute/create_security_list.rb +49 -0
  27. data/lib/fog/oraclecloud/requests/compute/create_security_rule.rb +22 -0
  28. data/lib/fog/oraclecloud/requests/compute/delete_security_list.rb +29 -0
  29. data/lib/fog/oraclecloud/requests/compute/get_ip_association.rb +36 -0
  30. data/lib/fog/oraclecloud/requests/compute/get_ip_network.rb +1 -1
  31. data/lib/fog/oraclecloud/requests/compute/get_security_application.rb +21 -1
  32. data/lib/fog/oraclecloud/requests/compute/get_security_ip_list.rb +37 -0
  33. data/lib/fog/oraclecloud/requests/compute/get_security_list.rb +37 -0
  34. data/lib/fog/oraclecloud/requests/compute/get_security_rule.rb +17 -0
  35. data/lib/fog/oraclecloud/requests/compute/list_ip_associations.rb +28 -0
  36. data/lib/fog/oraclecloud/requests/compute/list_security_applications.rb +17 -4
  37. data/lib/fog/oraclecloud/requests/compute/list_security_rules.rb +1 -1
  38. data/lib/fog/oraclecloud/requests/compute/update_ip_reservation.rb +2 -0
  39. data/lib/fog/oraclecloud/requests/database/create_access_rule.rb +47 -0
  40. data/lib/fog/oraclecloud/requests/database/get_access_rule.rb +50 -0
  41. data/lib/fog/oraclecloud/soa.rb +1 -1
  42. data/lib/fog/oraclecloud/storage.rb +1 -1
  43. data/lib/fog/oraclecloud/version.rb +1 -1
  44. data/tests/requests/database_tests.rb +15 -8
  45. data/tests/requests/ip_reservation_tests.rb +33 -0
  46. data/tests/requests/security_application_tests.rb +32 -0
  47. metadata +23 -2
@@ -0,0 +1,33 @@
1
+ require 'pp'
2
+
3
+ Shindo.tests('Fog::Compute[oraclecloud] | ip_reservation requests', 'instances') do
4
+
5
+ tests("#ip-reservation-read") do
6
+ ips = Fog::Compute[:oraclecloud].ip_reservations
7
+ test "returns an Array" do
8
+ ips.is_a? Array
9
+ end
10
+ test "should return keys" do
11
+ ips.size >= 1
12
+ end
13
+ test "should return a valid name" do
14
+ ips.first.name.is_a? String
15
+ end
16
+
17
+ ip = Fog::Compute[:oraclecloud].ip_reservations.get(ips.first.name)
18
+ test "should return an instance" do
19
+ ip.name.is_a? String
20
+ end
21
+ end
22
+
23
+ tests('#ip_reservation from instance') do
24
+ instances = Fog::Compute[:oraclecloud].instances
25
+ instance = instances.detect { |i| i.networking['eth0'] and i.networking['eth0']['nat'] and i.networking['eth0']['nat'].include? 'ipreservation'}
26
+ if instance then
27
+ test "can get public ip address" do
28
+ ip = instance.get_public_ip_address
29
+ ip.is_a? String # TODO: Test for IP address
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,32 @@
1
+ require 'pp'
2
+
3
+ Shindo.tests('Fog::Compute[oraclecloud] | security application requests', 'security_applications') do
4
+
5
+
6
+
7
+ tests("#secapps-read") do
8
+ secapps = Fog::Compute[:oraclecloud].security_applications.all
9
+ test "returns an Array" do
10
+ secapps.is_a? Array
11
+ end
12
+ test "should return keys" do
13
+ secapps.size >= 1
14
+ end
15
+ test "should return a valid name" do
16
+ secapps.first.name.is_a? String
17
+ end
18
+ #secapps.each do |app| puts app.name end
19
+ test "includes public apps" do
20
+
21
+ public_list = secapps.detect { |app| app.name.include? 'oracle/public' }
22
+ public_list.is_a? Fog::Compute::OracleCloud::SecurityApplication
23
+ end
24
+
25
+ #secapp = Fog::Compute[:oraclecloud].security_applications.get(secapps.first.name)
26
+ #test "should return a key" do
27
+ # secapp.name.is_a? String
28
+ #end
29
+ end
30
+
31
+
32
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-oraclecloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.15
4
+ version: 0.1.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Nation
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-24 00:00:00.000000000 Z
11
+ date: 2017-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -176,6 +176,8 @@ files:
176
176
  - lib/fog/oraclecloud/models/compute/images.rb
177
177
  - lib/fog/oraclecloud/models/compute/instance.rb
178
178
  - lib/fog/oraclecloud/models/compute/instances.rb
179
+ - lib/fog/oraclecloud/models/compute/ip_association.rb
180
+ - lib/fog/oraclecloud/models/compute/ip_associations.rb
179
181
  - lib/fog/oraclecloud/models/compute/ip_network.rb
180
182
  - lib/fog/oraclecloud/models/compute/ip_networks.rb
181
183
  - lib/fog/oraclecloud/models/compute/ip_reservation.rb
@@ -186,6 +188,10 @@ files:
186
188
  - lib/fog/oraclecloud/models/compute/orchestrations.rb
187
189
  - lib/fog/oraclecloud/models/compute/security_application.rb
188
190
  - lib/fog/oraclecloud/models/compute/security_applications.rb
191
+ - lib/fog/oraclecloud/models/compute/security_association.rb
192
+ - lib/fog/oraclecloud/models/compute/security_associations.rb
193
+ - lib/fog/oraclecloud/models/compute/security_ip_list.rb
194
+ - lib/fog/oraclecloud/models/compute/security_ip_lists.rb
189
195
  - lib/fog/oraclecloud/models/compute/security_list.rb
190
196
  - lib/fog/oraclecloud/models/compute/security_lists.rb
191
197
  - lib/fog/oraclecloud/models/compute/security_rule.rb
@@ -196,6 +202,8 @@ files:
196
202
  - lib/fog/oraclecloud/models/compute/storage_attachments.rb
197
203
  - lib/fog/oraclecloud/models/compute/volume.rb
198
204
  - lib/fog/oraclecloud/models/compute/volumes.rb
205
+ - lib/fog/oraclecloud/models/database/access_rule.rb
206
+ - lib/fog/oraclecloud/models/database/access_rules.rb
199
207
  - lib/fog/oraclecloud/models/database/backup.rb
200
208
  - lib/fog/oraclecloud/models/database/backups.rb
201
209
  - lib/fog/oraclecloud/models/database/instance.rb
@@ -228,10 +236,14 @@ files:
228
236
  - lib/fog/oraclecloud/requests/compute/create_image.rb
229
237
  - lib/fog/oraclecloud/requests/compute/create_image_list.rb
230
238
  - lib/fog/oraclecloud/requests/compute/create_instance.rb
239
+ - lib/fog/oraclecloud/requests/compute/create_ip_association.rb
231
240
  - lib/fog/oraclecloud/requests/compute/create_ip_network.rb
232
241
  - lib/fog/oraclecloud/requests/compute/create_ip_reservation.rb
233
242
  - lib/fog/oraclecloud/requests/compute/create_orchestration.rb
234
243
  - lib/fog/oraclecloud/requests/compute/create_security_application.rb
244
+ - lib/fog/oraclecloud/requests/compute/create_security_association.rb
245
+ - lib/fog/oraclecloud/requests/compute/create_security_ip_list.rb
246
+ - lib/fog/oraclecloud/requests/compute/create_security_list.rb
235
247
  - lib/fog/oraclecloud/requests/compute/create_security_rule.rb
236
248
  - lib/fog/oraclecloud/requests/compute/create_ssh_key.rb
237
249
  - lib/fog/oraclecloud/requests/compute/create_storage_attachment.rb
@@ -243,21 +255,26 @@ files:
243
255
  - lib/fog/oraclecloud/requests/compute/delete_ip_reservation.rb
244
256
  - lib/fog/oraclecloud/requests/compute/delete_orchestration.rb
245
257
  - lib/fog/oraclecloud/requests/compute/delete_security_application.rb
258
+ - lib/fog/oraclecloud/requests/compute/delete_security_list.rb
246
259
  - lib/fog/oraclecloud/requests/compute/delete_security_rule.rb
247
260
  - lib/fog/oraclecloud/requests/compute/delete_ssh_key.rb
248
261
  - lib/fog/oraclecloud/requests/compute/get_image.rb
249
262
  - lib/fog/oraclecloud/requests/compute/get_image_list.rb
250
263
  - lib/fog/oraclecloud/requests/compute/get_instance.rb
264
+ - lib/fog/oraclecloud/requests/compute/get_ip_association.rb
251
265
  - lib/fog/oraclecloud/requests/compute/get_ip_network.rb
252
266
  - lib/fog/oraclecloud/requests/compute/get_ip_reservation.rb
253
267
  - lib/fog/oraclecloud/requests/compute/get_orchestration.rb
254
268
  - lib/fog/oraclecloud/requests/compute/get_security_application.rb
269
+ - lib/fog/oraclecloud/requests/compute/get_security_ip_list.rb
270
+ - lib/fog/oraclecloud/requests/compute/get_security_list.rb
255
271
  - lib/fog/oraclecloud/requests/compute/get_security_rule.rb
256
272
  - lib/fog/oraclecloud/requests/compute/get_ssh_key.rb
257
273
  - lib/fog/oraclecloud/requests/compute/get_storage_attachment.rb
258
274
  - lib/fog/oraclecloud/requests/compute/list_image_lists.rb
259
275
  - lib/fog/oraclecloud/requests/compute/list_images.rb
260
276
  - lib/fog/oraclecloud/requests/compute/list_instances.rb
277
+ - lib/fog/oraclecloud/requests/compute/list_ip_associations.rb
261
278
  - lib/fog/oraclecloud/requests/compute/list_ip_networks.rb
262
279
  - lib/fog/oraclecloud/requests/compute/list_ip_reservations.rb
263
280
  - lib/fog/oraclecloud/requests/compute/list_orchestrations.rb
@@ -275,10 +292,12 @@ files:
275
292
  - lib/fog/oraclecloud/requests/compute/update_orchestration.rb
276
293
  - lib/fog/oraclecloud/requests/compute/update_ssh_key.rb
277
294
  - lib/fog/oraclecloud/requests/database/backup_instance.rb
295
+ - lib/fog/oraclecloud/requests/database/create_access_rule.rb
278
296
  - lib/fog/oraclecloud/requests/database/create_instance.rb
279
297
  - lib/fog/oraclecloud/requests/database/create_snapshot.rb
280
298
  - lib/fog/oraclecloud/requests/database/delete_instance.rb
281
299
  - lib/fog/oraclecloud/requests/database/delete_snapshot.rb
300
+ - lib/fog/oraclecloud/requests/database/get_access_rule.rb
282
301
  - lib/fog/oraclecloud/requests/database/get_instance.rb
283
302
  - lib/fog/oraclecloud/requests/database/get_instance_from_job.rb
284
303
  - lib/fog/oraclecloud/requests/database/get_snapshot.rb
@@ -325,9 +344,11 @@ files:
325
344
  - tests/requests/compute_tests.rb
326
345
  - tests/requests/database_tests.rb
327
346
  - tests/requests/instance_tests.rb
347
+ - tests/requests/ip_reservation_tests.rb
328
348
  - tests/requests/java_tests.rb
329
349
  - tests/requests/monitoring_tests.rb
330
350
  - tests/requests/orchestrations_tests.rb
351
+ - tests/requests/security_application_tests.rb
331
352
  - tests/requests/soa_tests.rb
332
353
  - tests/requests/ssh_keys_tests.rb
333
354
  - tests/requests/storage_tests.rb