Sha256: 4888257acfe30a08ca12f5438efcbff587aaba8cd2a71dd0f58be49baa7e1398

Contents?: true

Size: 590 Bytes

Versions: 47

Compression:

Stored size: 590 Bytes

Contents

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

# Test class for Get Available IP Address Count
class TestGetAvailableIPAddressesCount < Minitest::Test
  def setup
    @service = Fog::Network::AzureRM.new(credentials)
  end

  def test_get_available_ipaddresses_count_success
    assert_equal @service.get_available_ipaddresses_count('fog-test-subnet', '10.0.0.0/24', [], false), 254
  end

  def test_get_available_ipaddresses_count_argument_error
    assert_raises ArgumentError do
      @service.get_available_ipaddresses_count('fog-test-subnet', '10.0.0.0/24')
    end
  end
end

Version data entries

47 entries across 47 versions & 4 rubygems

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