fog-maestrodev 1.18.0.20131121075022 → 1.18.0.20131122203507

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +8 -8
  2. data/fog.gemspec +2 -2
  3. data/lib/fog/aws/models/auto_scaling/configuration.rb +1 -0
  4. data/lib/fog/aws/models/compute/flavors.rb +10 -0
  5. data/lib/fog/aws/models/glacier/vault.rb +1 -1
  6. data/lib/fog/aws/parsers/auto_scaling/describe_launch_configurations.rb +3 -0
  7. data/lib/fog/aws/requests/auto_scaling/create_launch_configuration.rb +1 -0
  8. data/lib/fog/aws/requests/dns/get_change.rb +1 -1
  9. data/lib/fog/aws/storage.rb +2 -1
  10. data/lib/fog/core/errors.rb +3 -3
  11. data/lib/fog/dreamhost/dns.rb +2 -4
  12. data/lib/fog/google/compute.rb +72 -62
  13. data/lib/fog/google/models/compute/zones.rb +1 -1
  14. data/lib/fog/google/requests/compute/delete_disk.rb +19 -2
  15. data/lib/fog/google/requests/compute/delete_server.rb +3 -3
  16. data/lib/fog/google/requests/compute/get_disk.rb +26 -2
  17. data/lib/fog/google/requests/compute/get_image.rb +3 -3
  18. data/lib/fog/google/requests/compute/get_server.rb +1 -0
  19. data/lib/fog/google/requests/compute/insert_disk.rb +37 -2
  20. data/lib/fog/google/requests/compute/insert_firewall.rb +2 -1
  21. data/lib/fog/google/requests/compute/insert_image.rb +1 -1
  22. data/lib/fog/google/requests/compute/insert_server.rb +31 -22
  23. data/lib/fog/google/requests/compute/list_disks.rb +8 -2
  24. data/lib/fog/google/requests/compute/list_images.rb +2 -2
  25. data/lib/fog/google/requests/compute/list_machine_types.rb +2 -2
  26. data/lib/fog/google/requests/compute/list_servers.rb +2 -2
  27. data/lib/fog/google/requests/compute/list_zone_operations.rb +1 -1
  28. data/lib/fog/google/requests/compute/list_zones.rb +1 -1
  29. data/lib/fog/hp.rb +1 -1
  30. data/lib/fog/hp/README.md +57 -0
  31. data/lib/fog/hp/articles/auth_caching.md +23 -0
  32. data/lib/fog/hp/docs/connect.md +152 -0
  33. data/lib/fog/hp/docs/install.md +133 -0
  34. data/lib/fog/hp/examples/block_storage.md +296 -0
  35. data/lib/fog/hp/examples/block_storage_v2.md +446 -0
  36. data/lib/fog/hp/examples/cdn.md +54 -0
  37. data/lib/fog/hp/examples/compute.md +794 -0
  38. data/lib/fog/hp/examples/compute_v2.md +848 -0
  39. data/lib/fog/hp/examples/getting_started_examples.md +30 -0
  40. data/lib/fog/hp/examples/networking.md +472 -0
  41. data/lib/fog/hp/examples/object_storage.md +387 -0
  42. data/lib/fog/json.rb +6 -3
  43. data/lib/fog/openstack/identity.rb +2 -3
  44. data/lib/fog/openstack/image.rb +1 -4
  45. data/lib/fog/openstack/metering.rb +1 -4
  46. data/lib/fog/openstack/network.rb +1 -3
  47. data/lib/fog/openstack/requests/compute/add_flavor_access.rb +1 -1
  48. data/lib/fog/openstack/requests/compute/allocate_address.rb +1 -1
  49. data/lib/fog/openstack/requests/compute/attach_volume.rb +1 -1
  50. data/lib/fog/openstack/requests/compute/boot_from_snapshot.rb +1 -1
  51. data/lib/fog/openstack/requests/compute/create_flavor.rb +1 -1
  52. data/lib/fog/openstack/requests/compute/create_key_pair.rb +1 -1
  53. data/lib/fog/openstack/requests/compute/create_security_group.rb +1 -1
  54. data/lib/fog/openstack/requests/compute/create_security_group_rule.rb +1 -1
  55. data/lib/fog/openstack/requests/compute/create_volume.rb +1 -1
  56. data/lib/fog/openstack/requests/compute/create_volume_snapshot.rb +1 -1
  57. data/lib/fog/openstack/requests/compute/list_tenants.rb +1 -1
  58. data/lib/fog/openstack/requests/compute/remove_flavor_access.rb +1 -1
  59. data/lib/fog/openstack/requests/compute/update_quota.rb +1 -1
  60. data/lib/fog/openstack/requests/identity/create_ec2_credential.rb +1 -1
  61. data/lib/fog/openstack/requests/identity/create_role.rb +1 -1
  62. data/lib/fog/openstack/requests/identity/create_user.rb +1 -1
  63. data/lib/fog/openstack/requests/identity/update_user.rb +1 -1
  64. data/lib/fog/openstack/requests/image/update_image_members.rb +1 -1
  65. data/lib/fog/openstack/requests/orchestration/create_stack.rb +2 -2
  66. data/lib/fog/openstack/requests/orchestration/update_stack.rb +1 -1
  67. data/lib/fog/openstack/requests/volume/create_volume.rb +1 -1
  68. data/lib/fog/openstack/requests/volume/create_volume_snapshot.rb +1 -1
  69. data/lib/fog/openstack/volume.rb +1 -4
  70. data/lib/fog/rackspace/compute_v2.rb +1 -0
  71. data/lib/fog/rackspace/examples/queues/claim_messages.rb +60 -0
  72. data/lib/fog/rackspace/examples/queues/create_queue.rb +45 -0
  73. data/lib/fog/rackspace/examples/queues/delete_message.rb +72 -0
  74. data/lib/fog/rackspace/examples/queues/delete_queue.rb +53 -0
  75. data/lib/fog/rackspace/examples/queues/list_messages.rb +64 -0
  76. data/lib/fog/rackspace/examples/queues/post_message.rb +59 -0
  77. data/lib/fog/rackspace/models/queues/claim.rb +2 -0
  78. data/lib/fog/rackspace/models/queues/message.rb +5 -5
  79. data/lib/fog/rackspace/models/queues/queue.rb +1 -1
  80. data/lib/fog/rackspace/service.rb +1 -1
  81. data/lib/fog/riakcs.rb +2 -2
  82. data/lib/fog/riakcs/provisioning.rb +1 -3
  83. data/lib/fog/riakcs/requests/provisioning/create_user.rb +2 -2
  84. data/lib/fog/riakcs/requests/provisioning/get_user.rb +1 -1
  85. data/lib/fog/riakcs/requests/provisioning/list_users.rb +1 -1
  86. data/lib/fog/riakcs/requests/usage/get_usage.rb +1 -1
  87. data/lib/fog/riakcs/usage.rb +0 -2
  88. data/lib/fog/vsphere/compute.rb +1 -0
  89. data/lib/fog/vsphere/models/compute/datastore.rb +1 -0
  90. data/lib/fog/vsphere/requests/compute/list_datastores.rb +9 -8
  91. data/lib/fog/vsphere/requests/compute/set_vm_customvalue.rb +19 -0
  92. data/lib/tasks/changelog_task.rb +0 -1
  93. data/tests/google/models/compute/disk_tests.rb +5 -0
  94. data/tests/google/models/compute/disks_tests.rb +5 -0
  95. data/tests/google/models/compute/server_tests.rb +3 -0
  96. data/tests/google/models/compute/servers_tests.rb +5 -0
  97. data/tests/google/requests/compute/disk_tests.rb +2 -1
  98. data/tests/google/requests/compute/firewall_tests.rb +1 -0
  99. data/tests/google/requests/compute/image_tests.rb +3 -0
  100. data/tests/google/requests/compute/network_tests.rb +1 -0
  101. data/tests/google/requests/compute/operation_tests.rb +1 -0
  102. data/tests/google/requests/compute/server_tests.rb +2 -3
  103. data/tests/google/requests/compute/zone_tests.rb +1 -6
  104. data/tests/helpers/mock_helper.rb +3 -4
  105. data/tests/rackspace/models/queues/message_tests.rb +16 -0
  106. data/tests/vsphere/requests/compute/set_vm_customvalue_tests.rb +21 -0
  107. metadata +29 -3
  108. data/lib/fog/hp/README_HP.rdoc +0 -61
@@ -1,4 +1,5 @@
1
1
  Shindo.tests('Fog::Compute[:google] | firewall requests', ['google']) do
2
+ pending if Fog.mocking?
2
3
 
3
4
  @google = Fog::Compute[:google]
4
5
 
@@ -58,10 +58,12 @@ Shindo.tests('Fog::Compute[:google] | image requests', ['google']) do
58
58
  source = 'https://www.google.com/images/srpr/logo4w.png'
59
59
 
60
60
  tests("#insert_image").formats(@insert_image_format) do
61
+ pending if Fog.mocking?
61
62
  @google.insert_image(image_name, source).body
62
63
  end
63
64
 
64
65
  tests("#get_image").formats(@get_image_format) do
66
+ pending if Fog.mocking?
65
67
  @google.insert_image(image_name, source)
66
68
  @google.get_image(image_name).body
67
69
  end
@@ -71,6 +73,7 @@ Shindo.tests('Fog::Compute[:google] | image requests', ['google']) do
71
73
  end
72
74
 
73
75
  tests("#delete_image").formats(@delete_image_format) do
76
+ pending if Fog.mocking?
74
77
  @google.insert_image(image_name, source)
75
78
  @google.delete_image(image_name).body
76
79
  end
@@ -1,4 +1,5 @@
1
1
  Shindo.tests('Fog::Compute[:google] | network requests', ['google']) do
2
+ pending if Fog.mocking?
2
3
 
3
4
  @google = Fog::Compute[:google]
4
5
 
@@ -1,4 +1,5 @@
1
1
  Shindo.tests('Fog::Compute[:google] | operation requests', ['google']) do
2
+ pending if Fog.mocking?
2
3
 
3
4
  @google = Fog::Compute[:google]
4
5
 
@@ -54,16 +54,15 @@ Shindo.tests('Fog::Compute[:google] | server requests', ['google']) do
54
54
  tests('success') do
55
55
 
56
56
  server_name = 'new-server-test'
57
- image_name = "gcel-12-04-v20130325"
57
+ image_name = "centos-6-v20130813"
58
58
  machine_type = "n1-standard-1"
59
59
  zone_name = "us-central1-a"
60
60
 
61
61
  tests("#insert_server").formats(@insert_server_format) do
62
62
  @google.insert_server(
63
63
  server_name,
64
- image_name,
65
64
  zone_name,
66
- machine_type
65
+ { 'image' => image_name, 'machineType' => machine_type }
67
66
  ).body
68
67
  end
69
68
 
@@ -10,12 +10,7 @@ Shindo.tests('Fog::Compute[:google] | zone requests', ['google']) do
10
10
  'name' => String,
11
11
  'description' => String,
12
12
  'status' => String,
13
- 'maintenanceWindows' => [{
14
- 'name' => String,
15
- 'description' => String,
16
- 'beginTime' => String,
17
- 'endTime' => String,
18
- }],
13
+ 'maintenanceWindows' => Fog::Nullable::Array,
19
14
  'quotas' => [{
20
15
  'metric' => String,
21
16
  'limit' => Float,
@@ -43,10 +43,9 @@ if Fog.mock?
43
43
  :go_grid_shared_secret => 'go_grid_shared_secret',
44
44
  :google_storage_access_key_id => 'google_storage_access_key_id',
45
45
  :google_storage_secret_access_key => 'google_storage_secret_access_key',
46
- # Commented out till there are mocks for google/compute
47
- #:google_project => 'google_project_name',
48
- #:google_client_email => 'fake@developer.gserviceaccount.com',
49
- #:google_key_location => '~/fake.p12',
46
+ :google_project => 'google_project_name',
47
+ :google_client_email => 'fake@developer.gserviceaccount.com',
48
+ :google_key_location => '~/fake.p12',
50
49
  :hp_access_key => 'hp_access_key',
51
50
  :hp_secret_key => 'hp_secret_key',
52
51
  :hp_tenant_id => 'hp_tenant_id',
@@ -32,4 +32,20 @@ Shindo.tests('Fog::Rackspace::Queues | message', ['rackspace']) do
32
32
  ensure
33
33
  queue.destroy
34
34
  end
35
+
36
+ tests('identity') do
37
+ tests('nil') do
38
+ message = Fog::Rackspace::Queues::Message.new :href => nil
39
+ returns(nil) { message.id }
40
+ end
41
+ tests('with claim id') do
42
+ message = Fog::Rackspace::Queues::Message.new :href => '/v1/queues/queue1/messages/528b7e4bb04a584f2eb805a3?claim_id=528b7e6aef913e6d2977ee6d'
43
+ returns('528b7e4bb04a584f2eb805a3') { message.id }
44
+ end
45
+ tests('without claim id') do
46
+ message = Fog::Rackspace::Queues::Message.new :href => '/v1/queues/queue1/messages/528b7e4bb04a584f2eb805a3'
47
+ returns('528b7e4bb04a584f2eb805a3') { message.id }
48
+ end
49
+ end
50
+
35
51
  end
@@ -0,0 +1,21 @@
1
+ Shindo.tests('Fog::Compute[:vsphere] | set_vm_customvalue request', ['vsphere']) do
2
+
3
+ compute = Fog::Compute[:vsphere]
4
+
5
+ instance_uuid = '50137835-88a1-436e-768e-9b2677076e67'
6
+ custom_key = nil
7
+ custom_value = nil
8
+
9
+ tests('The response should') do
10
+ response = compute.set_vm_customvalue(instance_uuid, custom_key, custom_value)
11
+ test('be nil') { response.nil? }
12
+ end
13
+
14
+ tests('The expected options') do
15
+ raises(ArgumentError, 'raises ArgumentError when instance_uuid option is missing') { compute.set_vm_customvalue }
16
+ raises(ArgumentError, 'raises ArgumentError when custom_key option is missing') { compute.set_vm_customvalue(instance_uuid) }
17
+ raises(ArgumentError, 'raises ArgumentError when custom_value option is missing') { compute.set_vm_customvalue(instance_uuid, custom_key) }
18
+ end
19
+
20
+ end
21
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-maestrodev
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.18.0.20131121075022
4
+ version: 1.18.0.20131122203507
5
5
  platform: ruby
6
6
  authors:
7
7
  - geemus (Wesley Beary)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-20 00:00:00.000000000 Z
11
+ date: 2013-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder
@@ -2263,13 +2263,24 @@ files:
2263
2263
  - lib/fog/google/storage.rb
2264
2264
  - lib/fog/hp.rb
2265
2265
  - lib/fog/hp/CHANGELOG.hp
2266
- - lib/fog/hp/README_HP.rdoc
2266
+ - lib/fog/hp/README.md
2267
+ - lib/fog/hp/articles/auth_caching.md
2267
2268
  - lib/fog/hp/block_storage.rb
2268
2269
  - lib/fog/hp/block_storage_v2.rb
2269
2270
  - lib/fog/hp/cdn.rb
2270
2271
  - lib/fog/hp/compute.rb
2271
2272
  - lib/fog/hp/compute_v2.rb
2272
2273
  - lib/fog/hp/dns.rb
2274
+ - lib/fog/hp/docs/connect.md
2275
+ - lib/fog/hp/docs/install.md
2276
+ - lib/fog/hp/examples/block_storage.md
2277
+ - lib/fog/hp/examples/block_storage_v2.md
2278
+ - lib/fog/hp/examples/cdn.md
2279
+ - lib/fog/hp/examples/compute.md
2280
+ - lib/fog/hp/examples/compute_v2.md
2281
+ - lib/fog/hp/examples/getting_started_examples.md
2282
+ - lib/fog/hp/examples/networking.md
2283
+ - lib/fog/hp/examples/object_storage.md
2273
2284
  - lib/fog/hp/lb.rb
2274
2285
  - lib/fog/hp/models/block_storage/bootable_volumes.rb
2275
2286
  - lib/fog/hp/models/block_storage/snapshot.rb
@@ -3323,6 +3334,12 @@ files:
3323
3334
  - lib/fog/rackspace/examples/compute_v2/resize_server.rb
3324
3335
  - lib/fog/rackspace/examples/compute_v2/server_attachments.rb
3325
3336
  - lib/fog/rackspace/examples/compute_v2/server_metadata.rb
3337
+ - lib/fog/rackspace/examples/queues/claim_messages.rb
3338
+ - lib/fog/rackspace/examples/queues/create_queue.rb
3339
+ - lib/fog/rackspace/examples/queues/delete_message.rb
3340
+ - lib/fog/rackspace/examples/queues/delete_queue.rb
3341
+ - lib/fog/rackspace/examples/queues/list_messages.rb
3342
+ - lib/fog/rackspace/examples/queues/post_message.rb
3326
3343
  - lib/fog/rackspace/examples/storage/create_cdn_directory.rb
3327
3344
  - lib/fog/rackspace/examples/storage/create_private_directory.rb
3328
3345
  - lib/fog/rackspace/examples/storage/delete_directory.rb
@@ -4355,6 +4372,7 @@ files:
4355
4372
  - lib/fog/vsphere/requests/compute/list_vm_volumes.rb
4356
4373
  - lib/fog/vsphere/requests/compute/modify_vm_interface.rb
4357
4374
  - lib/fog/vsphere/requests/compute/modify_vm_volume.rb
4375
+ - lib/fog/vsphere/requests/compute/set_vm_customvalue.rb
4358
4376
  - lib/fog/vsphere/requests/compute/vm_clone.rb
4359
4377
  - lib/fog/vsphere/requests/compute/vm_config_vnc.rb
4360
4378
  - lib/fog/vsphere/requests/compute/vm_destroy.rb
@@ -4797,7 +4815,10 @@ files:
4797
4815
  - tests/glesys/requests/compute/server_tests.rb
4798
4816
  - tests/glesys/requests/compute/template_tests.rb
4799
4817
  - tests/go_grid/requests/compute/image_tests.rb
4818
+ - tests/google/models/compute/disk_tests.rb
4819
+ - tests/google/models/compute/disks_tests.rb
4800
4820
  - tests/google/models/compute/server_tests.rb
4821
+ - tests/google/models/compute/servers_tests.rb
4801
4822
  - tests/google/requests/compute/disk_tests.rb
4802
4823
  - tests/google/requests/compute/firewall_tests.rb
4803
4824
  - tests/google/requests/compute/image_tests.rb
@@ -5321,6 +5342,7 @@ files:
5321
5342
  - tests/vsphere/models/compute/servers_tests.rb
5322
5343
  - tests/vsphere/requests/compute/current_time_tests.rb
5323
5344
  - tests/vsphere/requests/compute/list_virtual_machines_tests.rb
5345
+ - tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
5324
5346
  - tests/vsphere/requests/compute/vm_clone_tests.rb
5325
5347
  - tests/vsphere/requests/compute/vm_config_vnc_tests.rb
5326
5348
  - tests/vsphere/requests/compute/vm_destroy_tests.rb
@@ -5720,7 +5742,10 @@ test_files:
5720
5742
  - tests/glesys/requests/compute/server_tests.rb
5721
5743
  - tests/glesys/requests/compute/template_tests.rb
5722
5744
  - tests/go_grid/requests/compute/image_tests.rb
5745
+ - tests/google/models/compute/disk_tests.rb
5746
+ - tests/google/models/compute/disks_tests.rb
5723
5747
  - tests/google/models/compute/server_tests.rb
5748
+ - tests/google/models/compute/servers_tests.rb
5724
5749
  - tests/google/requests/compute/disk_tests.rb
5725
5750
  - tests/google/requests/compute/firewall_tests.rb
5726
5751
  - tests/google/requests/compute/image_tests.rb
@@ -6244,6 +6269,7 @@ test_files:
6244
6269
  - tests/vsphere/models/compute/servers_tests.rb
6245
6270
  - tests/vsphere/requests/compute/current_time_tests.rb
6246
6271
  - tests/vsphere/requests/compute/list_virtual_machines_tests.rb
6272
+ - tests/vsphere/requests/compute/set_vm_customvalue_tests.rb
6247
6273
  - tests/vsphere/requests/compute/vm_clone_tests.rb
6248
6274
  - tests/vsphere/requests/compute/vm_config_vnc_tests.rb
6249
6275
  - tests/vsphere/requests/compute/vm_destroy_tests.rb
@@ -1,61 +0,0 @@
1
- = HP Cloud Extensions to Ruby Fog Library
2
-
3
- HP contributed to the native Ruby library Fog, through an HP Cloud developed extension to Fog via
4
- the Object Storage, Compute and CDN providers. By using the HP Cloud Extensions to Fog, developers
5
- can write applications using Ruby that interacts with the HP Cloud Services without having to deal
6
- with the underlying REST API or JSON/XML document formats.
7
-
8
- == Background
9
-
10
- This library is an extension of Fog[https://github.com/fog/fog], a Ruby open-source cloud
11
- computing library. The code in this library, contains all HP-specific support and is being
12
- contributed back to the primary open-source library.
13
-
14
- The HP Cloud Ruby library currently supports HP Cloud Object Storage, Compute, CDN, and
15
- support for other services will be added as available.
16
-
17
- == Installation
18
-
19
- sudo gem install fog
20
-
21
- That's it! Try out the usage examples explained below to confirm your installation.
22
-
23
- If you should ever need to remove the library:
24
-
25
- sudo gem uninstall fog
26
-
27
- == Usage
28
-
29
- The Ruby Fog library is well documented on the community web site at {fog.io}[http://fog.io], but for specific examples
30
- using HP's extensions, see:
31
-
32
- * {HP Cloud Fog library - Object Storage Examples}[https://docs.hpcloud.com/bindings/fog/object-storage]
33
- * {HP Cloud Fog library - Compute Examples}[https://docs.hpcloud.com/bindings/fog/compute]
34
- * {HP Cloud Fog library - CDN Examples}[https://docs.hpcloud.com/bindings/fog/cdn]
35
- * {HP Cloud Fog library - Block Storage Examples}[https://docs.hpcloud.com/bindings/fog/block-storage]
36
-
37
- Having trouble? Get help over at the {Forums}[https://community.hpcloud.com/forum] or
38
- at the {Knowledge Base}[https://community.hpcloud.com/knowledge-base] areas.
39
-
40
-
41
- == Notice
42
-
43
- The following notice applies to files included in the /lib/fog/hp directory and its sub-directories.
44
-
45
- Copyright (c) 2011 Hewlett-Packard Development Company, L.P.
46
-
47
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software
48
- and associated documentation files (the "Software"), to deal in the Software without restriction,
49
- including without limitation the rights to use, copy, modify, merge, publish, distribute,
50
- sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
51
- furnished to do so, subject to the following conditions:
52
-
53
- The above copyright notice and this permission notice shall be included in all copies or
54
- substantial portions of the Software.
55
-
56
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
57
- INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
58
- PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
59
- FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
60
- OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
61
- DEALINGS IN THE SOFTWARE.