Sha256: 3888ff8ee4e1de50b3955570e1296888cbfddcda7d72a8944999ae2c260a7fc1

Contents?: true

Size: 1.66 KB

Versions: 112

Compression:

Stored size: 1.66 KB

Contents

Shindo.tests("Fog::Compute[:joyent] | dataset requests", ["joyent"]) do
  @dataset_format = {
    "description" => String,
    "requirements" => {
      "max_memory" => Integer,
      "min_memory" => Integer
    },
    "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" => {
          "max_memory" => 32768,
          "min_memory" => 4096
        },
        "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" => {
          "max_memory" => 32768,
          "min_memory" => 4096
        },
        "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

112 entries across 110 versions & 15 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-joyent-0.0.1/tests/joyent/requests/compute/datasets_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-joyent-0.0.1/tests/joyent/requests/compute/datasets_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-joyent-0.0.1/tests/joyent/requests/compute/datasets_tests.rb
fog-joyent-0.0.1 tests/joyent/requests/compute/datasets_tests.rb
fog-1.40.0 tests/joyent/requests/compute/datasets_tests.rb
fog-1.39.0 tests/joyent/requests/compute/datasets_tests.rb
fog-1.38.0 tests/joyent/requests/compute/datasets_tests.rb
fog-1.37.0 tests/joyent/requests/compute/datasets_tests.rb
fog-1.36.0 tests/joyent/requests/compute/datasets_tests.rb
fog-1.35.0 tests/joyent/requests/compute/datasets_tests.rb
fog-2.0.0.pre.0 tests/joyent/requests/compute/datasets_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/joyent/requests/compute/datasets_tests.rb
fog-1.34.0 tests/joyent/requests/compute/datasets_tests.rb
fog-1.33.0 tests/joyent/requests/compute/datasets_tests.rb
fog-1.32.0 tests/joyent/requests/compute/datasets_tests.rb
fog-1.31.0 tests/joyent/requests/compute/datasets_tests.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/joyent/requests/compute/datasets_tests.rb
fog-1.30.0 tests/joyent/requests/compute/datasets_tests.rb
fog-1.29.0 tests/joyent/requests/compute/datasets_tests.rb
fog-1.28.0 tests/joyent/requests/compute/datasets_tests.rb