Sha256: dc168b906c487415da04428398c6725633f7e525988bab01443c966ca1bf84fa

Contents?: true

Size: 1.28 KB

Versions: 8

Compression:

Stored size: 1.28 KB

Contents

Shindo.tests('TerremarkEcloud::Compute | vdc requests', ['terremarkecloud']) do

  @vdc_format = {
    'AvailableNetworks' => [{
      'href' => String,
      'name' => String,
      'type' => String
    }],
    'ComputeCapacity' => {
      'Cpu' => {
        'Allocated' => Integer,
        'Units'     => String
      },
      'DeployedVmsQuota' => {
        'Limit' => Integer,
        'Used'  => Integer
      },
      'InstantiatedVmsQuota' => {
        'Limit' => Integer,
        'Used'  => Integer
      },
      'Memory' => {
        'Allocated' => Integer,
        'Units'     => String
      }
    },
    'Description' => Fog::Nullable::String,
    'href' => String,
    'Link' => [{
      'href' => String,
      'name' => String,
      'rel'  => String,
      'type' => String
    }],
    'name' => String,
    'ResourceEntities' => [{
      'href' => String,
      'name' => String,
      'type' => String
    }],
    'StorageCapacity' => {
      'Allocated' => Integer,
      'Units'     => String,
      'Used'      => Integer
    }
  }

  tests('success') do

    tests("#get_vdc").formats(@vdc_format) do
      pending if Fog.mocking?
      vdc     = TerremarkEcloud::Compute.preferred_vdc
      vdc_href = vdc['href']

      TerremarkEcloud[:compute].get_vdc(vdc_href).body
    end

  end

end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
fog-0.5.3 tests/compute/requests/terremark_ecloud/vdc_tests.rb
fog-0.5.2 tests/compute/requests/terremark_ecloud/vdc_tests.rb
fog-0.5.1 tests/compute/requests/terremark_ecloud/vdc_tests.rb
fog-0.5.0 tests/compute/requests/terremark_ecloud/vdc_tests.rb
phpfog-fog-0.4.1.3 tests/compute/requests/terremark_ecloud/vdc_tests.rb
phpfog-fog-0.4.1.2 tests/compute/requests/terremark_ecloud/vdc_tests.rb
phpfog-fog-0.4.1.1 tests/compute/requests/terremark_ecloud/vdc_tests.rb
phpfog-fog-0.4.1 tests/compute/requests/terremark_ecloud/vdc_tests.rb