Sha256: caf2a86a2e1c27b523924a0a94ad98d20f83465340eb60dc6f0328785633a54b

Contents?: true

Size: 645 Bytes

Versions: 42

Compression:

Stored size: 645 Bytes

Contents

module Fog
  module Workflow
    class OpenStack
      class V2
        class Real
          def validate_workflow(definition)
            body = Fog::JSON.encode(definition)
            request(
              :body    => body,
              :expects => 200,
              :method  => "POST",
              :path    => "workflows/validate"
            )
          end
        end

        class Mock
          def validate_workflow(_definition)
            response = Excon::Response.new
            response.status = 200
            response.body = "{\"valid\": true}"
            response
          end
        end
      end
    end
  end
end

Version data entries

42 entries across 40 versions & 3 rubygems

Version Path
fog-openstack-0.1.27 lib/fog/workflow/openstack/v2/requests/validate_workflow.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-openstack-0.1.26/lib/fog/workflow/openstack/v2/requests/validate_workflow.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-openstack-0.1.26/lib/fog/workflow/openstack/v2/requests/validate_workflow.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-openstack-0.1.26/lib/fog/workflow/openstack/v2/requests/validate_workflow.rb
fog-openstack-0.1.26 lib/fog/workflow/openstack/v2/requests/validate_workflow.rb
fog-openstack-0.1.25 lib/fog/workflow/openstack/v2/requests/validate_workflow.rb
fog-openstack-0.1.24 lib/fog/workflow/openstack/v2/requests/validate_workflow.rb
fog-openstack-0.1.23 lib/fog/workflow/openstack/v2/requests/validate_workflow.rb
fog-openstack-0.1.22 lib/fog/workflow/openstack/v2/requests/validate_workflow.rb
fog-openstack-0.1.21 lib/fog/workflow/openstack/v2/requests/validate_workflow.rb
fog-openstack-0.1.20 lib/fog/workflow/openstack/v2/requests/validate_workflow.rb
fog-openstack-0.1.19 lib/fog/workflow/openstack/v2/requests/validate_workflow.rb
fog-openstack-0.1.18 lib/fog/workflow/openstack/v2/requests/validate_workflow.rb
fog-openstack-0.1.17 lib/fog/workflow/openstack/v2/requests/validate_workflow.rb
fog-openstack-0.1.15 lib/fog/workflow/openstack/v2/requests/validate_workflow.rb
fog-openstack-0.1.14 lib/fog/workflow/openstack/v2/requests/validate_workflow.rb
fog-openstack-0.1.13 lib/fog/workflow/openstack/v2/requests/validate_workflow.rb
fog-openstack-0.1.12 lib/fog/workflow/openstack/v2/requests/validate_workflow.rb
fog-openstack-0.1.11 lib/fog/workflow/openstack/v2/requests/validate_workflow.rb
fog-openstack-0.1.10 lib/fog/openstack/requests/workflow_v2/validate_workflow.rb