mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Merge pull request #2128 from mattgillooly/fix_aws_data_pipeline_delete_pipeline
AWS Data Pipeline delete endpoint does not return a JSON body string
This commit is contained in:
commit
c1cf68d4ce
2 changed files with 3 additions and 4 deletions
|
@ -9,8 +9,7 @@ module Fog
|
|||
# ==== Parameters
|
||||
# * PipelineId <~String> - The id of the pipeline to delete
|
||||
# ==== Returns
|
||||
# * response<~Excon::Response>:
|
||||
# * body<~Hash>:
|
||||
# * success<~Boolean> - Whether the delete was successful
|
||||
def delete_pipeline(id)
|
||||
params = { 'pipelineId' => id }
|
||||
|
||||
|
@ -19,7 +18,7 @@ module Fog
|
|||
:headers => { 'X-Amz-Target' => 'DataPipeline.DeletePipeline' },
|
||||
})
|
||||
|
||||
Fog::JSON.decode(response.body)
|
||||
200 == response.status
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -46,7 +46,7 @@ Shindo.tests('AWS::DataPipeline | pipeline_tests', ['aws', 'data_pipeline']) do
|
|||
Fog::AWS[:data_pipeline].activate_pipeline(@pipeline_id)
|
||||
end
|
||||
|
||||
tests("#delete_pipeline") do
|
||||
tests("#delete_pipeline").returns(true) do
|
||||
Fog::AWS[:data_pipeline].delete_pipeline(@pipeline_id)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue