mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-21 23:50:45 +00:00
fix: honor SSH agent opt-out
This commit is contained in:
1 parent
7cb722a5c5
commit
0046291376
14 files changed
+61
-13
No files matched your search
@@ -107,6 +107,17 @@ test("resolveBridgeSshAgentAuth keeps certificate authentication independent", (
|
||||
);
|
||||
});
|
||||
|
||||
test("resolveBridgeSshAgentAuth preserves an explicit agent opt-out", () => {
|
||||
assert.deepEqual(
|
||||
resolveBridgeSshAgentAuth({
|
||||
...autofillBaseHost,
|
||||
useSshAgent: false,
|
||||
identityAgent: "none",
|
||||
}),
|
||||
{ useSshAgent: false },
|
||||
);
|
||||
});
|
||||
|
||||
test("hasBridgeSshCredentials accepts an agent-only host", () => {
|
||||
assert.equal(hasBridgeSshCredentials({ useSshAgent: true }), true);
|
||||
assert.equal(hasBridgeSshCredentials({}), false);
|
||||
|
||||
Reference in new issue
Block a user