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

gophercloud / gophercloud / 3624 / 4
79%
master: 79%

Build:
DEFAULT BRANCH: master
Ran 19 Apr 2019 07:13PM UTC
Files 551
Run time 28s
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

19 Apr 2019 07:03PM UTC coverage: 76.648% (-3.8%) from 80.458%
3624.4

push

travis-ci

jtopjian
Baremetal introspection: correct handling of LLDP data (#1548)

* Baremetal introspection: correct handling of LLDP data

The LLDP data in the inventory doesn't appear as a JSON object, but as
a JSON array of [type, value] pairs such as:

[[1, "04112233aabbcc"], [2, "07373334"], ...]

(There can be multiple fields with the same type, which is why they are
not returned as a JSON object.)

There is a place where the raw LLDP data is processed into a JSON object
- under the `lldp_processed` key in the top-level `all_interfaces` list
(i.e. not in the inventory), here represented by BaseInterfaceType.

This patch corrects handling for LLDP data in the inventory (i.e. in
InterfaceType) and adds handling for it in BaseInterfaceType

Signed-off-by: Zane Bitter <zbitter@redhat.com>

* Baremetal introspection: Change Lldp to LLDP

Coding style prefers all caps for initialisms.

Signed-off-by: Zane Bitter <zbitter@redhat.com>

* Baremetal introspection: Check LLDP data in tests

Signed-off-by: Zane Bitter <zbitter@redhat.com>

* Baremetal introspection: Add tests for LLDP parse errors

Add tests for handling of invalid data in the code that deserialises
LLDP TLV data from JSON.

Signed-off-by: Zane Bitter <zbitter@redhat.com>

16631 of 21698 relevant lines covered (76.65%)

25.36 hits per line

Source Files on job 3624.4
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 3043
  • Travis Job 3624.4
  • e53f839b on github
  • Prev Job for on master (#3623.1)
  • Next Job for on master (#3629.1)
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

© 2026 Coveralls, Inc