Sha256: e9b9f2d98879a2028b32deb86e035e46930bf2ef6e61d08fffe18b788af519ba

Contents?: true

Size: 817 Bytes

Versions: 15

Compression:

Stored size: 817 Bytes

Contents

Shindo.tests('Linode | distribution requests', ['linode']) do

  @distributions_format = Linode::Formats::BASIC.merge({
    'DATA' => [{ 
      'CREATE_DT'           => String,
      'DISTRIBUTIONID'      => Integer,
      'IS64BIT'             => Integer,
      'LABEL'               => String,
      'MINIMAGESIZE'        => Integer,
      'REQUIRESPVOPSKERNEL' => Integer
    }]
  })

  tests('success') do

    @distribution_id = nil

    tests('#avail_distributions').formats(@distributions_format) do
      data = Linode[:linode].avail_distributions.body
      @distribution_id = data['DATA'].first['DISTRIBUTIONID']
      data
    end

    tests("@avail_distributions(#{@distribution_id})").formats(@distributions_format) do
      Linode[:linode].avail_distributions(@distribution_id).body
    end

  end

end

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
fog-0.2.30 tests/linode/requests/distribution_tests.rb
fog-0.2.28 tests/linode/requests/distribution_tests.rb
fog-0.2.27 tests/linode/requests/distribution_tests.rb
fog-0.2.26 tests/linode/requests/distribution_tests.rb
fog-0.2.25 tests/linode/requests/distribution_tests.rb
fog-0.2.24 tests/linode/requests/distribution_tests.rb
tecnh-fog-0.2.23.vpc tests/linode/requests/distribution_tests.rb
fog-0.2.23 tests/linode/requests/distribution_tests.rb
fog-0.2.22 tests/linode/requests/distribution_tests.rb
fog-0.2.21 tests/linode/requests/distribution_tests.rb
fog-0.2.20 tests/linode/requests/distribution_tests.rb
fog-0.2.19 tests/linode/requests/distribution_tests.rb
fog-0.2.18 tests/linode/requests/distribution_tests.rb
fog-0.2.17 tests/linode/requests/distribution_tests.rb
fog-0.2.16 tests/linode/requests/distribution_tests.rb