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