Commit a2fbba80 authored by Enrico Zini's avatar Enrico Zini

Merge leases into master

parents 1b7a7def f1be0515
# The format of this file is documented in the dhcpd.leases(5) manual page.
# This lease file was written by isc-dhcp-4.4.1
# authoring-byte-order entry is generated, DO NOT DELETE
authoring-byte-order little-endian;
lease 192.168.6.100 {
starts 4 2020/08/20 10:20:02;
ends 5 2020/08/21 10:20:02;
cltt 4 2020/08/20 10:20:02;
binding state active;
next binding state free;
rewind binding state free;
hardware ethernet 52:54:00:f2:f7:62;
set ddns-rev-name = "100.6.168.192.in-addr.arpa.";
set ddns-fwd-name = "cliente.school.lan";
client-hostname "cliente";
}
......@@ -39,6 +39,9 @@ class TestInotifywatch(InotifyTestCase):
print("UPDATE", file=fd)
# No changes detected while the file is still open
self.assertFalse(watch.has_events())
# we get two events here: one triggered by a MODIFY and
# one triggered by a CLOSE_WRITE
self.assertEqual(await watch.next_event(), "MODIFIED")
self.assertEqual(await watch.next_event(), "MODIFIED")
watch.stop()
self.assertEqual(await watch.next_event(), "END")
......
......@@ -53,7 +53,8 @@ class TestArpwatchDataSource(TestDataSourceMixin, InotifyTestCase):
)
events = events.gathered
self.assertEqual(len(events), 2)
# We receive the events 3 times, but they are the same
self.assertEqual(len(events), 6)
self.assertIsNone(events[0].name)
self.assertEqual(events[0].mac, "52:54:00:5e:76:10")
self.assertEqual(events[0].ip, "192.168.7.241")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment