Sha256: 483694efea3df36fccc4534c0abe181ebe2f1833f8530ac0c3e65a2c3b86772d

Contents?: true

Size: 1.32 KB

Versions: 51

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

51 entries across 51 versions & 3 rubygems

Version Path
fog-1.22.0 tests/brightbox/requests/compute/collaboration_tests.rb
fog-1.21.0 tests/brightbox/requests/compute/collaboration_tests.rb
fog-maestrodev-1.20.0.20140305101839 tests/brightbox/requests/compute/collaboration_tests.rb
fog-maestrodev-1.20.0.20140305101305 tests/brightbox/requests/compute/collaboration_tests.rb
fog-maestrodev-1.19.0.20140212012611 tests/brightbox/requests/compute/collaboration_tests.rb
fog-1.20.0 tests/brightbox/requests/compute/collaboration_tests.rb
fog-maestrodev-1.19.0.20140110004459 tests/brightbox/requests/compute/collaboration_tests.rb
fog-maestrodev-1.19.0.20140110003812 tests/brightbox/requests/compute/collaboration_tests.rb
fog-maestrodev-1.19.0.20140109202555 tests/brightbox/requests/compute/collaboration_tests.rb
fog-maestrodev-1.19.0.20140107192102 tests/brightbox/requests/compute/collaboration_tests.rb
fog-maestrodev-1.19.0.20140107142106 tests/brightbox/requests/compute/collaboration_tests.rb
fog-maestrodev-1.19.0.20131219203941 tests/brightbox/requests/compute/collaboration_tests.rb
fog-maestrodev-1.18.0.20131219193542 tests/brightbox/requests/compute/collaboration_tests.rb
fog-1.19.0 tests/brightbox/requests/compute/collaboration_tests.rb
fog-maestrodev-1.18.0.20131219033443 tests/brightbox/requests/compute/collaboration_tests.rb
fog-maestrodev-1.18.0.20131219032002 tests/brightbox/requests/compute/collaboration_tests.rb
fog-maestrodev-1.18.0.20131219030716 tests/brightbox/requests/compute/collaboration_tests.rb
fog-maestrodev-1.18.0.20131219022322 tests/brightbox/requests/compute/collaboration_tests.rb
fog-maestrodev-1.18.0.20131218202447 tests/brightbox/requests/compute/collaboration_tests.rb
fog-maestrodev-1.18.0.20131209091424 tests/brightbox/requests/compute/collaboration_tests.rb