Sha256: ff9c1574b1e5a87a5dbc8f07e89fc18eb3c7ed0e4b87ae294606925c7d628b3b

Contents?: true

Size: 913 Bytes

Versions: 140

Compression:

Stored size: 913 Bytes

Contents

# This will fail until there are jobs in the system.

Shindo.tests('Fog::Compute[:ninefold] | async job requests', ['ninefold']) do

  tests('success') do

    tests("#list_async_jobs()").formats(Ninefold::Compute::Formats::Jobs::JOBS) do
      pending if Fog.mocking?
      jobs = Fog::Compute[:ninefold].list_async_jobs()
      unless jobs[0]
        raise "No async jobs in system yet - create a VM through web UI to create"
      end
      @jobid = jobs[0]['jobid']
      jobs
    end

    tests("#query_async_job_result()").formats(Ninefold::Compute::Formats::Jobs::JOB_QUERY) do
      pending if Fog.mocking?
      Fog::Compute[:ninefold].query_async_job_result(:jobid => @jobid)
    end

  end

  tests('failure') do

    #tests("#deploy_virtual_machine()").raises(Excon::Errors::HTTPStatusError) do
    #  pending if Fog.mocking?
    #  Fog::Compute[:ninefold].deploy_virtual_machine
    #end

  end

end

Version data entries

140 entries across 140 versions & 21 rubygems

Version Path
fog-maestrodev-1.19.0.20140107142106 tests/ninefold/requests/compute/async_job_tests.rb
fog-maestrodev-1.19.0.20131219203941 tests/ninefold/requests/compute/async_job_tests.rb
fog-maestrodev-1.18.0.20131219193542 tests/ninefold/requests/compute/async_job_tests.rb
fog-1.19.0 tests/ninefold/requests/compute/async_job_tests.rb
fog-maestrodev-1.18.0.20131219033443 tests/ninefold/requests/compute/async_job_tests.rb
fog-maestrodev-1.18.0.20131219032002 tests/ninefold/requests/compute/async_job_tests.rb
fog-maestrodev-1.18.0.20131219030716 tests/ninefold/requests/compute/async_job_tests.rb
fog-maestrodev-1.18.0.20131219022322 tests/ninefold/requests/compute/async_job_tests.rb
fog-maestrodev-1.18.0.20131218202447 tests/ninefold/requests/compute/async_job_tests.rb
fog-maestrodev-1.18.0.20131209091424 tests/ninefold/requests/compute/async_job_tests.rb
fog-maestrodev-1.18.0.20131209090811 tests/ninefold/requests/compute/async_job_tests.rb
fog-maestrodev-1.18.0.20131206115947 tests/ninefold/requests/compute/async_job_tests.rb
fog-maestrodev-1.18.0.20131205181604 tests/ninefold/requests/compute/async_job_tests.rb
fog-maestrodev-1.18.0.20131127194823 tests/ninefold/requests/compute/async_job_tests.rb
fog-maestrodev-1.18.0.20131126183714 tests/ninefold/requests/compute/async_job_tests.rb
fog-maestrodev-1.18.0.20131126122111 tests/ninefold/requests/compute/async_job_tests.rb
fog-maestrodev-1.18.0.20131125111730 tests/ninefold/requests/compute/async_job_tests.rb
fog-maestrodev-1.18.0.20131125083406 tests/ninefold/requests/compute/async_job_tests.rb
fog-maestrodev-1.18.0.20131123105121 tests/ninefold/requests/compute/async_job_tests.rb
fog-maestrodev-1.18.0.20131122203507 tests/ninefold/requests/compute/async_job_tests.rb