Sha256: 58323ae507edf10e8e0192652b9757b6db28e726515d00641746ebd7d3c10cde

Contents?: true

Size: 753 Bytes

Versions: 110

Compression:

Stored size: 753 Bytes

Contents

Shindo.tests('Fog::Compute[:linode] | kernel requests', ['linode']) do

  @kernels_format = Linode::Compute::Formats::BASIC.merge({
    'DATA' => [{ 
      'LABEL'               => String,
      'ISXEN'               => Integer,
      'ISPVOPS'             => Integer,
      'KERNELID'            => Integer
    }]
  })

  tests('success') do
    @kernel_id = nil

    tests('#avail_kernels').formats(@kernels_format) do
      pending if Fog.mocking?
      data = Fog::Compute[:linode].avail_kernels.body
      @kernel_id = data['DATA'].first['KERNELID']
      data
    end

    tests("@avail_kernels(#{@kernel_id})").formats(@kernels_format) do
      pending if Fog.mocking?
      Fog::Compute[:linode].avail_kernels(@kernel_id).body
    end
  end
end

Version data entries

110 entries across 110 versions & 18 rubygems

Version Path
brightbox-cli-0.14.1 lib/brightbox-cli/vendor/fog/tests/linode/requests/compute/kernel_tests.rb
brightbox-cli-0.14.0 lib/brightbox-cli/vendor/fog/tests/linode/requests/compute/kernel_tests.rb
fog-1.0.0 tests/linode/requests/compute/kernel_tests.rb
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/tests/compute/requests/linode/kernel_tests.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/tests/compute/requests/linode/kernel_tests.rb
fog-0.11.0 tests/compute/requests/linode/kernel_tests.rb
fog-0.10.0 tests/compute/requests/linode/kernel_tests.rb
fog4encbs-0.9.0.1 tests/compute/requests/linode/kernel_tests.rb
fog4encbs-0.9.0 tests/compute/requests/linode/kernel_tests.rb
fog-0.9.0 tests/compute/requests/linode/kernel_tests.rb