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

gophercloud / gophercloud / 3624
79%

Build:
DEFAULT BRANCH: master
Ran 19 Apr 2019 07:09PM UTC
Jobs 4
Files 551
Run time 4min
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% (+0.01%) from 76.636%
3624

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>

19 of 19 new or added lines in 1 file covered. (100.0%)

16631 of 21698 relevant lines covered (76.65%)

76.01 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3624.1 19 Apr 2019 07:09PM UTC 0
80.47
Travis Job 3624.1
2 3624.2 19 Apr 2019 07:10PM UTC 0
76.65
Travis Job 3624.2
3 3624.3 19 Apr 2019 07:11PM UTC 0
76.65
Travis Job 3624.3
4 3624.4 19 Apr 2019 07:13PM UTC 0
76.65
Travis Job 3624.4
Source Files on build 3624
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3624
  • e53f839b on github
  • Prev Build on master (#3623)
  • Next Build on master (#3629)
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