Sha256: 9db15c726d3b9c321a2c256ba6c8ef7262c2d587ed49eb6fff38219f853fba2a

Contents?: true

Size: 1.32 KB

Versions: 24

Compression:

Stored size: 1.32 KB

Contents

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

  tests('success') do

    tests("#create_collaboration") do
      pending if Fog.mocking?
      collaboration = Fog::Compute[:brightbox].create_collaboration(:email => "paul@example.com", :role => "admin")
      @collaboration_id = collaboration['id']
      formats(Brightbox::Compute::Formats::Full::COLLABORATION, false) { collaboration }
    end

    tests("#list_collaborations") do
      pending if Fog.mocking?
      result = Fog::Compute[:brightbox].list_collaborations

      formats(Brightbox::Compute::Formats::Collection::COLLABORATIONS, false) { result }
    end

    tests("#get_collaboration") do
      pending if Fog.mocking?
      result = Fog::Compute[:brightbox].get_collaboration(@collaboration_id)
      formats(Brightbox::Compute::Formats::Full::COLLABORATION, false) { result }
    end

    tests("#destroy_collaboration") do
      pending if Fog.mocking?
      result = Fog::Compute[:brightbox].destroy_collaboration(@collaboration_id)
      formats(Brightbox::Compute::Formats::Full::COLLABORATION, false) { result }
    end
  end

  tests("failure") do
    tests("get_collaboration('col-abcde')").raises(Excon::Errors::NotFound) do
      pending if Fog.mocking?
      Fog::Compute[:brightbox].get_collaboration("col-abcde")
    end
  end

end

Version data entries

24 entries across 24 versions & 4 rubygems

Version Path
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/brightbox/requests/compute/collaboration_tests.rb
fog-1.33.0 tests/brightbox/requests/compute/collaboration_tests.rb
fog-1.32.0 tests/brightbox/requests/compute/collaboration_tests.rb
fog-1.31.0 tests/brightbox/requests/compute/collaboration_tests.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/brightbox/requests/compute/collaboration_tests.rb
fog-1.30.0 tests/brightbox/requests/compute/collaboration_tests.rb
fog-1.29.0 tests/brightbox/requests/compute/collaboration_tests.rb
fog-1.28.0 tests/brightbox/requests/compute/collaboration_tests.rb
fog-1.27.0 tests/brightbox/requests/compute/collaboration_tests.rb
fog-1.26.0 tests/brightbox/requests/compute/collaboration_tests.rb
fog-1.25.0 tests/brightbox/requests/compute/collaboration_tests.rb
nsidc-fog-1.24.1 tests/brightbox/requests/compute/collaboration_tests.rb
fog-1.24.0 tests/brightbox/requests/compute/collaboration_tests.rb
ns-fog-1.22.11 tests/brightbox/requests/compute/collaboration_tests.rb
ns-fog-1.22.10 tests/brightbox/requests/compute/collaboration_tests.rb
ns-fog-1.22.9 tests/brightbox/requests/compute/collaboration_tests.rb
ns-fog-1.22.8 tests/brightbox/requests/compute/collaboration_tests.rb
ns-fog-1.22.7 tests/brightbox/requests/compute/collaboration_tests.rb
ns-fog-1.22.6 tests/brightbox/requests/compute/collaboration_tests.rb
fog-1.23.0 tests/brightbox/requests/compute/collaboration_tests.rb