Sha256: 1e60203bfc9c8697c6f90cd0755347382ccad9c11825ffd09194099220450f8a

Contents?: true

Size: 803 Bytes

Versions: 61

Compression:

Stored size: 803 Bytes

Contents

#
# Author:: Matt Eldridge (<matt.eldridge@us.ibm.com>)
# © Copyright IBM Corporation 2014.
#
# LICENSE: MIT (http://opensource.org/licenses/MIT)
#

Shindo.tests('Fog::Compute[:softlayer]', ['softlayer']) do

  @test_service = Fog::Compute[:softlayer]

end

Shindo.tests('Fog::Compute.new', ['softlayer']) do

  tests("service options") do
    {
      :softlayer_api_url => "https://example.com",
      :softlayer_username => "user-12345",
      :softlayer_api_key => "password1234",
    }.each_pair do |option, sample|
      tests("recognises :#{option}").returns(true) do
        options = {:provider => "Softlayer"}
        options[option] = sample
        begin
          Fog::Compute.new(options)
          true
        rescue ArgumentError
          false
        end
      end
    end
  end
end

Version data entries

61 entries across 59 versions & 3 rubygems

Version Path
fog-softlayer-0.0.5 tests/softlayer/compute_tests.rb