fog 0.3.7 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +6 -6
- data/README.rdoc +7 -1
- data/bin/fog +4 -3
- data/fog.gemspec +39 -24
- data/lib/fog.rb +4 -12
- data/lib/fog/aws.rb +14 -5
- data/lib/fog/aws/compute.rb +26 -9
- data/lib/fog/aws/elb.rb +3 -2
- data/lib/fog/aws/models/compute/address.rb +2 -1
- data/lib/fog/aws/models/compute/addresses.rb +11 -9
- data/lib/fog/aws/models/compute/flavor.rb +1 -1
- data/lib/fog/aws/models/compute/flavors.rb +13 -11
- data/lib/fog/aws/models/compute/image.rb +2 -1
- data/lib/fog/aws/models/compute/images.rb +7 -9
- data/lib/fog/aws/models/compute/key_pair.rb +1 -1
- data/lib/fog/aws/models/compute/key_pairs.rb +10 -8
- data/lib/fog/aws/models/compute/security_group.rb +1 -1
- data/lib/fog/aws/models/compute/security_groups.rb +11 -9
- data/lib/fog/aws/models/compute/server.rb +10 -3
- data/lib/fog/aws/models/compute/servers.rb +14 -8
- data/lib/fog/aws/models/compute/snapshot.rb +3 -2
- data/lib/fog/aws/models/compute/snapshots.rb +11 -16
- data/lib/fog/aws/models/compute/tag.rb +36 -0
- data/lib/fog/aws/models/compute/tags.rb +34 -0
- data/lib/fog/aws/models/compute/volume.rb +11 -10
- data/lib/fog/aws/models/compute/volumes.rb +11 -9
- data/lib/fog/aws/models/storage/directories.rb +1 -1
- data/lib/fog/aws/models/storage/directory.rb +1 -1
- data/lib/fog/aws/models/storage/file.rb +3 -2
- data/lib/fog/aws/models/storage/files.rb +1 -7
- data/lib/fog/aws/parsers/compute/describe_availability_zones.rb +4 -2
- data/lib/fog/aws/parsers/compute/describe_images.rb +23 -13
- data/lib/fog/aws/parsers/compute/describe_instances.rb +34 -8
- data/lib/fog/aws/parsers/compute/describe_security_groups.rb +4 -3
- data/lib/fog/aws/parsers/compute/describe_snapshots.rb +33 -13
- data/lib/fog/aws/parsers/compute/describe_tags.rb +30 -0
- data/lib/fog/aws/parsers/compute/describe_volumes.rb +17 -3
- data/lib/fog/aws/parsers/compute/run_instances.rb +4 -4
- data/lib/fog/aws/parsers/storage/get_bucket.rb +1 -1
- data/lib/fog/aws/parsers/storage/get_bucket_logging.rb +1 -1
- data/lib/fog/aws/parsers/storage/get_bucket_object_versions.rb +3 -3
- data/lib/fog/aws/requests/compute/create_snapshot.rb +1 -0
- data/lib/fog/aws/requests/compute/create_tags.rb +78 -0
- data/lib/fog/aws/requests/compute/delete_tags.rb +45 -0
- data/lib/fog/aws/requests/compute/describe_addresses.rb +27 -19
- data/lib/fog/aws/requests/compute/describe_availability_zones.rb +31 -25
- data/lib/fog/aws/requests/compute/describe_images.rb +11 -18
- data/lib/fog/aws/requests/compute/describe_instances.rb +125 -53
- data/lib/fog/aws/requests/compute/describe_key_pairs.rb +29 -21
- data/lib/fog/aws/requests/compute/describe_regions.rb +28 -23
- data/lib/fog/aws/requests/compute/describe_reserved_instances.rb +8 -4
- data/lib/fog/aws/requests/compute/describe_security_groups.rb +48 -19
- data/lib/fog/aws/requests/compute/describe_snapshots.rb +72 -35
- data/lib/fog/aws/requests/compute/describe_tags.rb +42 -0
- data/lib/fog/aws/requests/compute/describe_volumes.rb +67 -36
- data/lib/fog/aws/requests/compute/run_instances.rb +10 -3
- data/lib/fog/aws/simpledb.rb +3 -1
- data/lib/fog/aws/storage.rb +17 -8
- data/lib/fog/bluebox/models/compute/flavor.rb +1 -1
- data/lib/fog/bluebox/models/compute/flavors.rb +1 -1
- data/lib/fog/bluebox/models/compute/image.rb +1 -1
- data/lib/fog/bluebox/models/compute/images.rb +1 -1
- data/lib/fog/bluebox/models/compute/server.rb +8 -6
- data/lib/fog/bluebox/models/compute/servers.rb +1 -1
- data/lib/fog/bluebox/requests/compute/get_blocks.rb +1 -1
- data/lib/fog/core.rb +11 -0
- data/lib/fog/{attributes.rb → core/attributes.rb} +0 -0
- data/lib/fog/{bin.rb → core/bin.rb} +1 -1
- data/lib/fog/{collection.rb → core/collection.rb} +4 -0
- data/lib/fog/{connection.rb → core/connection.rb} +0 -0
- data/lib/fog/{credentials.rb → core/credentials.rb} +2 -0
- data/lib/fog/{deprecation.rb → core/deprecation.rb} +0 -0
- data/lib/fog/{errors.rb → core/errors.rb} +0 -0
- data/lib/fog/{hmac.rb → core/hmac.rb} +0 -0
- data/lib/fog/{model.rb → core/model.rb} +0 -0
- data/lib/fog/{parser.rb → core/parser.rb} +0 -0
- data/lib/fog/{provider.rb → core/provider.rb} +0 -0
- data/lib/fog/{service.rb → core/service.rb} +1 -0
- data/lib/fog/{ssh.rb → core/ssh.rb} +7 -7
- data/lib/fog/go_grid.rb +1 -1
- data/lib/fog/go_grid/compute.rb +6 -1
- data/lib/fog/go_grid/models/compute/image.rb +60 -0
- data/lib/fog/go_grid/models/compute/images.rb +33 -0
- data/lib/fog/go_grid/models/compute/server.rb +56 -0
- data/lib/fog/go_grid/models/compute/servers.rb +35 -0
- data/lib/fog/go_grid/requests/compute/grid_image_get.rb +41 -0
- data/lib/fog/go_grid/requests/compute/grid_image_list.rb +6 -1
- data/lib/fog/go_grid/requests/compute/grid_server_power.rb +2 -2
- data/lib/fog/google/models/storage/directories.rb +1 -1
- data/lib/fog/google/models/storage/directory.rb +1 -1
- data/lib/fog/google/models/storage/file.rb +3 -2
- data/lib/fog/google/models/storage/files.rb +1 -7
- data/lib/fog/google/parsers/storage/get_bucket.rb +1 -1
- data/lib/fog/linode/requests/compute/avail_linodeplans.rb +2 -2
- data/lib/fog/local/models/storage/directories.rb +1 -1
- data/lib/fog/local/models/storage/directory.rb +1 -1
- data/lib/fog/local/models/storage/file.rb +2 -2
- data/lib/fog/local/models/storage/files.rb +2 -5
- data/lib/fog/local/storage.rb +1 -1
- data/lib/fog/new_servers/compute.rb +1 -1
- data/lib/fog/rackspace/models/compute/flavor.rb +1 -3
- data/lib/fog/rackspace/models/compute/flavors.rb +1 -1
- data/lib/fog/rackspace/models/compute/image.rb +2 -1
- data/lib/fog/rackspace/models/compute/images.rb +1 -1
- data/lib/fog/rackspace/models/compute/server.rb +12 -11
- data/lib/fog/rackspace/models/compute/servers.rb +1 -1
- data/lib/fog/rackspace/models/storage/directories.rb +1 -1
- data/lib/fog/rackspace/models/storage/directory.rb +1 -1
- data/lib/fog/rackspace/models/storage/file.rb +4 -4
- data/lib/fog/rackspace/models/storage/files.rb +1 -1
- data/lib/fog/rackspace/requests/compute/create_image.rb +2 -2
- data/lib/fog/rackspace/requests/compute/delete_image.rb +1 -1
- data/lib/fog/rackspace/requests/compute/delete_server.rb +1 -1
- data/lib/fog/rackspace/requests/compute/get_server_details.rb +1 -1
- data/lib/fog/rackspace/requests/compute/list_addresses.rb +1 -1
- data/lib/fog/rackspace/requests/compute/list_images_detail.rb +2 -2
- data/lib/fog/rackspace/requests/compute/list_private_addresses.rb +1 -1
- data/lib/fog/rackspace/requests/compute/list_public_addresses.rb +1 -1
- data/lib/fog/rackspace/requests/compute/update_server.rb +1 -1
- data/lib/fog/rackspace/requests/storage/put_object.rb +4 -3
- data/lib/fog/slicehost/models/compute/flavor.rb +1 -1
- data/lib/fog/slicehost/models/compute/flavors.rb +1 -1
- data/lib/fog/slicehost/models/compute/image.rb +1 -1
- data/lib/fog/slicehost/models/compute/images.rb +1 -1
- data/lib/fog/slicehost/models/compute/server.rb +3 -1
- data/lib/fog/slicehost/models/compute/servers.rb +1 -1
- data/lib/fog/terremark/ecloud.rb +34 -33
- data/lib/fog/terremark/models/shared/address.rb +1 -1
- data/lib/fog/terremark/models/shared/network.rb +1 -1
- data/lib/fog/terremark/models/shared/server.rb +1 -1
- data/lib/fog/terremark/models/shared/servers.rb +1 -1
- data/lib/fog/terremark/models/shared/task.rb +1 -1
- data/lib/fog/terremark/models/shared/tasks.rb +1 -1
- data/lib/fog/terremark/models/shared/vdc.rb +1 -1
- data/lib/fog/terremark/parser.rb +1 -0
- data/lib/fog/terremark/vcloud.rb +4 -4
- data/lib/fog/vcloud.rb +15 -7
- data/lib/fog/vcloud/terremark/ecloud.rb +15 -3
- data/lib/fog/vcloud/terremark/ecloud/models/firewall_acls.rb +1 -1
- data/lib/fog/vcloud/terremark/ecloud/models/internet_services.rb +1 -1
- data/lib/fog/vcloud/terremark/ecloud/models/ips.rb +1 -1
- data/lib/fog/vcloud/terremark/ecloud/models/networks.rb +1 -1
- data/lib/fog/vcloud/terremark/ecloud/models/nodes.rb +1 -1
- data/lib/fog/vcloud/terremark/ecloud/models/public_ips.rb +1 -1
- data/lib/fog/vcloud/terremark/ecloud/models/servers.rb +1 -1
- data/lib/fog/vcloud/terremark/ecloud/models/tasks.rb +1 -1
- data/lib/fog/vcloud/terremark/ecloud/models/vdcs.rb +1 -1
- data/lib/fog/vcloud/terremark/ecloud/requests/add_internet_service.rb +55 -49
- data/lib/fog/vcloud/terremark/ecloud/requests/add_node.rb +19 -15
- data/lib/fog/vcloud/terremark/ecloud/requests/configure_internet_service.rb +8 -1
- data/lib/fog/vcloud/terremark/ecloud/requests/configure_node.rb +17 -12
- data/lib/fog/vcloud/terremark/ecloud/requests/get_catalog.rb +29 -1
- data/lib/fog/vcloud/terremark/ecloud/requests/get_catalog_item.rb +38 -2
- data/lib/fog/vcloud/terremark/ecloud/requests/get_customization_options.rb +8 -2
- data/lib/fog/vcloud/terremark/ecloud/requests/instantiate_vapp_template.rb +46 -4
- data/spec/aws/models/compute/server_spec.rb +2 -0
- data/spec/aws/requests/simpledb/select_spec.rb +1 -0
- data/spec/spec_helper.rb +1 -1
- data/spec/vcloud/spec_helper.rb +1 -1
- data/spec/vcloud/terremark/ecloud/requests/get_catalog_item_spec.rb +62 -0
- data/spec/vcloud/terremark/ecloud/requests/get_catalog_spec.rb +44 -0
- data/spec/vcloud/terremark/ecloud/requests/get_customization_options_spec.rb +39 -0
- data/spec/vcloud/terremark/ecloud/requests/instantiate_vapp_template_spec.rb +73 -0
- data/tests/aws/requests/compute/address_tests.rb +2 -6
- data/tests/aws/requests/compute/availability_zone_tests.rb +3 -10
- data/tests/aws/requests/compute/image_tests.rb +4 -9
- data/tests/aws/requests/compute/instance_tests.rb +7 -8
- data/tests/aws/requests/compute/key_pair_tests.rb +2 -6
- data/tests/aws/requests/compute/region_tests.rb +2 -9
- data/tests/aws/requests/compute/security_group_tests.rb +3 -7
- data/tests/aws/requests/compute/snapshot_tests.rb +4 -7
- data/tests/aws/requests/compute/tag_tests.rb +49 -0
- data/tests/aws/requests/compute/volume_tests.rb +2 -6
- data/tests/aws/requests/storage/bucket_tests.rb +48 -0
- data/tests/aws/requests/storage/object_tests.rb +63 -0
- data/tests/bluebox/requests/compute/block_tests.rb +24 -11
- data/tests/bluebox/requests/compute/product_tests.rb +3 -0
- data/tests/bluebox/requests/compute/template_tests.rb +3 -0
- data/tests/go_grid/helper.rb +0 -0
- data/tests/go_grid/requests/compute/image_tests.rb +0 -0
- data/tests/helper.rb +5 -1
- data/tests/linode/requests/compute/datacenter_tests.rb +1 -0
- data/tests/linode/requests/compute/distribution_tests.rb +2 -0
- data/tests/linode/requests/compute/linode_tests.rb +6 -0
- data/tests/linode/requests/compute/linodeplans_tests.rb +2 -0
- data/tests/lorem.txt +1 -0
- data/tests/rackspace/requests/compute/flavor_tests.rb +4 -0
- data/tests/rackspace/requests/compute/image_tests.rb +12 -4
- data/tests/rackspace/requests/compute/server_tests.rb +9 -0
- data/tests/slicehost/requests/compute/backup_tests.rb +1 -0
- data/tests/slicehost/requests/compute/flavor_tests.rb +3 -0
- data/tests/slicehost/requests/compute/image_tests.rb +3 -0
- data/tests/slicehost/requests/compute/slice_tests.rb +14 -2
- metadata +42 -27
- data/spec/aws/requests/storage/delete_bucket_spec.rb +0 -35
- data/spec/aws/requests/storage/delete_object_spec.rb +0 -36
- data/spec/aws/requests/storage/get_object_spec.rb +0 -58
- data/spec/aws/requests/storage/get_service_spec.rb +0 -32
- data/spec/aws/requests/storage/head_object_spec.rb +0 -26
- data/spec/aws/requests/storage/put_bucket_spec.rb +0 -19
- data/spec/aws/requests/storage/put_object_spec.rb +0 -43
@@ -17,28 +17,37 @@ Shindo.tests('Slicehost::Compute | slice requests', ['slicehost']) do
|
|
17
17
|
@slice_id = nil
|
18
18
|
|
19
19
|
tests("#create_slice(1, 19, 'fogcreateslice')").formats(@slice_format.merge('root-password' => String)) do
|
20
|
+
pending if Fog.mocking?
|
20
21
|
data = Slicehost[:compute].create_slice(1, 19, 'fogcreateslice').body
|
21
22
|
@slice_id = data['id']
|
22
23
|
data
|
23
24
|
end
|
24
25
|
|
25
|
-
|
26
|
+
unless Fog.mocking?
|
27
|
+
Slicehost[:compute].servers.get(@slice_id).wait_for { ready? }
|
28
|
+
end
|
26
29
|
|
27
30
|
tests("#get_slice(#{@slice_id})").formats(@slice_format) do
|
31
|
+
pending if Fog.mocking?
|
28
32
|
Slicehost[:compute].get_slice(@slice_id).body
|
29
33
|
end
|
30
34
|
|
31
35
|
tests("#get_slices").formats({'slices' => [@slice_format]}) do
|
36
|
+
pending if Fog.mocking?
|
32
37
|
Slicehost[:compute].get_slices.body
|
33
38
|
end
|
34
39
|
|
35
40
|
tests("#reboot_slice(#{@slice_id})").formats(@slice_format) do
|
41
|
+
pending if Fog.mocking?
|
36
42
|
Slicehost[:compute].reboot_slice(@slice_id).body
|
37
43
|
end
|
38
44
|
|
39
|
-
|
45
|
+
unless Fog.mocking?
|
46
|
+
Slicehost[:compute].servers.get(@slice_id).wait_for { ready? }
|
47
|
+
end
|
40
48
|
|
41
49
|
tests("#delete_slice(#{@slice_id})").succeeds do
|
50
|
+
pending if Fog.mocking?
|
42
51
|
Slicehost[:compute].delete_slice(@slice_id)
|
43
52
|
end
|
44
53
|
|
@@ -47,14 +56,17 @@ Shindo.tests('Slicehost::Compute | slice requests', ['slicehost']) do
|
|
47
56
|
tests('failure') do
|
48
57
|
|
49
58
|
tests('#get_slice(0)').raises(Excon::Errors::Forbidden) do
|
59
|
+
pending if Fog.mocking?
|
50
60
|
Slicehost[:compute].get_slice(0)
|
51
61
|
end
|
52
62
|
|
53
63
|
tests('#reboot_slice(0)').raises(Excon::Errors::Forbidden) do
|
64
|
+
pending if Fog.mocking?
|
54
65
|
Slicehost[:compute].reboot_slice(0)
|
55
66
|
end
|
56
67
|
|
57
68
|
tests('#delete_slice(0)').raises(Fog::Slicehost::Compute::NotFound) do
|
69
|
+
pending if Fog.mocking?
|
58
70
|
Slicehost[:compute].delete_slice(0)
|
59
71
|
end
|
60
72
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 0.3.
|
8
|
+
- 8
|
9
|
+
version: 0.3.8
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- geemus (Wesley Beary)
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-10-14 00:00:00 -07:00
|
18
18
|
default_executable: fog
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -39,8 +39,8 @@ dependencies:
|
|
39
39
|
segments:
|
40
40
|
- 0
|
41
41
|
- 2
|
42
|
-
-
|
43
|
-
version: 0.2.
|
42
|
+
- 4
|
43
|
+
version: 0.2.4
|
44
44
|
requirement: *id002
|
45
45
|
name: excon
|
46
46
|
- !ruby/object:Gem::Dependency
|
@@ -156,8 +156,8 @@ dependencies:
|
|
156
156
|
segments:
|
157
157
|
- 0
|
158
158
|
- 1
|
159
|
-
-
|
160
|
-
version: 0.1.
|
159
|
+
- 7
|
160
|
+
version: 0.1.7
|
161
161
|
requirement: *id011
|
162
162
|
name: shindo
|
163
163
|
description: The Ruby cloud computing library.
|
@@ -180,7 +180,6 @@ files:
|
|
180
180
|
- examples/bluebox_create.rb
|
181
181
|
- fog.gemspec
|
182
182
|
- lib/fog.rb
|
183
|
-
- lib/fog/attributes.rb
|
184
183
|
- lib/fog/aws.rb
|
185
184
|
- lib/fog/aws/bin.rb
|
186
185
|
- lib/fog/aws/compute.rb
|
@@ -200,6 +199,8 @@ files:
|
|
200
199
|
- lib/fog/aws/models/compute/servers.rb
|
201
200
|
- lib/fog/aws/models/compute/snapshot.rb
|
202
201
|
- lib/fog/aws/models/compute/snapshots.rb
|
202
|
+
- lib/fog/aws/models/compute/tag.rb
|
203
|
+
- lib/fog/aws/models/compute/tags.rb
|
203
204
|
- lib/fog/aws/models/compute/volume.rb
|
204
205
|
- lib/fog/aws/models/compute/volumes.rb
|
205
206
|
- lib/fog/aws/models/storage/directories.rb
|
@@ -223,6 +224,7 @@ files:
|
|
223
224
|
- lib/fog/aws/parsers/compute/describe_reserved_instances.rb
|
224
225
|
- lib/fog/aws/parsers/compute/describe_security_groups.rb
|
225
226
|
- lib/fog/aws/parsers/compute/describe_snapshots.rb
|
227
|
+
- lib/fog/aws/parsers/compute/describe_tags.rb
|
226
228
|
- lib/fog/aws/parsers/compute/describe_volumes.rb
|
227
229
|
- lib/fog/aws/parsers/compute/detach_volume.rb
|
228
230
|
- lib/fog/aws/parsers/compute/get_console_output.rb
|
@@ -261,10 +263,12 @@ files:
|
|
261
263
|
- lib/fog/aws/requests/compute/create_key_pair.rb
|
262
264
|
- lib/fog/aws/requests/compute/create_security_group.rb
|
263
265
|
- lib/fog/aws/requests/compute/create_snapshot.rb
|
266
|
+
- lib/fog/aws/requests/compute/create_tags.rb
|
264
267
|
- lib/fog/aws/requests/compute/create_volume.rb
|
265
268
|
- lib/fog/aws/requests/compute/delete_key_pair.rb
|
266
269
|
- lib/fog/aws/requests/compute/delete_security_group.rb
|
267
270
|
- lib/fog/aws/requests/compute/delete_snapshot.rb
|
271
|
+
- lib/fog/aws/requests/compute/delete_tags.rb
|
268
272
|
- lib/fog/aws/requests/compute/delete_volume.rb
|
269
273
|
- lib/fog/aws/requests/compute/deregister_image.rb
|
270
274
|
- lib/fog/aws/requests/compute/describe_addresses.rb
|
@@ -276,6 +280,7 @@ files:
|
|
276
280
|
- lib/fog/aws/requests/compute/describe_reserved_instances.rb
|
277
281
|
- lib/fog/aws/requests/compute/describe_security_groups.rb
|
278
282
|
- lib/fog/aws/requests/compute/describe_snapshots.rb
|
283
|
+
- lib/fog/aws/requests/compute/describe_tags.rb
|
279
284
|
- lib/fog/aws/requests/compute/describe_volumes.rb
|
280
285
|
- lib/fog/aws/requests/compute/detach_volume.rb
|
281
286
|
- lib/fog/aws/requests/compute/disassociate_address.rb
|
@@ -334,7 +339,6 @@ files:
|
|
334
339
|
- lib/fog/aws/s3.rb
|
335
340
|
- lib/fog/aws/simpledb.rb
|
336
341
|
- lib/fog/aws/storage.rb
|
337
|
-
- lib/fog/bin.rb
|
338
342
|
- lib/fog/bluebox.rb
|
339
343
|
- lib/fog/bluebox/bin.rb
|
340
344
|
- lib/fog/bluebox/compute.rb
|
@@ -353,15 +357,29 @@ files:
|
|
353
357
|
- lib/fog/bluebox/requests/compute/get_template.rb
|
354
358
|
- lib/fog/bluebox/requests/compute/get_templates.rb
|
355
359
|
- lib/fog/bluebox/requests/compute/reboot_block.rb
|
356
|
-
- lib/fog/
|
357
|
-
- lib/fog/
|
358
|
-
- lib/fog/
|
359
|
-
- lib/fog/
|
360
|
-
- lib/fog/
|
360
|
+
- lib/fog/core.rb
|
361
|
+
- lib/fog/core/attributes.rb
|
362
|
+
- lib/fog/core/bin.rb
|
363
|
+
- lib/fog/core/collection.rb
|
364
|
+
- lib/fog/core/connection.rb
|
365
|
+
- lib/fog/core/credentials.rb
|
366
|
+
- lib/fog/core/deprecation.rb
|
367
|
+
- lib/fog/core/errors.rb
|
368
|
+
- lib/fog/core/hmac.rb
|
369
|
+
- lib/fog/core/model.rb
|
370
|
+
- lib/fog/core/parser.rb
|
371
|
+
- lib/fog/core/provider.rb
|
372
|
+
- lib/fog/core/service.rb
|
373
|
+
- lib/fog/core/ssh.rb
|
361
374
|
- lib/fog/go_grid.rb
|
362
375
|
- lib/fog/go_grid/bin.rb
|
363
376
|
- lib/fog/go_grid/compute.rb
|
377
|
+
- lib/fog/go_grid/models/compute/image.rb
|
378
|
+
- lib/fog/go_grid/models/compute/images.rb
|
379
|
+
- lib/fog/go_grid/models/compute/server.rb
|
380
|
+
- lib/fog/go_grid/models/compute/servers.rb
|
364
381
|
- lib/fog/go_grid/requests/compute/common_lookup_list.rb
|
382
|
+
- lib/fog/go_grid/requests/compute/grid_image_get.rb
|
365
383
|
- lib/fog/go_grid/requests/compute/grid_image_list.rb
|
366
384
|
- lib/fog/go_grid/requests/compute/grid_ip_list.rb
|
367
385
|
- lib/fog/go_grid/requests/compute/grid_loadbalancer_list.rb
|
@@ -400,7 +418,6 @@ files:
|
|
400
418
|
- lib/fog/google/requests/storage/put_object.rb
|
401
419
|
- lib/fog/google/requests/storage/put_object_url.rb
|
402
420
|
- lib/fog/google/storage.rb
|
403
|
-
- lib/fog/hmac.rb
|
404
421
|
- lib/fog/linode.rb
|
405
422
|
- lib/fog/linode/bin.rb
|
406
423
|
- lib/fog/linode/compute.rb
|
@@ -420,7 +437,6 @@ files:
|
|
420
437
|
- lib/fog/local/models/storage/file.rb
|
421
438
|
- lib/fog/local/models/storage/files.rb
|
422
439
|
- lib/fog/local/storage.rb
|
423
|
-
- lib/fog/model.rb
|
424
440
|
- lib/fog/new_servers.rb
|
425
441
|
- lib/fog/new_servers/bin.rb
|
426
442
|
- lib/fog/new_servers/compute.rb
|
@@ -431,8 +447,6 @@ files:
|
|
431
447
|
- lib/fog/new_servers/requests/compute/list_plans.rb
|
432
448
|
- lib/fog/new_servers/requests/compute/list_servers.rb
|
433
449
|
- lib/fog/new_servers/requests/compute/reboot_server.rb
|
434
|
-
- lib/fog/parser.rb
|
435
|
-
- lib/fog/provider.rb
|
436
450
|
- lib/fog/rackspace.rb
|
437
451
|
- lib/fog/rackspace/bin.rb
|
438
452
|
- lib/fog/rackspace/compute.rb
|
@@ -477,7 +491,6 @@ files:
|
|
477
491
|
- lib/fog/rackspace/requests/storage/put_object.rb
|
478
492
|
- lib/fog/rackspace/servers.rb
|
479
493
|
- lib/fog/rackspace/storage.rb
|
480
|
-
- lib/fog/service.rb
|
481
494
|
- lib/fog/slicehost.rb
|
482
495
|
- lib/fog/slicehost/bin.rb
|
483
496
|
- lib/fog/slicehost/compute.rb
|
@@ -505,7 +518,6 @@ files:
|
|
505
518
|
- lib/fog/slicehost/requests/compute/get_slice.rb
|
506
519
|
- lib/fog/slicehost/requests/compute/get_slices.rb
|
507
520
|
- lib/fog/slicehost/requests/compute/reboot_slice.rb
|
508
|
-
- lib/fog/ssh.rb
|
509
521
|
- lib/fog/terremark.rb
|
510
522
|
- lib/fog/terremark/bin.rb
|
511
523
|
- lib/fog/terremark/ecloud.rb
|
@@ -665,16 +677,9 @@ files:
|
|
665
677
|
- spec/aws/requests/simpledb/put_attributes_spec.rb
|
666
678
|
- spec/aws/requests/simpledb/select_spec.rb
|
667
679
|
- spec/aws/requests/storage/copy_object_spec.rb
|
668
|
-
- spec/aws/requests/storage/delete_bucket_spec.rb
|
669
|
-
- spec/aws/requests/storage/delete_object_spec.rb
|
670
680
|
- spec/aws/requests/storage/get_bucket_location_spec.rb
|
671
681
|
- spec/aws/requests/storage/get_bucket_spec.rb
|
672
|
-
- spec/aws/requests/storage/get_object_spec.rb
|
673
682
|
- spec/aws/requests/storage/get_request_payment_spec.rb
|
674
|
-
- spec/aws/requests/storage/get_service_spec.rb
|
675
|
-
- spec/aws/requests/storage/head_object_spec.rb
|
676
|
-
- spec/aws/requests/storage/put_bucket_spec.rb
|
677
|
-
- spec/aws/requests/storage/put_object_spec.rb
|
678
683
|
- spec/aws/requests/storage/put_request_payment_spec.rb
|
679
684
|
- spec/bluebox/models/compute/flavors_spec.rb
|
680
685
|
- spec/bluebox/models/compute/server_spec.rb
|
@@ -741,6 +746,9 @@ files:
|
|
741
746
|
- spec/vcloud/terremark/ecloud/requests/configure_node_spec.rb
|
742
747
|
- spec/vcloud/terremark/ecloud/requests/delete_internet_service_spec.rb
|
743
748
|
- spec/vcloud/terremark/ecloud/requests/delete_node_spec.rb
|
749
|
+
- spec/vcloud/terremark/ecloud/requests/get_catalog_item_spec.rb
|
750
|
+
- spec/vcloud/terremark/ecloud/requests/get_catalog_spec.rb
|
751
|
+
- spec/vcloud/terremark/ecloud/requests/get_customization_options_spec.rb
|
744
752
|
- spec/vcloud/terremark/ecloud/requests/get_internet_services_spec.rb
|
745
753
|
- spec/vcloud/terremark/ecloud/requests/get_network_ip_spec.rb
|
746
754
|
- spec/vcloud/terremark/ecloud/requests/get_network_ips_spec.rb
|
@@ -750,6 +758,7 @@ files:
|
|
750
758
|
- spec/vcloud/terremark/ecloud/requests/get_public_ip_spec.rb
|
751
759
|
- spec/vcloud/terremark/ecloud/requests/get_public_ips_spec.rb
|
752
760
|
- spec/vcloud/terremark/ecloud/requests/get_vdc_spec.rb
|
761
|
+
- spec/vcloud/terremark/ecloud/requests/instantiate_vapp_template_spec.rb
|
753
762
|
- spec/vcloud/terremark/ecloud/requests/login_spec.rb
|
754
763
|
- spec/vcloud/vcloud_spec.rb
|
755
764
|
- tests/aws/helper.rb
|
@@ -762,11 +771,16 @@ files:
|
|
762
771
|
- tests/aws/requests/compute/region_tests.rb
|
763
772
|
- tests/aws/requests/compute/security_group_tests.rb
|
764
773
|
- tests/aws/requests/compute/snapshot_tests.rb
|
774
|
+
- tests/aws/requests/compute/tag_tests.rb
|
765
775
|
- tests/aws/requests/compute/volume_tests.rb
|
776
|
+
- tests/aws/requests/storage/bucket_tests.rb
|
777
|
+
- tests/aws/requests/storage/object_tests.rb
|
766
778
|
- tests/bluebox/helper.rb
|
767
779
|
- tests/bluebox/requests/compute/block_tests.rb
|
768
780
|
- tests/bluebox/requests/compute/product_tests.rb
|
769
781
|
- tests/bluebox/requests/compute/template_tests.rb
|
782
|
+
- tests/go_grid/helper.rb
|
783
|
+
- tests/go_grid/requests/compute/image_tests.rb
|
770
784
|
- tests/helper.rb
|
771
785
|
- tests/helper_tests.rb
|
772
786
|
- tests/helpers/model_helper.rb
|
@@ -775,6 +789,7 @@ files:
|
|
775
789
|
- tests/linode/requests/compute/distribution_tests.rb
|
776
790
|
- tests/linode/requests/compute/linode_tests.rb
|
777
791
|
- tests/linode/requests/compute/linodeplans_tests.rb
|
792
|
+
- tests/lorem.txt
|
778
793
|
- tests/rackspace/helper.rb
|
779
794
|
- tests/rackspace/requests/compute/address_tests.rb
|
780
795
|
- tests/rackspace/requests/compute/flavor_tests.rb
|
@@ -1,35 +0,0 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/../../../spec_helper'
|
2
|
-
|
3
|
-
describe 'Storage.delete_bucket' do
|
4
|
-
describe 'success' do
|
5
|
-
|
6
|
-
before(:each) do
|
7
|
-
AWS[:storage].put_bucket('fogdeletebucket')
|
8
|
-
end
|
9
|
-
|
10
|
-
it 'should return proper attributes' do
|
11
|
-
actual = AWS[:storage].delete_bucket('fogdeletebucket')
|
12
|
-
actual.status.should == 204
|
13
|
-
end
|
14
|
-
|
15
|
-
end
|
16
|
-
describe 'failure' do
|
17
|
-
|
18
|
-
it 'should raise a NotFound error if the bucket does not exist' do
|
19
|
-
lambda {
|
20
|
-
AWS[:storage].delete_bucket('fognotabucket')
|
21
|
-
}.should raise_error(Excon::Errors::NotFound)
|
22
|
-
end
|
23
|
-
|
24
|
-
it 'should raise a Conflict error if the bucket is not empty' do
|
25
|
-
AWS[:storage].put_bucket('fogdeletebucket')
|
26
|
-
AWS[:storage].put_object('fogdeletebucket', 'fog_delete_object', lorem_file)
|
27
|
-
lambda {
|
28
|
-
AWS[:storage].delete_bucket('fogdeletebucket')
|
29
|
-
}.should raise_error(Excon::Errors::Conflict)
|
30
|
-
AWS[:storage].delete_object('fogdeletebucket', 'fog_delete_object')
|
31
|
-
AWS[:storage].delete_bucket('fogdeletebucket')
|
32
|
-
end
|
33
|
-
|
34
|
-
end
|
35
|
-
end
|
@@ -1,36 +0,0 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/../../../spec_helper'
|
2
|
-
|
3
|
-
describe 'Storage.delete_object' do
|
4
|
-
describe 'success' do
|
5
|
-
|
6
|
-
before(:each) do
|
7
|
-
AWS[:storage].put_bucket('fogdeleteobject')
|
8
|
-
AWS[:storage].put_object('fogdeleteobject', 'fog_delete_object', lorem_file)
|
9
|
-
end
|
10
|
-
|
11
|
-
after(:each) do
|
12
|
-
AWS[:storage].delete_bucket('fogdeleteobject')
|
13
|
-
end
|
14
|
-
|
15
|
-
it 'should return proper attributes' do
|
16
|
-
actual = AWS[:storage].delete_object('fogdeleteobject', 'fog_delete_object')
|
17
|
-
actual.status.should == 204
|
18
|
-
end
|
19
|
-
|
20
|
-
end
|
21
|
-
describe 'failure' do
|
22
|
-
|
23
|
-
it 'should raise a NotFound error if the bucket does not exist' do
|
24
|
-
lambda {
|
25
|
-
AWS[:storage].delete_object('fognotabucket', 'fog_delete_object')
|
26
|
-
}.should raise_error(Excon::Errors::NotFound)
|
27
|
-
end
|
28
|
-
|
29
|
-
it 'should not raise an error if the object does not exist' do
|
30
|
-
AWS[:storage].put_bucket('fogdeleteobject')
|
31
|
-
AWS[:storage].delete_object('fogdeleteobject', 'fog_not_an_object')
|
32
|
-
AWS[:storage].delete_bucket('fogdeleteobject')
|
33
|
-
end
|
34
|
-
|
35
|
-
end
|
36
|
-
end
|
@@ -1,58 +0,0 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/../../../spec_helper'
|
2
|
-
|
3
|
-
describe 'Storage.get_object' do
|
4
|
-
describe 'success' do
|
5
|
-
|
6
|
-
before(:each) do
|
7
|
-
AWS[:storage].put_bucket('foggetobject')
|
8
|
-
AWS[:storage].put_object('foggetobject', 'fog_get_object', lorem_file)
|
9
|
-
end
|
10
|
-
|
11
|
-
after(:each) do
|
12
|
-
AWS[:storage].delete_object('foggetobject', 'fog_get_object')
|
13
|
-
AWS[:storage].delete_bucket('foggetobject')
|
14
|
-
end
|
15
|
-
|
16
|
-
it 'should return proper attributes' do
|
17
|
-
actual = AWS[:storage].get_object('foggetobject', 'fog_get_object')
|
18
|
-
actual.status.should == 200
|
19
|
-
data = lorem_file.read
|
20
|
-
actual.body.should == data
|
21
|
-
actual.headers['Content-Length'].should == data.length.to_s
|
22
|
-
actual.headers['Content-Type'].should be_a(String)
|
23
|
-
actual.headers['ETag'].should be_a(String)
|
24
|
-
actual.headers['Last-Modified'].should be_a(String)
|
25
|
-
end
|
26
|
-
|
27
|
-
it 'should return chunks with optional block' do
|
28
|
-
data = ''
|
29
|
-
AWS[:storage].get_object('foggetobject', 'fog_get_object') do |chunk|
|
30
|
-
data << chunk
|
31
|
-
end
|
32
|
-
data.should == lorem_file.read
|
33
|
-
end
|
34
|
-
|
35
|
-
it 'should return a signed expiring url' do
|
36
|
-
url = AWS[:storage].get_object_url('foggetobject', 'fog_get_object', Time.now + 60 * 10)
|
37
|
-
unless Fog.mocking?
|
38
|
-
open(url).read.should == lorem_file.read
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
end
|
43
|
-
describe 'failure' do
|
44
|
-
|
45
|
-
it 'should raise a NotFound error if the bucket does not exist' do
|
46
|
-
lambda {
|
47
|
-
AWS[:storage].get_object('fognotabucket', 'fog_get_object')
|
48
|
-
}.should raise_error(Excon::Errors::NotFound)
|
49
|
-
end
|
50
|
-
|
51
|
-
it 'should raise a NotFound error if the object does not exist' do
|
52
|
-
lambda {
|
53
|
-
AWS[:storage].get_object('foggetobject', 'fog_not_an_object')
|
54
|
-
}.should raise_error(Excon::Errors::NotFound)
|
55
|
-
end
|
56
|
-
|
57
|
-
end
|
58
|
-
end
|
@@ -1,32 +0,0 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/../../../spec_helper'
|
2
|
-
|
3
|
-
describe 'Storage.get_service' do
|
4
|
-
describe 'success' do
|
5
|
-
|
6
|
-
before(:all) do
|
7
|
-
AWS[:storage].put_bucket('foggetservice')
|
8
|
-
Fog.wait_for { AWS[:storage].directories.get('foggetservice') }
|
9
|
-
end
|
10
|
-
|
11
|
-
after(:all) do
|
12
|
-
AWS[:storage].delete_bucket('foggetservice')
|
13
|
-
end
|
14
|
-
|
15
|
-
it 'should return proper_attributes' do
|
16
|
-
actual = AWS[:storage].get_service
|
17
|
-
actual.body['Buckets'].should be_an(Array)
|
18
|
-
bucket = actual.body['Buckets'].select {|bucket| bucket['Name'] == 'foggetservice'}.first
|
19
|
-
bucket['CreationDate'].should be_a(Time)
|
20
|
-
bucket['Name'].should == 'foggetservice'
|
21
|
-
owner = actual.body['Owner']
|
22
|
-
owner['DisplayName'].should be_a(String)
|
23
|
-
owner['ID'].should be_a(String)
|
24
|
-
end
|
25
|
-
|
26
|
-
it 'should include foggetservice in get_service' do
|
27
|
-
actual = AWS[:storage].get_service
|
28
|
-
actual.body['Buckets'].collect { |bucket| bucket['Name'] }.should include('foggetservice')
|
29
|
-
end
|
30
|
-
|
31
|
-
end
|
32
|
-
end
|
@@ -1,26 +0,0 @@
|
|
1
|
-
require File.dirname(__FILE__) + '/../../../spec_helper'
|
2
|
-
|
3
|
-
describe 'Storage.head_object' do
|
4
|
-
describe 'success' do
|
5
|
-
|
6
|
-
before(:each) do
|
7
|
-
AWS[:storage].put_bucket('fogheadobject')
|
8
|
-
AWS[:storage].put_object('fogheadobject', 'fog_head_object', lorem_file)
|
9
|
-
end
|
10
|
-
|
11
|
-
after(:each) do
|
12
|
-
AWS[:storage].delete_object('fogheadobject', 'fog_head_object')
|
13
|
-
AWS[:storage].delete_bucket('fogheadobject')
|
14
|
-
end
|
15
|
-
|
16
|
-
it 'should return proper attributes' do
|
17
|
-
actual = AWS[:storage].head_object('fogheadobject', 'fog_head_object')
|
18
|
-
actual.status.should == 200
|
19
|
-
data = lorem_file.read
|
20
|
-
actual.headers['Content-Length'].should == data.length.to_s
|
21
|
-
actual.headers['ETag'].should be_a(String)
|
22
|
-
actual.headers['Last-Modified'].should be_a(String)
|
23
|
-
end
|
24
|
-
|
25
|
-
end
|
26
|
-
end
|