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
gapinc-fog-1.12.1 tests/ninefold/requests/compute/async_job_tests.rb
fog-1.12.1 tests/ninefold/requests/compute/async_job_tests.rb
fog-1.12.0 tests/ninefold/requests/compute/async_job_tests.rb
hpfog-0.0.20 tests/ninefold/requests/compute/async_job_tests.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/tests/ninefold/requests/compute/async_job_tests.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/tests/ninefold/requests/compute/async_job_tests.rb
fog-nirvanix-1.8.2 tests/ninefold/requests/compute/async_job_tests.rb
fog-1.11.1 tests/ninefold/requests/compute/async_job_tests.rb
fog-1.11.0 tests/ninefold/requests/compute/async_job_tests.rb
fog-nirvanix-1.8.1 tests/ninefold/requests/compute/async_job_tests.rb
fog-1.10.1 tests/ninefold/requests/compute/async_job_tests.rb
fog-parser-fix-1.6.1 tests/ninefold/requests/compute/async_job_tests.rb
fog-test-again-1.6.0 tests/ninefold/requests/compute/async_job_tests.rb
fog-test-me-1.10.0 tests/ninefold/requests/compute/async_job_tests.rb
fog-parser-fix-1.6.0 tests/ninefold/requests/compute/async_job_tests.rb
fog-1.10.0 tests/ninefold/requests/compute/async_job_tests.rb
fog-1.9.0 tests/ninefold/requests/compute/async_job_tests.rb
fog-maestrodev-1.8.0.20130114204828 tests/ninefold/requests/compute/async_job_tests.rb
fog-maestrodev-1.8.0.20130111070250 tests/ninefold/requests/compute/async_job_tests.rb
fog-maestrodev-1.8.0.20130109172219 tests/ninefold/requests/compute/async_job_tests.rb