Sha256: ef40d96d4f09b63fa6487add3e4cd22e74e9b1222c53318b634fb22e32f0688c

Contents?: true

Size: 1.07 KB

Versions: 16

Compression:

Stored size: 1.07 KB

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,
         '9'  => Integer,
         '10' => Integer
      },
      'DISK'    => Integer,
      'PLANID'  => Integer,
      'PRICE'   => Float,
      'RAM'     => Integer,
      'LABEL'   => String,
      'XFER'    => Integer,
      'CORES'   => Integer,
      'HOURLY'  => Float
    }]
  })

  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

16 entries across 14 versions & 3 rubygems

Version Path
fog-2.3.0 tests/linode/requests/compute/linodeplans_tests.rb
fog-ifeel-2.2.0 tests/linode/requests/compute/linodeplans_tests.rb
fog-2.2.0 tests/linode/requests/compute/linodeplans_tests.rb
fog-2.1.0 tests/linode/requests/compute/linodeplans_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/tests/linode/requests/compute/linodeplans_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/tests/linode/requests/compute/linodeplans_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/tests/linode/requests/compute/linodeplans_tests.rb
fog-1.42.1 tests/linode/requests/compute/linodeplans_tests.rb
fog-2.0.0 tests/linode/requests/compute/linodeplans_tests.rb
fog-1.42.0 tests/linode/requests/compute/linodeplans_tests.rb
fog-1.41.0 tests/linode/requests/compute/linodeplans_tests.rb
fog-1.40.0 tests/linode/requests/compute/linodeplans_tests.rb
fog-1.39.0 tests/linode/requests/compute/linodeplans_tests.rb
fog-1.38.0 tests/linode/requests/compute/linodeplans_tests.rb
fog-1.37.0 tests/linode/requests/compute/linodeplans_tests.rb
fog-1.36.0 tests/linode/requests/compute/linodeplans_tests.rb