Sha256: 5c244cc7674311a6896e888eeccf962745622c0a7268d07b348e40c0eb534c69

Contents?: true

Size: 1013 Bytes

Versions: 15

Compression:

Stored size: 1013 Bytes

Contents

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

  @linodeplans_format = Linode::Compute::Formats::BASIC.merge({
    'DATA' => [{
      'AVAIL' => {
         '2' => Integer,
         '3' => Integer,
         '4' => Integer,
         '6' => Integer,
         '7' => Integer,
         '8' => Integer
      },
      'DISK'    => Integer,
      'PLANID'  => Integer,
      'PRICE'   => Float,
      'RAM'     => Integer,
      'LABEL'   => String,
      'XFER'    => Integer,
      'CORES'   => Integer
    }]
  })

  tests('success') do

    @linodeplan_id = nil

    tests('#avail_linodeplans').formats(@linodeplans_format) do
      pending if Fog.mocking?
      data = Fog::Compute[:linode].avail_linodeplans.body
      @linodeplan_id = data['DATA'].first['PLANID']
      data
    end

    tests("#avail_linodeplans(#{@linodeplan_id})").formats(@linodeplans_format) do
      pending if Fog.mocking?
      Fog::Compute[:linode].avail_linodeplans(@linodeplan_id).body
    end

  end

end

Version data entries

15 entries across 15 versions & 3 rubygems

Version Path
fog-1.35.0 tests/linode/requests/compute/linodeplans_tests.rb
fog-2.0.0.pre.0 tests/linode/requests/compute/linodeplans_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/linode/requests/compute/linodeplans_tests.rb
fog-1.34.0 tests/linode/requests/compute/linodeplans_tests.rb
fog-1.33.0 tests/linode/requests/compute/linodeplans_tests.rb
fog-1.32.0 tests/linode/requests/compute/linodeplans_tests.rb
fog-1.31.0 tests/linode/requests/compute/linodeplans_tests.rb
fog-1.30.0 tests/linode/requests/compute/linodeplans_tests.rb
fog-1.29.0 tests/linode/requests/compute/linodeplans_tests.rb
fog-1.28.0 tests/linode/requests/compute/linodeplans_tests.rb
fog-1.27.0 tests/linode/requests/compute/linodeplans_tests.rb
fog-1.26.0 tests/linode/requests/compute/linodeplans_tests.rb
fog-1.25.0 tests/linode/requests/compute/linodeplans_tests.rb
nsidc-fog-1.24.1 tests/linode/requests/compute/linodeplans_tests.rb
fog-1.24.0 tests/linode/requests/compute/linodeplans_tests.rb