Sha256: e3082b19333e1ef62a677fc959648aa49a22c827725fe290666c7ec349fae9ba

Contents?: true

Size: 1.06 KB

Versions: 51

Compression:

Stored size: 1.06 KB

Contents

require File.expand_path(File.join(File.dirname(__FILE__), 'helper'))

Shindo.tests('Compute::VcloudDirector | tasks', ['vclouddirector']) do
  pending if Fog.mocking?

  tasks = organization.tasks
  pending if tasks.empty?
  task = tasks.first

  tests('Compute::VcloudDirector | task') do
    tests('#href').returns(String) { task.href.class }
    tests('#type').returns('application/vnd.vmware.vcloud.task+xml') { task.type }
    tests('#id').returns(String) { task.id.class }
    tests('#name').returns(String) { task.name.class }
    tests('#status').returns(String) { task.status.class }
    tests('#end_time').returns(Fog::Time) { task.end_time.class }
    tests('#expiry_time').returns(Fog::Time) { task.expiry_time.class }
    tests('#operation').returns(String) { task.operation.class }
    tests('#operation_name').returns(String) { task.operation_name.class }
  end

  tests('Compute::VcloudDirector | task', ['get']) do
    tests('#get_by_name').returns(task.name) { tasks.get_by_name(task.name).name }
    tests('#get').returns(task.id) { tasks.get(task.id).id }
  end
end

Version data entries

51 entries across 51 versions & 4 rubygems

Version Path
fog-maestrodev-1.19.0.20140109202555 tests/vcloud_director/models/compute/tasks_tests.rb
fog-maestrodev-1.19.0.20140107192102 tests/vcloud_director/models/compute/tasks_tests.rb
fog-maestrodev-1.19.0.20140107142106 tests/vcloud_director/models/compute/tasks_tests.rb
fog-maestrodev-1.19.0.20131219203941 tests/vcloud_director/models/compute/tasks_tests.rb
fog-maestrodev-1.18.0.20131219193542 tests/vcloud_director/models/compute/tasks_tests.rb
fog-1.19.0 tests/vcloud_director/models/compute/tasks_tests.rb
fog-maestrodev-1.18.0.20131219033443 tests/vcloud_director/models/compute/tasks_tests.rb
fog-maestrodev-1.18.0.20131219032002 tests/vcloud_director/models/compute/tasks_tests.rb
fog-maestrodev-1.18.0.20131219030716 tests/vcloud_director/models/compute/tasks_tests.rb
fog-maestrodev-1.18.0.20131219022322 tests/vcloud_director/models/compute/tasks_tests.rb
fog-maestrodev-1.18.0.20131218202447 tests/vcloud_director/models/compute/tasks_tests.rb
fog-maestrodev-1.18.0.20131209091424 tests/vcloud_director/models/compute/tasks_tests.rb
fog-maestrodev-1.18.0.20131209090811 tests/vcloud_director/models/compute/tasks_tests.rb
fog-maestrodev-1.18.0.20131206115947 tests/vcloud_director/models/compute/tasks_tests.rb
fog-maestrodev-1.18.0.20131205181604 tests/vcloud_director/models/compute/tasks_tests.rb
fog-maestrodev-1.18.0.20131127194823 tests/vcloud_director/models/compute/tasks_tests.rb
fog-maestrodev-1.18.0.20131126183714 tests/vcloud_director/models/compute/tasks_tests.rb
fog-maestrodev-1.18.0.20131126122111 tests/vcloud_director/models/compute/tasks_tests.rb
fog-maestrodev-1.18.0.20131125111730 tests/vcloud_director/models/compute/tasks_tests.rb
fog-maestrodev-1.18.0.20131125083406 tests/vcloud_director/models/compute/tasks_tests.rb