Sha256: 8ee30e87493ca425d0b5aaff476067626ae8218751cfe51bc1ac16e51135ccc0

Contents?: true

Size: 1.07 KB

Versions: 56

Compression:

Stored size: 1.07 KB

Contents

Shindo.tests('Fog::Orchestration[:openstack] | stack requests', ['openstack']) do
  @stack_format = {
    'links'               => Array,
    'id'                  => String,
    'stack_name'          => String,
    'description'         => Fog::Nullable::String,
    'stack_status'        => String,
    'stack_status_reason' => String,
    'creation_time'       => Time,
    'updated_time'        => Time
  }

  @create_format = {
    'id'                  => String,
    'links'               => Array,
  }

  tests('success') do
    tests('#create_stack("teststack")').formats(@create_format) do
      Fog::Orchestration[:openstack].create_stack("teststack").body
    end

    tests('#list_stacks').formats({'stacks' => [@stack_format]}) do
      Fog::Orchestration[:openstack].list_stacks.body
    end

    tests('#update_stack("teststack")').formats({}) do
      Fog::Orchestration[:openstack].update_stack("teststack").body
    end

    tests('#delete_stack("teststack", "id")').formats({}) do
      Fog::Orchestration[:openstack].delete_stack("teststack", "id").body
    end
  end
end

Version data entries

56 entries across 56 versions & 5 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/openstack/requests/orchestration/stack_tests.rb
fog-1.27.0 tests/openstack/requests/orchestration/stack_tests.rb
fog-1.26.0 tests/openstack/requests/orchestration/stack_tests.rb
fog-1.25.0 tests/openstack/requests/orchestration/stack_tests.rb
nsidc-fog-1.24.1 tests/openstack/requests/orchestration/stack_tests.rb
fog-1.24.0 tests/openstack/requests/orchestration/stack_tests.rb
ns-fog-1.22.11 tests/openstack/requests/orchestration/stack_tests.rb
ns-fog-1.22.10 tests/openstack/requests/orchestration/stack_tests.rb
ns-fog-1.22.9 tests/openstack/requests/orchestration/stack_tests.rb
ns-fog-1.22.8 tests/openstack/requests/orchestration/stack_tests.rb
ns-fog-1.22.7 tests/openstack/requests/orchestration/stack_tests.rb
ns-fog-1.22.6 tests/openstack/requests/orchestration/stack_tests.rb
fog-1.23.0 tests/openstack/requests/orchestration/stack_tests.rb
ns-fog-1.22.4 tests/openstack/requests/orchestration/stack_tests.rb
ns-fog-1.22.3 tests/openstack/requests/orchestration/stack_tests.rb
ns-fog-1.22.2 tests/openstack/requests/orchestration/stack_tests.rb
fog-1.22.1 tests/openstack/requests/orchestration/stack_tests.rb
fog-1.22.0 tests/openstack/requests/orchestration/stack_tests.rb
fog-1.21.0 tests/openstack/requests/orchestration/stack_tests.rb
fog-maestrodev-1.20.0.20140305101839 tests/openstack/requests/orchestration/stack_tests.rb