Sha256: 9cecf17e90a8a107384ebd792399b83f5dd9ccbfc53084edc42f2fd5c0ab1eda

Contents?: true

Size: 1.1 KB

Versions: 47

Compression:

Stored size: 1.1 KB

Contents

require File.expand_path '../../test_helper', __dir__

# Test class for ExpressRouteServiceProvider Collection
class TestExpressRouteServiceProviders < Minitest::Test
  def setup
    @service = Fog::Network::AzureRM.new(credentials)
    @service_providers = Fog::Network::AzureRM::ExpressRouteServiceProviders.new(service: @service)
    @network_client = @service.instance_variable_get(:@network_client)
  end

  def test_collection_methods
    methods = [
      :all
    ]
    methods.each do |method|
      assert_respond_to @service_providers, method
    end
  end

  def test_all_method_response
    response = ApiStub::Models::Network::ExpressRouteServiceProvider.list_express_route_service_provider_response(@network_client)
    @service.stub :list_express_route_service_providers, response do
      assert_instance_of Fog::Network::AzureRM::ExpressRouteServiceProviders, @service_providers.all
      assert @service_providers.all.size >= 1
      @service_providers.all.each do |service_provider|
        assert_instance_of Fog::Network::AzureRM::ExpressRouteServiceProvider, service_provider
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 4 rubygems

Version Path
fog-azure-rm-0.6.0 test/models/network/test_express_route_service_providers.rb
fog-azure-rm-0.5.3 test/models/network/test_express_route_service_providers.rb
fog-azure-rm-0.5.2 test/models/network/test_express_route_service_providers.rb
far-gem-0.5.6 test/models/network/test_express_route_service_providers.rb
fog-azure-rm-0.5.1 test/models/network/test_express_route_service_providers.rb
far-gem-0.5.5 test/models/network/test_express_route_service_providers.rb
fog-azure-rm-0.5.0 test/models/network/test_express_route_service_providers.rb
far-gem-0.5.4 test/models/network/test_express_route_service_providers.rb
far-gem-0.5.3 test/models/network/test_express_route_service_providers.rb
fog-azure-rm-0.4.9 test/models/network/test_express_route_service_providers.rb
far-gem-0.5.2 test/models/network/test_express_route_service_providers.rb
fog-azure-rm-0.4.8 test/models/network/test_express_route_service_providers.rb
fog-azure-rm-0.4.7 test/models/network/test_express_route_service_providers.rb
fog-azure-rm-0.4.6 test/models/network/test_express_route_service_providers.rb
fog-azure-rm-0.4.5 test/models/network/test_express_route_service_providers.rb
fog-azure-rm-temp-0.0.5 test/models/network/test_express_route_service_providers.rb
fog-azure-rm-0.4.4 test/models/network/test_express_route_service_providers.rb
fog-azure-rm-0.4.3 test/models/network/test_express_route_service_providers.rb
far-gem-0.5.1 test/models/network/test_express_route_service_providers.rb
fog-azure-rm-0.4.2 test/models/network/test_express_route_service_providers.rb