Sha256: 252c00e3ae294faf2d90835dc0f903b4f1d59ae1b91d5346387b79ee161674a6

Contents?: true

Size: 1.45 KB

Versions: 11

Compression:

Stored size: 1.45 KB

Contents

Shindo.tests("Fog::Compute[:joyent] | dataset requests", ["joyent"]) do
  @dataset_format = {
    "description" => String,
    "requirements" => {},
    "name" => String,
    "version" => String,
    "os" => String,
    "id" => String,
    "urn" => String,
    "default" => Fog::Boolean,
    "type" => String,
    "created" => Time,
  }

  if Fog.mock?
    Fog::Compute[:joyent].data[:datasets] = {
      "33904834-1f01-49d3-bed3-b642e158c375" => {
        "id" => "33904834-1f01-49d3-bed3-b642e158c375",
        "urn" => "sdc:sdc:zeus-simple-lb-200mbps:1.1.1",
        "name" => "zeus-simple-lb-200mbps",
        "os" => "smartos",
        "type" => "smartmachine",
        "description" => "Zeus Simple Load Balancer 200 Mbps SmartMachine",
        "default" => false,
        "requirements" => {},
        "version" => "1.1.1",
        "created" => Time.parse("2011-09-15T07:39:13+00:00")
      },
      "3fcf35d2-dd79-11e0-bdcd-b3c7ac8aeea6" => {
        "id" => "3fcf35d2-dd79-11e0-bdcd-b3c7ac8aeea6",
        "urn" => "sdc:sdc:mysql:1.4.1",
        "name" => "mysql",
        "os" => "smartos",
        "type" => "smartmachine",
        "description" => "MySQL SmartMachine",
        "default" => false,
        "requirements" => {},
        "version" => "1.4.1",
        "created" => Time.parse("2011-09-15T05:01:34+00:00")
      }
    }
  end

  tests("#list_datasets") do
    formats(@dataset_format) do
      Fog::Compute[:joyent].list_datasets.body.first
    end
  end
end

Version data entries

11 entries across 11 versions & 6 rubygems

Version Path
rackspace-fog-1.4.2 tests/joyent/requests/compute/datasets_tests.rb
fog-1.4.0 tests/joyent/requests/compute/datasets_tests.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/tests/joyent/requests/compute/datasets_tests.rb
michiels-fog-1.3.1 tests/joyent/requests/compute/datasets_tests.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/tests/joyent/requests/compute/datasets_tests.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/tests/joyent/requests/compute/datasets_tests.rb
fog-1.3.1 tests/joyent/requests/compute/datasets_tests.rb
fog-1.3.0 tests/joyent/requests/compute/datasets_tests.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/tests/joyent/requests/compute/datasets_tests.rb
fog-1.2.0 tests/joyent/requests/compute/datasets_tests.rb
ktheory-fog-1.1.2 tests/joyent/requests/compute/datasets_tests.rb