Documentation
¶
Overview ¶
Package openconnecttest holds the fakes the NM secret agent's tests need from the openconnect sign-in.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SilentGateway ¶
type SilentGateway struct {
// Addr is the host:port to put in a profile's gateway.
Addr string
// contains filtered or unexported fields
}
SilentGateway is a gateway that takes connections and never says a word — the far end of a sign-in waiting on a push nobody approves.
func NewSilentGateway ¶
func NewSilentGateway(t testing.TB) *SilentGateway
NewSilentGateway listens on a loopback port until the test ends, holding every connection open without answering.
func (*SilentGateway) Accepted ¶
func (g *SilentGateway) Accepted() int
Accepted is how many connections the gateway has taken.
func (*SilentGateway) Reached ¶
func (g *SilentGateway) Reached(t testing.TB)
Reached waits for the gateway to be reached at least once.