Sha256: 16ea3210bea9b960ee7fa9c87c09f01c554d75012caec2f00ddc6ac0e7594d57

Contents?: true

Size: 1.08 KB

Versions: 4

Compression:

Stored size: 1.08 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_stack_data').formats({'stacks' => [@stack_format]}) do
      Fog::Orchestration[:openstack].list_stack_data.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

4 entries across 4 versions & 1 rubygems

Version Path
fog-1.31.0 tests/openstack/requests/orchestration/stack_tests.rb
fog-1.30.0 tests/openstack/requests/orchestration/stack_tests.rb
fog-1.29.0 tests/openstack/requests/orchestration/stack_tests.rb
fog-1.28.0 tests/openstack/requests/orchestration/stack_tests.rb