Sha256: 6a3f0a60c1d07c08716ab7f9d0540aa150645d56e41285378aea74cb9190121d

Contents?: true

Size: 589 Bytes

Versions: 39

Compression:

Stored size: 589 Bytes

Contents

module Fog
  module Workflow
    class OpenStack
      class V2
        class Real
          def get_task(id)
            request(
              :expects => 200,
              :method  => "GET",
              :path    => "tasks/#{id}"
            )
          end
        end

        class Mock
          def get_task(_id)
            response = Excon::Response.new
            response.status = 200
            response.body = {"version" => "2.0",
                             "task1"   => {"id" => ['test_id']}}
            response
          end
        end
      end
    end
  end
end

Version data entries

39 entries across 37 versions & 3 rubygems

Version Path
fog-openstack-0.1.31 lib/fog/workflow/openstack/v2/requests/get_task.rb
fog-openstack-0.3.10 lib/fog/workflow/openstack/v2/requests/get_task.rb
fog-openstack-0.1.30 lib/fog/workflow/openstack/v2/requests/get_task.rb
fog-openstack-0.1.29 lib/fog/workflow/openstack/v2/requests/get_task.rb
fog-openstack-0.3.9 lib/fog/workflow/openstack/v2/requests/get_task.rb
fog-openstack-0.1.28 lib/fog/workflow/openstack/v2/requests/get_task.rb
fog-openstack-0.3.8 lib/fog/workflow/openstack/v2/requests/get_task.rb
fog-openstack-0.3.7 lib/fog/workflow/openstack/v2/requests/get_task.rb
fog-openstack-0.3.6 lib/fog/workflow/openstack/v2/requests/get_task.rb
fog-openstack-0.3.5 lib/fog/workflow/openstack/v2/requests/get_task.rb
fog-openstack-0.3.4 lib/fog/workflow/openstack/v2/requests/get_task.rb
fog-openstack-0.3.3 lib/fog/workflow/openstack/v2/requests/get_task.rb
fog-openstack-0.3.2 lib/fog/workflow/openstack/v2/requests/get_task.rb
fog-openstack-0.3.0 lib/fog/workflow/openstack/v2/requests/get_task.rb
fog-openstack-0.2.4 lib/fog/workflow/openstack/v2/requests/get_task.rb
fog-openstack-0.2.3 lib/fog/workflow/openstack/v2/requests/get_task.rb
fog-openstack-0.2.2 lib/fog/workflow/openstack/v2/requests/get_task.rb
fog-openstack-0.2.1 lib/fog/workflow/openstack/v2/requests/get_task.rb
fog-openstack-0.2.0 lib/fog/workflow/openstack/v2/requests/get_task.rb
fog-zj-0.1.28 lib/fog/workflow/openstack/v2/requests/get_task.rb