Sha256: 827719442dc7068bf88fa43cc174cc573b478703803ea702f50dd81cb81246ad

Contents?: true

Size: 1.08 KB

Versions: 110

Compression:

Stored size: 1.08 KB

Contents

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

  @stack_scripts_format = Linode::Compute::Formats::BASIC.merge({
    'DATA' => [{ 
      'STACKSCRIPTID'       => Integer,
      'SCRIPT'              => String,
      'DESCRIPTION'         => String,
      'DISTRIBUTIONIDLIST'  => String,
      'LABEL'               => String,
      'DEPLOYMENTSTOTAL'    => Integer,
      'LATESTREV'           => Integer,
      'CREATE_DT'           => String,
      'DEPLOYMENTSACTIVE'   => Integer,
      'REV_NOTE'            => String,
      'REV_DT'              => String,
      'ISPUBLIC'            => Integer,
      'USERID'              => Integer
    }]
  })  

  tests('success') do

    tests('#avail_stackscripts').formats(@stack_scripts_format) do
      pending if Fog.mocking?
      Fog::Compute[:linode].avail_stackscripts.body
    end    
    
    tests('#stackscript_list').formats(@stack_scripts_format) do
      pending # TODO: REV_NOTE can be either string or float?
      pending if Fog.mocking?
      Fog::Compute[:linode].stackscript_list.body
    end

  end

end

Version data entries

110 entries across 110 versions & 18 rubygems

Version Path
fog-1.22.0 tests/linode/requests/compute/stackscripts_tests.rb
fog-1.21.0 tests/linode/requests/compute/stackscripts_tests.rb
fog-maestrodev-1.20.0.20140305101839 tests/linode/requests/compute/stackscripts_tests.rb
fog-maestrodev-1.20.0.20140305101305 tests/linode/requests/compute/stackscripts_tests.rb
fog-maestrodev-1.19.0.20140212012611 tests/linode/requests/compute/stackscripts_tests.rb
fog-1.20.0 tests/linode/requests/compute/stackscripts_tests.rb
fog-maestrodev-1.19.0.20140110004459 tests/linode/requests/compute/stackscripts_tests.rb
fog-maestrodev-1.19.0.20140110003812 tests/linode/requests/compute/stackscripts_tests.rb
fog-maestrodev-1.19.0.20140109202555 tests/linode/requests/compute/stackscripts_tests.rb
fog-maestrodev-1.19.0.20140107192102 tests/linode/requests/compute/stackscripts_tests.rb
fog-maestrodev-1.19.0.20140107142106 tests/linode/requests/compute/stackscripts_tests.rb
fog-maestrodev-1.19.0.20131219203941 tests/linode/requests/compute/stackscripts_tests.rb
fog-maestrodev-1.18.0.20131219193542 tests/linode/requests/compute/stackscripts_tests.rb
fog-1.19.0 tests/linode/requests/compute/stackscripts_tests.rb
fog-maestrodev-1.18.0.20131219033443 tests/linode/requests/compute/stackscripts_tests.rb
fog-maestrodev-1.18.0.20131219032002 tests/linode/requests/compute/stackscripts_tests.rb
fog-maestrodev-1.18.0.20131219030716 tests/linode/requests/compute/stackscripts_tests.rb
fog-maestrodev-1.18.0.20131219022322 tests/linode/requests/compute/stackscripts_tests.rb
fog-maestrodev-1.18.0.20131218202447 tests/linode/requests/compute/stackscripts_tests.rb
fog-maestrodev-1.18.0.20131209091424 tests/linode/requests/compute/stackscripts_tests.rb