Sha256: 7abb03dd9e794445c127f219c9ad08bcde9ea0ec670943910244850b61a27f0e

Contents?: true

Size: 478 Bytes

Versions: 30

Compression:

Stored size: 478 Bytes

Contents

Shindo.tests("Fog::Compute[:fogdocker] | image_search request", 'fogdocker') do

  compute = Fog::Compute[:fogdocker]

  tests("Search images") do
    response = compute.image_search('term' => 'test')
    test("should be a kind of Array") { response.kind_of?  Array}
    test("Array elements should be a kind of Hash") { response.first.kind_of?  Hash}
    test("response elemetns should have a name") { !response.first['name'].nil? && !response.first['name'].empty? }
  end
end

Version data entries

30 entries across 28 versions & 5 rubygems

Version Path
fog-2.3.0 tests/fogdocker/requests/compute/image_search_tests.rb
fog-ifeel-2.2.0 tests/fogdocker/requests/compute/image_search_tests.rb
fog-2.2.0 tests/fogdocker/requests/compute/image_search_tests.rb
fog-2.1.0 tests/fogdocker/requests/compute/image_search_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/tests/fogdocker/requests/compute/image_search_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/tests/fogdocker/requests/compute/image_search_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/tests/fogdocker/requests/compute/image_search_tests.rb
fog-1.42.1 tests/fogdocker/requests/compute/image_search_tests.rb
fog-2.0.0 tests/fogdocker/requests/compute/image_search_tests.rb
fog-1.42.0 tests/fogdocker/requests/compute/image_search_tests.rb
fog-1.41.0 tests/fogdocker/requests/compute/image_search_tests.rb
fog-1.40.0 tests/fogdocker/requests/compute/image_search_tests.rb
fog-1.39.0 tests/fogdocker/requests/compute/image_search_tests.rb
fog-1.38.0 tests/fogdocker/requests/compute/image_search_tests.rb
fog-1.37.0 tests/fogdocker/requests/compute/image_search_tests.rb
fog-1.36.0 tests/fogdocker/requests/compute/image_search_tests.rb
fog-1.35.0 tests/fogdocker/requests/compute/image_search_tests.rb
fog-2.0.0.pre.0 tests/fogdocker/requests/compute/image_search_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/fogdocker/requests/compute/image_search_tests.rb
fog-1.34.0 tests/fogdocker/requests/compute/image_search_tests.rb