Render hostmaps as mermaid graphs in e2e tests (#815)

This commit is contained in:
Nate Brown
2023-02-16 13:23:33 -06:00
committed by GitHub
parent 469ae78748
commit 2ea360e5e2
5 changed files with 233 additions and 4 deletions

24
hostmap_tester.go Normal file
View File

@@ -0,0 +1,24 @@
//go:build e2e_testing
// +build e2e_testing
package nebula
// This file contains functions used to export information to the e2e testing framework
import "github.com/slackhq/nebula/iputil"
func (i *HostInfo) GetVpnIp() iputil.VpnIp {
return i.vpnIp
}
func (i *HostInfo) GetLocalIndex() uint32 {
return i.localIndexId
}
func (i *HostInfo) GetRemoteIndex() uint32 {
return i.remoteIndexId
}
func (i *HostInfo) GetRelayState() RelayState {
return i.relayState
}