Sha256: ad479ae88dd1580401a06dd9a9c4c67c0694bb9838d905a53adc60e80bf1ccae

Contents?: true

Size: 1.14 KB

Versions: 19

Compression:

Stored size: 1.14 KB

Contents

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

  tests('success') do

    tests("#get_account") do
      pending if Fog.mocking?
      result = Fog::Compute[:brightbox].get_account
      formats(Brightbox::Compute::Formats::Full::ACCOUNT, false) { result }
      test("ftp password is blanked") { result["library_ftp_password"].nil?  }
    end

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

    tests("#reset_ftp_password_account") do
      pending if Fog.mocking?
      result = Fog::Compute[:brightbox].reset_ftp_password_account
      formats(Brightbox::Compute::Formats::Full::ACCOUNT, false) { result }
      test("new ftp password is visible") { ! result["library_ftp_password"].nil?  }
    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

19 entries across 19 versions & 8 rubygems

Version Path
fog-parser-fix-1.6.1 tests/brightbox/requests/compute/account_tests.rb
fog-test-again-1.6.0 tests/brightbox/requests/compute/account_tests.rb
fog-parser-fix-1.6.0 tests/brightbox/requests/compute/account_tests.rb
fog-1.6.0 tests/brightbox/requests/compute/account_tests.rb
fog-1.5.0 tests/brightbox/requests/compute/account_tests.rb
rackspace-fog-1.4.2 tests/brightbox/requests/compute/account_tests.rb
fog-1.4.0 tests/brightbox/requests/compute/account_tests.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/account_tests.rb
michiels-fog-1.3.1 tests/brightbox/requests/compute/account_tests.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/tests/brightbox/requests/compute/account_tests.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/account_tests.rb
fog-1.3.1 tests/brightbox/requests/compute/account_tests.rb
fog-1.3.0 tests/brightbox/requests/compute/account_tests.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/account_tests.rb
fog-1.2.0 tests/brightbox/requests/compute/account_tests.rb
ktheory-fog-1.1.2 tests/brightbox/requests/compute/account_tests.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/account_tests.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/account_tests.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/tests/brightbox/requests/compute/account_tests.rb