Sha256: 8913c4ec0fd3021e417a7a87076bf1c21232e7dbd8142852f00d154a4f4762a9

Contents?: true

Size: 996 Bytes

Versions: 14

Compression:

Stored size: 996 Bytes

Contents

#
# Author:: Matheus Francisco Barra Mina (<mfbmina@gmail.com>)
# © Copyright IBM Corporation 2015.
#
# LICENSE: MIT (http://opensource.org/licenses/MIT)
#
Shindo.tests("Fog::Account[:softlayer] | account requests", ["softlayer"]) do
  @sl = Fog::Account[:softlayer]

  tests('success') do
    tests"#get_account_owned_brands('1')" do
      response = @sl.get_account_owned_brands(1)
      data_matches_schema(200) { response.status }
      data_matches_schema(Array) { response.body }
    end

    tests"#get_account_owned_brands('1')" do
      response = @sl.get_account_owned_brands(1)
      data_matches_schema(200) { response.status }
      data_matches_schema(Array) { response.body }
    end
  end

  tests('failure') do
    tests("#get_account_owned_brands('99999999')") do
      response = @sl.get_account_owned_brands(99999999)
      data_matches_schema('SoftLayer_Exception_ObjectNotFound'){ response.body['code'] }
      data_matches_schema(404){ response.status }
    end
  end
end

Version data entries

14 entries across 12 versions & 3 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-softlayer-1.1.4/tests/softlayer/requests/account/account_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-softlayer-1.1.4/tests/softlayer/requests/account/account_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-softlayer-1.1.4/tests/softlayer/requests/account/account_tests.rb
fog-softlayer-1.1.4 tests/softlayer/requests/account/account_tests.rb
fog-softlayer-1.1.3 tests/softlayer/requests/account/account_tests.rb
fog-softlayer-1.1.2 tests/softlayer/requests/account/account_tests.rb
fog-softlayer-1.1.1 tests/softlayer/requests/account/account_tests.rb
fog-softlayer-1.1.0 tests/softlayer/requests/account/account_tests.rb
fog-softlayer-1.0.3 tests/softlayer/requests/account/account_tests.rb
fog-softlayer-1.0.2 tests/softlayer/requests/account/account_tests.rb
fog-softlayer-1.0.1 tests/softlayer/requests/account/account_tests.rb
fog-softlayer-1.0.0 tests/softlayer/requests/account/account_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-softlayer-0.4.7/tests/softlayer/requests/account/account_tests.rb
fog-softlayer-0.4.7 tests/softlayer/requests/account/account_tests.rb