Sha256: 07675d3d311dff1c4de32d8ba59a75c81a94e11be689a6406391e1f04d9371f0

Contents?: true

Size: 1.32 KB

Versions: 16

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

16 entries across 14 versions & 3 rubygems

Version Path
fog-brightbox-1.0.0.rc2 tests/brightbox/requests/compute/collaboration_tests.rb
fog-brightbox-1.0.0.rc1 tests/brightbox/requests/compute/collaboration_tests.rb
fog-brightbox-0.16.1 tests/brightbox/requests/compute/collaboration_tests.rb
fog-brightbox-0.16.0 tests/brightbox/requests/compute/collaboration_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-brightbox-0.15.0/tests/brightbox/requests/compute/collaboration_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-brightbox-0.15.0/tests/brightbox/requests/compute/collaboration_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-brightbox-0.15.0/tests/brightbox/requests/compute/collaboration_tests.rb
fog-brightbox-0.15.0 tests/brightbox/requests/compute/collaboration_tests.rb
fog-brightbox-0.14.0 tests/brightbox/requests/compute/collaboration_tests.rb
fog-brightbox-0.13.0 tests/brightbox/requests/compute/collaboration_tests.rb
fog-brightbox-0.12.0 tests/brightbox/requests/compute/collaboration_tests.rb
fog-brightbox-0.11.0 tests/brightbox/requests/compute/collaboration_tests.rb
fog-brightbox-0.10.1 tests/brightbox/requests/compute/collaboration_tests.rb
fog-brightbox-0.10.0 tests/brightbox/requests/compute/collaboration_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-brightbox-0.9.0/tests/brightbox/requests/compute/collaboration_tests.rb
fog-brightbox-0.9.0 tests/brightbox/requests/compute/collaboration_tests.rb