diff --git a/lib/fog/google/compute.rb b/lib/fog/google/compute.rb index 20d372370..4433392b3 100644 --- a/lib/fog/google/compute.rb +++ b/lib/fog/google/compute.rb @@ -15,7 +15,6 @@ module Fog request :list_disks request :list_firewalls request :list_images - request :list_kernels request :list_machine_types request :list_networks request :list_operations @@ -25,7 +24,6 @@ module Fog request :get_disk request :get_firewall request :get_image - request :get_kernel request :get_machine_type request :get_network request :get_operation @@ -99,6 +97,7 @@ module Fog def build_result(api_method, parameters, body_object=nil) if body_object + #p api_method, parameters result = @client.execute( :api_method => api_method, :parameters => parameters, diff --git a/lib/fog/google/requests/compute/get_kernel.rb b/lib/fog/google/requests/compute/get_kernel.rb deleted file mode 100644 index 56a3bba25..000000000 --- a/lib/fog/google/requests/compute/get_kernel.rb +++ /dev/null @@ -1,30 +0,0 @@ -module Fog - module Compute - class Google - - class Mock - - def get_kernel(kernel_name) - Fog::Mock.not_implemented - end - - end - - class Real - - def get_kernel(kernel_name) - api_method = @compute.kernels.get - parameters = { - 'project' => 'google', - 'kernel' => kernel_name - } - - result = self.build_result(api_method, parameters) - response = self.build_response(result) - end - - end - - end - end -end diff --git a/lib/fog/google/requests/compute/list_kernels.rb b/lib/fog/google/requests/compute/list_kernels.rb deleted file mode 100644 index ff9c6357b..000000000 --- a/lib/fog/google/requests/compute/list_kernels.rb +++ /dev/null @@ -1,29 +0,0 @@ -module Fog - module Compute - class Google - - class Mock - - def list_kernels - Fog::Mock.not_implemented - end - - end - - class Real - - def list_kernels - api_method = @compute.kernels.list - parameters = { - 'project' => 'google' - } - - result = self.build_result(api_method, parameters) - response = self.build_response(result) - end - - end - - end - end -end diff --git a/tests/google/requests/compute/kernel_tests.rb b/tests/google/requests/compute/kernel_tests.rb deleted file mode 100644 index d97818e07..000000000 --- a/tests/google/requests/compute/kernel_tests.rb +++ /dev/null @@ -1,34 +0,0 @@ -Shindo.tests('Fog::Compute[:google] | kernel requests', ['google']) do - - @google = Fog::Compute[:google] - - @get_kernel_format = { - 'kind' => String, - 'id' => String, - 'selfLink' => String, - 'creationTimestamp' => String, - 'name' => String, - 'description' => String - } - - @list_kernels_format = { - 'kind' => String, - 'id' => String, - 'selfLink' => String, - 'items' => [] - } - - tests('success') do - - tests("#get_kernel").formats(@get_kernel_format) do - kernel_name = @google.list_kernels.body["items"][0]["name"] - @google.get_kernel(kernel_name).body - end - - tests("#list_kernels").formats(@list_kernels_format) do - @google.list_kernels.body - end - - end - -end