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
@@ -0,0 +1,53 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # This example demonstrates deleting a queue with the Rackpace Open Cloud
4
+
5
+ require 'rubygems' #required for Ruby 1.8.x
6
+ require 'fog'
7
+
8
+ def get_user_input(prompt)
9
+ print "#{prompt}: "
10
+ gets.chomp
11
+ end
12
+
13
+ def select_queue(queues)
14
+ abort "\nThere are not any queues to delete in the Chicago region. Try running create_queue.rb\n\n" if queues.empty?
15
+
16
+ puts "\nSelect Queue To Delete:\n\n"
17
+ queues.each_with_index do |queue, i|
18
+ puts "\t #{i}. #{queue.name}"
19
+ end
20
+
21
+ delete_str = get_user_input "\nEnter Queue Number"
22
+ queues[delete_str.to_i]
23
+ end
24
+
25
+ # Use username defined in ~/.fog file, if absent prompt for username.
26
+ # For more details on ~/.fog refer to http://fog.io/about/getting_started.html
27
+ def rackspace_username
28
+ Fog.credentials[:rackspace_username] || get_user_input("Enter Rackspace Username")
29
+ end
30
+
31
+ # Use api key defined in ~/.fog file, if absent prompt for api key
32
+ # For more details on ~/.fog refer to http://fog.io/about/getting_started.html
33
+ def rackspace_api_key
34
+ Fog.credentials[:rackspace_api_key] || get_user_input("Enter Rackspace API key")
35
+ end
36
+
37
+ # create Queue Service
38
+ service = Fog::Rackspace::Queues.new({
39
+ :rackspace_username => rackspace_username,
40
+ :rackspace_api_key => rackspace_api_key,
41
+ :rackspace_region => :ord #Use Chicago Region
42
+ })
43
+
44
+ # retrieve list of queues
45
+ queues = service.queues
46
+
47
+ # prompt for queue to delete
48
+ queue = select_queue(queues)
49
+
50
+ # delete queue
51
+ queue.destroy
52
+
53
+ puts "\nQueue #{queue.name} has been destroyed\n"
@@ -0,0 +1,64 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # This example demonstrates listing messages in a queue with the Rackpace Open Cloud
4
+
5
+ require 'rubygems' #required for Ruby 1.8.x
6
+ require 'fog'
7
+
8
+ def get_user_input(prompt)
9
+ print "#{prompt}: "
10
+ gets.chomp
11
+ end
12
+
13
+ def get_user_boolean(prompt)
14
+ str = get_user_input(prompt)
15
+ return false unless str
16
+ str.match(/y(es)?/i) ? true : false
17
+ end
18
+
19
+ def select_queue(queues)
20
+ abort "\nThere are not any queues to post a message to in the Chicago region. Try running create_queue.rb\n\n" if queues.empty?
21
+
22
+ puts "\nSelect Queue:\n\n"
23
+ queues.each_with_index do |queue, i|
24
+ puts "\t #{i}. #{queue.name}"
25
+ end
26
+
27
+ delete_str = get_user_input "\nEnter Queue Number"
28
+ queues[delete_str.to_i]
29
+ end
30
+
31
+ # Use username defined in ~/.fog file, if absent prompt for username.
32
+ # For more details on ~/.fog refer to http://fog.io/about/getting_started.html
33
+ def rackspace_username
34
+ Fog.credentials[:rackspace_username] || get_user_input("Enter Rackspace Username")
35
+ end
36
+
37
+ # Use api key defined in ~/.fog file, if absent prompt for api key
38
+ # For more details on ~/.fog refer to http://fog.io/about/getting_started.html
39
+ def rackspace_api_key
40
+ Fog.credentials[:rackspace_api_key] || get_user_input("Enter Rackspace API key")
41
+ end
42
+
43
+ # create Queue Service
44
+ service = Fog::Rackspace::Queues.new({
45
+ :rackspace_username => rackspace_username,
46
+ :rackspace_api_key => rackspace_api_key,
47
+ :rackspace_region => :ord #Use Chicago Region
48
+ })
49
+
50
+ # retrieve list of queues
51
+ queues = service.queues
52
+
53
+ # prompt for queue to delete
54
+ queue = select_queue(queues)
55
+
56
+ queue.messages.echo = get_user_boolean "Do you want to include your own messages? [y/N]"
57
+
58
+ queue.messages.include_claimed = get_user_boolean "Do you want to include claimed messages? [y/N]"
59
+
60
+ puts "\n\nThe following messages are in the '#{queue.name}' queue:\n\n"
61
+
62
+ queue.messages.each do |message|
63
+ puts message.inspect
64
+ end
@@ -0,0 +1,59 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # This example demonstrates posting a message to a queue with the Rackpace Open Cloud
4
+
5
+ require 'rubygems' #required for Ruby 1.8.x
6
+ require 'fog'
7
+
8
+ def get_user_input(prompt)
9
+ print "#{prompt}: "
10
+ gets.chomp
11
+ end
12
+
13
+ def select_queue(queues)
14
+ abort "\nThere are not any queues to post a message to in the Chicago region. Try running create_queue.rb\n\n" if queues.empty?
15
+
16
+ puts "\nSelect Queue:\n\n"
17
+ queues.each_with_index do |queue, i|
18
+ puts "\t #{i}. #{queue.name}"
19
+ end
20
+
21
+ delete_str = get_user_input "\nEnter Queue Number"
22
+ queues[delete_str.to_i]
23
+ end
24
+
25
+ # Use username defined in ~/.fog file, if absent prompt for username.
26
+ # For more details on ~/.fog refer to http://fog.io/about/getting_started.html
27
+ def rackspace_username
28
+ Fog.credentials[:rackspace_username] || get_user_input("Enter Rackspace Username")
29
+ end
30
+
31
+ # Use api key defined in ~/.fog file, if absent prompt for api key
32
+ # For more details on ~/.fog refer to http://fog.io/about/getting_started.html
33
+ def rackspace_api_key
34
+ Fog.credentials[:rackspace_api_key] || get_user_input("Enter Rackspace API key")
35
+ end
36
+
37
+ # create Queue Service
38
+ service = Fog::Rackspace::Queues.new({
39
+ :rackspace_username => rackspace_username,
40
+ :rackspace_api_key => rackspace_api_key,
41
+ :rackspace_region => :ord #Use Chicago Region
42
+ })
43
+
44
+ # retrieve list of queues
45
+ queues = service.queues
46
+
47
+ # prompt for queue to delete
48
+ queue = select_queue(queues)
49
+
50
+ # prompt for queue message
51
+ message = get_user_input "Enter Queue Message"
52
+
53
+ # time to live TTL = 1 hour
54
+ ttl = 3600
55
+
56
+ # post message to queue
57
+ queue.messages.create :body => message, :ttl => ttl
58
+
59
+ puts "The message has been successfully posted"
@@ -12,6 +12,8 @@ module Fog
12
12
  attribute :limit
13
13
  attribute :messages
14
14
 
15
+ alias :id :identity
16
+
15
17
  def save
16
18
  if identity.nil?
17
19
  create
@@ -12,12 +12,12 @@ module Fog
12
12
  attribute :claim_id
13
13
 
14
14
  def identity
15
- if href
16
- href.split('/').last
17
- else
18
- nil
19
- end
15
+ return nil unless href
16
+
17
+ match = href.match(/(\/(\w+))*\??/)
18
+ match ? match[-1] : nil
20
19
  end
20
+ alias :id :identity
21
21
 
22
22
  def save
23
23
  requires :queue, :client_id, :body, :ttl
@@ -33,7 +33,7 @@ module Fog
33
33
 
34
34
  #Helper method to enqueue a single message
35
35
  def enqueue(body, ttl, options = {})
36
- messages.create(options.merge(options.merge({:body => body, :ttl => ttl})))
36
+ messages.create(options.merge({:body => body, :ttl => ttl}))
37
37
  end
38
38
 
39
39
  #Helper method to claim (dequeue) a single message, including destroying it
@@ -66,7 +66,7 @@ module Fog
66
66
  Fog::Rackspace.json_response?(response)
67
67
  begin
68
68
  response.body = Fog::JSON.decode(response.body)
69
- rescue MultiJson::DecodeError => e
69
+ rescue Fog::JSON::DecodeError => e
70
70
  Fog::Logger.warning("Error Parsing response json - #{e}")
71
71
  response.body = {}
72
72
  end
data/lib/fog/riakcs.rb CHANGED
@@ -71,9 +71,9 @@ module Fog
71
71
 
72
72
  module UserUtils
73
73
  def update_riakcs_user(key_id, user)
74
- response = @s3_connection.put_object('riak-cs', "user/#{key_id}", MultiJson.encode(user), { 'Content-Type' => 'application/json' })
74
+ response = @s3_connection.put_object('riak-cs', "user/#{key_id}", Fog::JSON.encode(user), { 'Content-Type' => 'application/json' })
75
75
  if !response.body.empty?
76
- response.body = MultiJson.decode(response.body)
76
+ response.body = Fog::JSON.decode(response.body)
77
77
  end
78
78
  response
79
79
  end
@@ -47,8 +47,6 @@ module Fog
47
47
  include Utils
48
48
 
49
49
  def initialize(options = {})
50
- require 'multi_json'
51
-
52
50
  configure_uri_options(options)
53
51
  @riakcs_access_key_id = options[:riakcs_access_key_id]
54
52
  @riakcs_secret_access_key = options[:riakcs_secret_access_key]
@@ -89,7 +87,7 @@ module Fog
89
87
  end
90
88
  end
91
89
  if !response.body.empty? && parse_response
92
- response.body = MultiJson.decode(response.body)
90
+ response.body = Fog::JSON.decode(response.body)
93
91
  end
94
92
  response
95
93
  end
@@ -3,7 +3,7 @@ module Fog
3
3
  class Provisioning
4
4
  class Real
5
5
  def create_user(email, name, options = {})
6
- payload = MultiJson.encode({ :email => email, :name => name })
6
+ payload = Fog::JSON.encode({ :email => email, :name => name })
7
7
  headers = { 'Content-Type' => 'application/json' }
8
8
 
9
9
  if(options[:anonymous])
@@ -20,7 +20,7 @@ module Fog
20
20
  if !response.body.empty?
21
21
  case response.headers['Content-Type']
22
22
  when 'application/json'
23
- response.body = MultiJson.decode(response.body)
23
+ response.body = Fog::JSON.decode(response.body)
24
24
  end
25
25
  end
26
26
  response
@@ -7,7 +7,7 @@ module Fog
7
7
 
8
8
  def get_user(key_id)
9
9
  response = @s3_connection.get_object('riak-cs', "user/#{key_id}", { 'Accept' => 'application/json' })
10
- response.body = MultiJson.decode(response.body)
10
+ response.body = Fog::JSON.decode(response.body)
11
11
  response
12
12
  end
13
13
  end
@@ -10,7 +10,7 @@ module Fog
10
10
 
11
11
  boundary = extract_boundary(response.headers['Content-Type'])
12
12
  parts = parse(response.body, boundary)
13
- decoded = parts.map { |part| MultiJson.decode(part[:body]) }
13
+ decoded = parts.map { |part| Fog::JSON.decode(part[:body]) }
14
14
 
15
15
  response.body = decoded.flatten
16
16
 
@@ -37,7 +37,7 @@ module Fog
37
37
  response = @connection.get_object('riak-cs', ["usage", request_uri(access_key_id, options)].join("/"))
38
38
 
39
39
  if !response.body.empty?
40
- response.body = MultiJson.decode(response.body)
40
+ response.body = Fog::JSON.decode(response.body)
41
41
  end
42
42
  response
43
43
  end
@@ -41,8 +41,6 @@ module Fog
41
41
  include Utils
42
42
 
43
43
  def initialize(options = {})
44
- require 'multi_json'
45
-
46
44
  configure_uri_options(options)
47
45
  @riakcs_access_key_id = options[:riakcs_access_key_id]
48
46
  @riakcs_secret_access_key = options[:riakcs_secret_access_key]
@@ -80,6 +80,7 @@ module Fog
80
80
  request :list_vm_customvalues
81
81
  request :list_customfields
82
82
  request :get_vm_first_scsi_controller
83
+ request :set_vm_customvalue
83
84
 
84
85
  module Shared
85
86
 
@@ -12,6 +12,7 @@ module Fog
12
12
  attribute :freespace
13
13
  attribute :accessible # reachable by at least one hypervisor
14
14
  attribute :capacity
15
+ attribute :uncommitted
15
16
 
16
17
  def to_s
17
18
  name
@@ -19,13 +19,14 @@ module Fog
19
19
 
20
20
  def datastore_attributes datastore, datacenter
21
21
  {
22
- :id => managed_obj_id(datastore),
23
- :name => datastore.name,
24
- :accessible => datastore.summary.accessible,
25
- :type => datastore.summary.type,
26
- :freespace => datastore.summary.freeSpace,
27
- :capacity => datastore.summary.capacity,
28
- :datacenter => datacenter,
22
+ :id => managed_obj_id(datastore),
23
+ :name => datastore.name,
24
+ :accessible => datastore.summary.accessible,
25
+ :type => datastore.summary.type,
26
+ :freespace => datastore.summary.freeSpace,
27
+ :capacity => datastore.summary.capacity,
28
+ :uncommitted => datastore.summary.uncommitted,
29
+ :datacenter => datacenter,
29
30
  }
30
31
  end
31
32
 
@@ -37,4 +38,4 @@ module Fog
37
38
  end
38
39
  end
39
40
  end
40
- end
41
+ end
@@ -0,0 +1,19 @@
1
+ module Fog
2
+ module Compute
3
+ class Vsphere
4
+ class Real
5
+ def set_vm_customvalue(vm_id, key, value)
6
+ vm_ref = get_vm_ref(vm_id)
7
+ vm_ref.setCustomValue(:key => key, :value => value)
8
+ end
9
+
10
+ end
11
+ class Mock
12
+ def set_vm_customvalue(vm_id, key, value)
13
+ nil
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
19
+
@@ -14,7 +14,6 @@ module Fog
14
14
  changelog << ('=' * changelog[0].length)
15
15
  changelog << ''
16
16
 
17
- require 'multi_json'
18
17
  github_repo_data = Fog::JSON.decode(Excon.get('https://api.github.com/repos/fog/fog', :headers => {'User-Agent' => 'geemus'}).body)
19
18
  data = github_repo_data.reject {|key, value| !['forks', 'open_issues', 'watchers'].include?(key)}
20
19
  github_collaborator_data = Fog::JSON.decode(Excon.get('https://api.github.com/repos/fog/fog/collaborators', :headers => {'User-Agent' => 'geemus'}).body)
@@ -0,0 +1,5 @@
1
+ Shindo.tests("Fog::Compute[:google] | disk model", ['google']) do
2
+
3
+ model_tests(Fog::Compute[:google].disks, {:name => 'fogdiskname', :zone_name => 'us-central1-a'})
4
+
5
+ end
@@ -0,0 +1,5 @@
1
+ Shindo.tests("Fog::Compute[:google] | disks", ['google']) do
2
+
3
+ collection_tests(Fog::Compute[:google].disks, {:name => 'fogdiskname', :zone_name => 'us-central1-a'})
4
+
5
+ end
@@ -1,5 +1,7 @@
1
1
  Shindo.tests("Fog::Compute[:google] | server model", ['google']) do
2
2
 
3
+ model_tests(Fog::Compute[:google].disks, {:name => 'fogservername', :zone_name => 'us-central1-a', :machine_type => 'n1-standard-1'})
4
+
3
5
  tests('servers') do
4
6
  @instance = nil
5
7
  test('#bootstrap') do
@@ -13,6 +15,7 @@ Shindo.tests("Fog::Compute[:google] | server model", ['google']) do
13
15
  end
14
16
 
15
17
  test('#ssh') do
18
+ pending if Fog.mocking?
16
19
  @instance.ssh("uname") == "Linux"
17
20
  end
18
21
 
@@ -0,0 +1,5 @@
1
+ Shindo.tests("Fog::Compute[:google] | servers", ['google']) do
2
+
3
+ collection_tests(Fog::Compute[:google].servers, {:name => 'fogservername', :zone_name => 'us-central1-a', :machine_type => 'n1-standard-1'})
4
+
5
+ end
@@ -65,10 +65,11 @@ Shindo.tests('Fog::Compute[:google] | disk requests', ['google']) do
65
65
  disk_name = 'new-disk-test'
66
66
  disk_size = '2'
67
67
  zone_name = 'us-central1-a'
68
+ image_name = 'centos-6-v20130813'
68
69
 
69
70
  # These will all fail if errors happen on insert
70
71
  tests("#insert_disk").formats(@insert_disk_format) do
71
- @google.insert_disk(disk_name, disk_size, zone_name).body
72
+ @google.insert_disk(disk_name, zone_name, image_name).body
72
73
  end
73
74
 
74
75
  tests("#get_disk").formats(@get_disk_format) do