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
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-softlayer-1.1.4/tests/softlayer/compute_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-softlayer-1.1.4/tests/softlayer/compute_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-softlayer-1.1.4/tests/softlayer/compute_tests.rb
fog-softlayer-1.1.4 tests/softlayer/compute_tests.rb
fog-softlayer-1.1.3 tests/softlayer/compute_tests.rb
fog-softlayer-1.1.2 tests/softlayer/compute_tests.rb
fog-softlayer-1.1.1 tests/softlayer/compute_tests.rb
fog-softlayer-1.1.0 tests/softlayer/compute_tests.rb
fog-softlayer-1.0.3 tests/softlayer/compute_tests.rb
fog-softlayer-1.0.2 tests/softlayer/compute_tests.rb
fog-softlayer-1.0.1 tests/softlayer/compute_tests.rb
fog-softlayer-1.0.0 tests/softlayer/compute_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-softlayer-0.4.7/tests/softlayer/compute_tests.rb
fog-softlayer-0.4.7 tests/softlayer/compute_tests.rb
fog-softlayer-0.4.6 tests/softlayer/compute_tests.rb
fog-softlayer-0.4.5 tests/softlayer/compute_tests.rb
fog-softlayer-0.4.4 tests/softlayer/compute_tests.rb
fog-softlayer-0.4.3 tests/softlayer/compute_tests.rb
fog-softlayer-0.4.2 tests/softlayer/compute_tests.rb
fog-softlayer-0.4.2.pre tests/softlayer/compute_tests.rb