Sha256: 5c99476b2804f75b053fcc0e345099651614f6739c21ad21c5e834deaa4ad0d2

Contents?: true

Size: 786 Bytes

Versions: 36

Compression:

Stored size: 786 Bytes

Contents

Shindo.tests('Bluebox | template requests', ['bluebox']) do

  @template_format = {
    'created'     => String,
    'description' => String,
    'id'          => String,
    'public'      => Fog::Boolean
  }

  tests('success') do

    @template_id  = 'a00baa8f-b5d0-4815-8238-b471c4c4bf72' # Ubuntu 9.10 64bit

    tests("get_template('#{@template_id}')").formats(@template_format) do
      Bluebox[:blocks].get_template(@template_id).body
    end

    tests("get_templates").formats([@template_format]) do
      Bluebox[:blocks].get_templates.body
    end

  end

  tests('failure') do

    tests("get_template('00000000-0000-0000-0000-000000000000')").raises(Fog::Bluebox::NotFound) do
      Bluebox[:blocks].get_template('00000000-0000-0000-0000-000000000000')
    end

  end

end

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
fog-0.2.30 tests/bluebox/requests/template_tests.rb
fog-0.2.28 tests/bluebox/requests/template_tests.rb
fog-0.2.27 tests/bluebox/requests/template_tests.rb
fog-0.2.26 tests/bluebox/requests/template_tests.rb
fog-0.2.25 tests/bluebox/requests/template_tests.rb
fog-0.2.24 tests/bluebox/requests/template_tests.rb
tecnh-fog-0.2.23.vpc tests/bluebox/requests/template_tests.rb
fog-0.2.23 tests/bluebox/requests/template_tests.rb
fog-0.2.22 tests/bluebox/requests/template_tests.rb
fog-0.2.21 tests/bluebox/requests/template_tests.rb
fog-0.2.20 tests/bluebox/requests/template_tests.rb
fog-0.2.19 tests/bluebox/requests/template_tests.rb
fog-0.2.18 tests/bluebox/requests/template_tests.rb
fog-0.2.17 tests/bluebox/requests/template_tests.rb
fog-0.2.16 tests/bluebox/requests/template_tests.rb
fog-0.2.15 tests/bluebox/requests/template_tests.rb
fog-0.2.14 tests/bluebox/requests/template_tests.rb
fog-0.2.13 tests/bluebox/requests/template_tests.rb
fog-0.2.12 tests/bluebox/requests/template_tests.rb
fog-0.2.11 tests/bluebox/requests/template_tests.rb