Sha256: 70ca8846bfbff3aff95468ffd35a7c1b337414fc072e393966dd1bf9eee33550

Contents?: true

Size: 559 Bytes

Versions: 28

Compression:

Stored size: 559 Bytes

Contents

require "helpers/integration_test_helper"

class TestRoutes < FogIntegrationTest
  def setup
    @subject = Fog::Compute[:google].routes
  end

  def test_all
    assert_operator(@subject.all.size, :>=, 2,
                    "Number of all routes should be greater or equal than 2 - default GW and default routes")
  end

  def test_get
    @subject.all do |route|
      refute_nil @subject.get(route.name)
    end
  end

  def test_bad_get
    assert_nil @subject.get("bad-name")
  end

  def test_enumerable
    assert_respond_to @subject, :each
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
fog-google-1.24.1 test/integration/compute/core_networking/test_routes.rb
fog-google-1.24.0 test/integration/compute/core_networking/test_routes.rb
fog-google-1.23.0 test/integration/compute/core_networking/test_routes.rb
fog-google-1.22.0 test/integration/compute/core_networking/test_routes.rb
fog-google-1.21.1 test/integration/compute/core_networking/test_routes.rb
fog-google-1.21.0 test/integration/compute/core_networking/test_routes.rb
fog-google-1.20.0 test/integration/compute/core_networking/test_routes.rb
fog-google-1.19.0 test/integration/compute/core_networking/test_routes.rb
fog-google-1.18.0 test/integration/compute/core_networking/test_routes.rb
fog-google-1.17.0 test/integration/compute/core_networking/test_routes.rb
fog-google-1.16.1 test/integration/compute/core_networking/test_routes.rb
fog-google-1.16.0 test/integration/compute/core_networking/test_routes.rb
fog-google-1.15.0 test/integration/compute/core_networking/test_routes.rb
fog-google-1.14.0 test/integration/compute/core_networking/test_routes.rb
gitlab-fog-google-1.14.0 test/integration/compute/core_networking/test_routes.rb
fog-google-1.13.0 test/integration/compute/core_networking/test_routes.rb
gitlab-fog-google-1.13.0 test/integration/compute/core_networking/test_routes.rb
fog-google-1.12.1 test/integration/compute/core_networking/test_routes.rb
fog-google-1.12.0 test/integration/compute/core_networking/test_routes.rb
fog-google-1.11.0 test/integration/compute/core_networking/test_routes.rb