The configuration of the server MUST let in one account with one key, on the loopback and the port it is given, MUST accept no password and no keyboard-interactive answer, and the known hosts it makes MUST hold the host key of that server for that address and port and no other key.
Enforced (check): .github: cd commons/anyfs-ssh && bun run verify — suite/sshd-tool.test.ts: the requirement
The server MUST be named to a test by the variables ANYFS_SSH_TEST_ADDRESS, _PORT, _USER, _KEY, _KNOWN_HOSTS, _ROOT and _CONTROL_DIR, which are the variables a server of the tester's own is named by.
Enforced (check): .github: cd commons/anyfs-ssh && bun run verify — suite/sshd-tool.test.ts: the requirement
The command line MUST be check (say whether a server can be made here) or run -- <command> (run the command with the variables set and end with its exit status), and anything else MUST be a usage error with exit status 2; where no server can be made, run MUST say why and run the command without the variables.
Enforced (check): .github: cd commons/anyfs-ssh && bun run verify — suite/sshd-tool.test.ts: the requirement
The port MUST be a free port of the loopback chosen for the run, never a fixed one, and the folder of the keys, the configuration, the log and the shared connections MUST be one folder made for the run.
Enforced (check): .github: cd commons/anyfs-ssh && bun run verify — suite/sshd-tool.test.ts: the requirement
The server MUST let the key in through the real ssh client with the known hosts pinned, MUST refuse an account it does not name, and, where the process is root, MUST use the account fleet (made where it is not there) and otherwise the account of the process.
Enforced (check): .github: cd commons/anyfs-ssh && bun run verify — suite/sshd-tool.test.ts: the requirement
The server, the keys, the known hosts, the folder of the run and the folder of the account MUST be gone when the function that used the server ends, whether it returns or throws, and an error of the function MUST be raised and not swallowed.
Enforced (check): .github: cd commons/anyfs-ssh && bun run verify — suite/sshd-tool.test.ts: the requirement
A test that needs a server MUST use the server named by the environment, else one made for the run, and MUST be skipped with the reason where none can be had; the run of the conformance suite MUST share one connection between its calls.
Enforced (check): .github: cd commons/anyfs-ssh && bun run verify — suite/sshd.test.ts: the requirement
Given a computer with OpenSSH, When the conformance suite is run through run -- bun test suite/, Then it runs against the real server and no server is left, per FR-005 and FR-006.
Given a computer with no OpenSSH server, When the test is run, Then it is skipped with the sentence that says what is missing, per FR-007.