Sha256: 5d339f23a462f6be0109c1df02466cc4de72ef30151dbce85760b2f1c3dc238e

Contents?: true

Size: 908 Bytes

Versions: 10

Compression:

Stored size: 908 Bytes

Contents

Shindo.tests('Fog::Compute[:brightbox] | account requests', ['brightbox']) do

  tests('success') do

    tests("#get_account").formats(Brightbox::Compute::Formats::Full::ACCOUNT) do
      pending if Fog.mocking?
      Fog::Compute[:brightbox].get_account
    end

    update_options = {:name => "Fog@#{Time.now.iso8601}"}
    tests("#update_account(#{update_options.inspect})").formats(Brightbox::Compute::Formats::Full::ACCOUNT) do
      pending if Fog.mocking?
      Fog::Compute[:brightbox].update_account(update_options)
    end

    tests("#reset_ftp_password_account").formats(Brightbox::Compute::Formats::Full::ACCOUNT) do
      pending if Fog.mocking?
      Fog::Compute[:brightbox].reset_ftp_password_account
    end

  end

  tests('failure') do

    tests("#update_account").raises(ArgumentError) do
      pending if Fog.mocking?
      Fog::Compute[:brightbox].update_account
    end

  end

end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/account_tests.rb
fog-1.1.1 tests/brightbox/requests/compute/account_tests.rb
fog-1.1.0 tests/brightbox/requests/compute/account_tests.rb
brightbox-cli-0.15.0 lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/account_tests.rb
tag-fog-1.0.1 tests/brightbox/requests/compute/account_tests.rb
brightbox-cli-0.14.1 lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/account_tests.rb
brightbox-cli-0.14.0 lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/account_tests.rb
fog-1.0.0 tests/brightbox/requests/compute/account_tests.rb
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/tests/compute/requests/brightbox/account_tests.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/tests/compute/requests/brightbox/account_tests.rb