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.4.1 tests/softlayer/compute_tests.rb
fog-softlayer-0.4.0 tests/softlayer/compute_tests.rb
fog-softlayer-0.3.30 tests/softlayer/compute_tests.rb
fog-softlayer-0.3.29 tests/softlayer/compute_tests.rb
fog-softlayer-0.3.28 tests/softlayer/compute_tests.rb
fog-softlayer-0.3.27 tests/softlayer/compute_tests.rb
fog-softlayer-0.3.26 tests/softlayer/compute_tests.rb
fog-softlayer-0.3.25 tests/softlayer/compute_tests.rb
fog-softlayer-0.3.24 tests/softlayer/compute_tests.rb
fog-softlayer-0.3.23 tests/softlayer/compute_tests.rb
fog-softlayer-0.3.22 tests/softlayer/compute_tests.rb
fog-softlayer-0.3.21 tests/softlayer/compute_tests.rb
fog-softlayer-0.3.20 tests/softlayer/compute_tests.rb
fog-softlayer-0.3.19 tests/softlayer/compute_tests.rb
fog-softlayer-0.3.18 tests/softlayer/compute_tests.rb
fog-softlayer-0.3.17 tests/softlayer/compute_tests.rb
fog-softlayer-0.3.16 tests/softlayer/compute_tests.rb
fog-softlayer-0.3.15 tests/softlayer/compute_tests.rb
fog-softlayer-0.3.14 tests/softlayer/compute_tests.rb
fog-softlayer-0.3.13 tests/softlayer/compute_tests.rb