Skip to content

tests: query the network hints the way vCenter answers - #587

Merged
semx merged 1 commit into
developmentfrom
tests/network-hints-like-vcenter
Oct 8, 2026
Merged

semx merged 1 commit into
developmentfrom
tests/network-hints-like-vcenter

Conversation

@semx

@semx semx commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

vcsim ignores the device argument of QueryNetworkHint(), which is why the suite was green with the "" from #350 and did not notice #580. The test answers the call like vCenter does, with NotFound for a device name the host does not have, and fails on development before #581 with ['', '', ''].

The single call with "" came back in #565, where I replaced the per-NIC calls of #535 with it and checked against vcsim only; this is the check that was missing.

Also corrects two comments in the file which claimed the captures carry no CDP/LLDP data: vc001 records CDP neighbors, their switches are just not in NetBox, which is why no cable comes out of the vcsim run.

vcsim ignores the device argument of QueryNetworkHint(), so the suite
could not tell that "" makes vCenter raise NotFound (#580). The test
answers the call like vCenter does and fails on a device name the host
does not have.

The comments claiming the captures carry no CDP/LLDP data were wrong:
vc001 records CDP neighbors, their switches are just not in NetBox.
@semx
semx requested a review from bb-Ricardo as a code owner October 8, 2026 11:26
@semx
semx merged commit 73dad9d into development Oct 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant