• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MartijnBraam / python-isc-dhcp-leases / 117 / 1
99%
master: 99%

Build:
DEFAULT BRANCH: master
Ran 12 Apr 2018 08:50AM UTC
Files 5
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Apr 2018 08:49AM UTC coverage: 100.0%. Remained the same
117.1

push

travis-ci

MartijnBraam
Handle Lease functionalities when 'starts' is missing (#25)

The existing code base expected each lease entry will have 'starts'
property and the code fails at:
https://github.com/MartijnBraam/python-isc-dhcp-leases/blob/master/isc_dhcp_leases/iscdhcpleases.py#L212
self.start = parse_time(properties['starts'])

But lease entry could be without 'starts', like in below 3 examples:
lease 10.37.178.69 {
  tstp 5 2018/03/30 18:24:01;
  tsfp 5 2018/03/30 18:24:01;
  atsfp 5 2018/03/30 18:24:01;
  cltt 5 2018/03/30 17:54:01;
  binding state free;
  hardware ethernet 8c:dc:d4:b2:ea:fc;
  set vendorclass = "PXEClient:Arch:00000:UNDI:002001";
  set ClientIP = "10.37.178.69";
  set ClientMac = "8c:dc:d4:b2:ea:fc";
  set Vendorid = "PXEClient";
}
lease 10.37.178.68 {
  tstp 4 2018/03/29 22:08:05;
  tsfp 4 2018/03/29 22:08:05;
  atsfp 4 2018/03/29 22:08:05;
  cltt 4 2018/03/29 21:38:05;
  binding state free;
  hardware ethernet 8c:dc:d4:b2:d0:a8;
  set vendorclass = "d-i";
}
lease 10.37.178.67 {
  tstp 4 2018/03/29 20:22:16;
  tsfp 4 2018/03/29 20:22:16;
  atsfp 4 2018/03/29 20:22:16;
  binding state free;
  hardware ethernet 8c:dc:d4:b2:d0:a8;
}

This patch fixes the assumption.

421 of 421 relevant lines covered (100.0%)

1.0 hits per line

Source Files on job 117.1
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 117
  • Travis Job 117.1
  • ef481701 on github
  • Prev Job for on master (#113.2)
  • Next Job for on master (#118.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc