it.eve_fixtures
Shared EVE stack fixture for M2 acceptance tests.
Starts an isolated OpenSSH server and a private ssh-agent, generates and loads an ephemeral key, and wires the whole EVE stack: transport, session driver, agent connector, and agent-backed authentication.
class EveStack
fn safeTimerCb
Types 1
classEveStack
One fully wired EVE SSH stack against isolated daemons.
The stack borrows nothing from the test: fixtures, keys, the event loop, and every adapter are owned here and released by stop.
Fields
timeoutMsMaximum wall time for any single acceptance waitSshdServer serverAgentFixture agentEventLoop loopTcpConnection connEveSshTransport transportSshSessionImpl sessionEveSessionDriver driverEveAgentConnector connectorSshAgentSigner signerSshAuthOperation authSshAgentOperation listingstring keyBasestring contextvoid delegate() onPollApplication consumers pumped after every harness poll.Methods
EveStack start(string context = "EVE stack") staticBuilds the fixtures, connects sshd and the agent, and starts the handshake. Call authenticate to finish authentication.void authenticate()Authenticates through the private agent using the driver loop.void runUntil(bool delegate() done)Runs the loop until the predicate holds or the watchdog fires.void kick()Requests a pump outside the loop, for application steps that start work (queueing an SFTP request, resolving a credential).void stop()Stops every fixture and releases the loop and key files.Functions 1
fn
auto safeTimerCb(void delegate(ref EventLoop, Token) @system dg) pure nothrow @trustedCasts a system timer callback to the safe nothrow EVE callback type.