Sha256: 081feba5367b7edb6adc2facb1ffdb0bf77459bd16f95c418eb15889ae0feb69

Contents?: true

Size: 597 Bytes

Versions: 22

Compression:

Stored size: 597 Bytes

Contents

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

  compute = Fog::Compute[:libvirt]

  tests("DHCP leases response") do
    response = compute.dhcp_leases("fbd4ac68-cbea-4f95-86ed-22953fd92384", "99:88:77:66:55:44", 0)
    test("should be an array") { response.kind_of? Array }
    test("should have one element") { response.length == 1 }
    test("should have dict elements") { response[0].kind_of? Hash }
    ["ipaddr", "prefix", "expirytime", "type"].each {
      |k| test("should have dict elements with required key #{k}") { !response[0][k].nil? }
    }
  end

end

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
fog-libvirt-0.13.2 tests/libvirt/requests/compute/dhcp_leases_tests.rb
fog-libvirt-0.13.1 tests/libvirt/requests/compute/dhcp_leases_tests.rb
fog-libvirt-0.13.0 tests/libvirt/requests/compute/dhcp_leases_tests.rb
fog-libvirt-0.12.2 tests/libvirt/requests/compute/dhcp_leases_tests.rb
fog-libvirt-0.12.1 tests/libvirt/requests/compute/dhcp_leases_tests.rb
fog-libvirt-0.12.0 tests/libvirt/requests/compute/dhcp_leases_tests.rb
fog-libvirt-0.11.0 tests/libvirt/requests/compute/dhcp_leases_tests.rb
fog-libvirt-0.10.1 tests/libvirt/requests/compute/dhcp_leases_tests.rb
fog-libvirt-0.10.0 tests/libvirt/requests/compute/dhcp_leases_tests.rb
fog-libvirt-csem-0.9.0 tests/libvirt/requests/compute/dhcp_leases_tests.rb
fog-libvirt-0.9.0 tests/libvirt/requests/compute/dhcp_leases_tests.rb
fog-libvirt-0.8.0 tests/libvirt/requests/compute/dhcp_leases_tests.rb
fog-libvirt-0.7.0 tests/libvirt/requests/compute/dhcp_leases_tests.rb
fog-libvirt-0.6.0 tests/libvirt/requests/compute/dhcp_leases_tests.rb
fog-libvirt-0.5.0 tests/libvirt/requests/compute/dhcp_leases_tests.rb
fog-libvirt-0.4.2 tests/libvirt/requests/compute/dhcp_leases_tests.rb
fog-libvirt-0.4.1 tests/libvirt/requests/compute/dhcp_leases_tests.rb
fog-libvirt-0.4.0 tests/libvirt/requests/compute/dhcp_leases_tests.rb
fog-libvirt-0.3.0 tests/libvirt/requests/compute/dhcp_leases_tests.rb
fog-libvirt-0.2.0 tests/libvirt/requests/compute/dhcp_leases_tests.rb