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.3.12 tests/softlayer/compute_tests.rb
fog-softlayer-0.3.11 tests/softlayer/compute_tests.rb
fog-softlayer-0.3.10 tests/softlayer/compute_tests.rb
fog-softlayer-0.3.9 tests/softlayer/compute_tests.rb
fog-softlayer-0.3.8 tests/softlayer/compute_tests.rb
fog-softlayer-0.3.7 tests/softlayer/compute_tests.rb
fog-softlayer-0.3.6 tests/softlayer/compute_tests.rb
fog-softlayer-0.3.6.pre.f82ffe9 tests/softlayer/compute_tests.rb
fog-softlayer-0.3.6.pre.f7e3358 tests/softlayer/compute_tests.rb
fog-softlayer-0.3.5 tests/softlayer/compute_tests.rb
fog-softlayer-0.3.4.pre tests/softlayer/compute_tests.rb
fog-softlayer-0.3.3.pre tests/softlayer/compute_tests.rb
fog-softlayer-0.3.2 tests/softlayer/compute_tests.rb
fog-softlayer-0.3.1 tests/softlayer/compute_tests.rb
fog-softlayer-0.2.1 tests/softlayer/compute_tests.rb
fog-softlayer-0.1.1 tests/softlayer/compute_tests.rb
fog-softlayer-0.1.0 tests/softlayer/compute_tests.rb
fog-softlayer-0.0.9 tests/softlayer/compute_tests.rb
fog-softlayer-0.0.8 tests/softlayer/compute_tests.rb
fog-softlayer-0.0.7 tests/softlayer/compute_tests.rb