Sha256: bb473dafcf2373fed76b18f48a33e4408d2298036f12ccd73172495df21b54e4

Contents?: true

Size: 462 Bytes

Versions: 5

Compression:

Stored size: 462 Bytes

Contents

module Fog
  module Identity
    class OpenStack
      class Real

        def list_roles
          request(
            :expects => 200,
            :method => 'GET',
            :path   => '/OS-KSADM/roles'
          )
        end

      end

      class Mock

        def list_roles
          Excon::Response.new(
            :body   => { 'roles' => self.data[:roles].values },
            :status => 200
          )
        end

      end
    end
  end
end

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
fog-parser-fix-1.6.1 lib/fog/openstack/requests/identity/list_roles.rb
fog-test-again-1.6.0 lib/fog/openstack/requests/identity/list_roles.rb
fog-parser-fix-1.6.0 lib/fog/openstack/requests/identity/list_roles.rb
fog-1.6.0 lib/fog/openstack/requests/identity/list_roles.rb
fog-1.5.0 lib/fog/openstack/requests/identity/list_roles.rb