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-sgonyea-1.8.1 tests/ninefold/requests/compute/async_job_tests.rb
fog-1.8.0 tests/ninefold/requests/compute/async_job_tests.rb
fog-maestrodev-1.7.0.20121114190951 tests/ninefold/requests/compute/async_job_tests.rb
fog-1.7.0 tests/ninefold/requests/compute/async_job_tests.rb
fog-1.6.0 tests/ninefold/requests/compute/async_job_tests.rb
fog-1.5.0 tests/ninefold/requests/compute/async_job_tests.rb
rackspace-fog-1.4.2 tests/ninefold/requests/compute/async_job_tests.rb
fog-1.4.0 tests/ninefold/requests/compute/async_job_tests.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/tests/ninefold/requests/compute/async_job_tests.rb
michiels-fog-1.3.1 tests/ninefold/requests/compute/async_job_tests.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/tests/ninefold/requests/compute/async_job_tests.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/tests/ninefold/requests/compute/async_job_tests.rb
fog-1.3.1 tests/ninefold/requests/compute/async_job_tests.rb
fog-1.3.0 tests/ninefold/requests/compute/async_job_tests.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/tests/ninefold/requests/compute/async_job_tests.rb
fog-1.2.0 tests/ninefold/requests/compute/async_job_tests.rb
ktheory-fog-1.1.2 tests/ninefold/requests/compute/async_job_tests.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/tests/ninefold/requests/compute/async_job_tests.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/tests/ninefold/requests/compute/async_job_tests.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/tests/ninefold/requests/compute/async_job_tests.rb