@micham/sftp-mock-server
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -9,2 +9,3 @@ "use strict"; | ||
const files = {}; | ||
const readDirectories = {}; | ||
const sftp = accept(); | ||
@@ -43,2 +44,32 @@ ctx.debug('SFTP Session established with client'); | ||
}); | ||
sftp.on('OPENDIR', (reqId, path) => { | ||
ctx.debug(`Client tries to open the directory with path ${path}`); | ||
if (Object.keys(files).some((filePath) => filePath.startsWith(`${path}/`))) { | ||
const handle = Buffer.from(path); | ||
return sftp.handle(reqId, handle); | ||
} | ||
return sftp.status(reqId, ssh2_1.utils.sftp.STATUS_CODE.NO_SUCH_FILE); | ||
}); | ||
sftp.on('READDIR', (reqId, handle) => { | ||
const path = handle.toString(); | ||
if (readDirectories[path]) { | ||
delete readDirectories[path]; | ||
return sftp.status(reqId, ssh2_1.utils.sftp.STATUS_CODE.EOF); | ||
} | ||
ctx.debug(`client trying to list ${path}`); | ||
const filePaths = Object.keys(files).filter((filePath) => filePath.match(`${path}/[^/]*`)); | ||
readDirectories[path] = true; | ||
return sftp.name(reqId, filePaths.map((filePath) => ({ | ||
filename: filePath, | ||
longname: filePath, | ||
attrs: { | ||
atime: files[filePath].atime, | ||
mtime: files[filePath].mtime, | ||
gid: files[filePath].gid, | ||
uid: files[filePath].uid, | ||
mode: files[filePath].mode, | ||
size: files[filePath].size, | ||
}, | ||
}))); | ||
}); | ||
}; | ||
@@ -101,2 +132,2 @@ exports.handleSftpSession = handleSftpSession; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Z0cC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvc2Z0cC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxtQ0FBb0M7QUFDcEMsMkJBQStCO0FBRS9CLCtCQU1jO0FBVVAsTUFBTSxpQkFBaUIsR0FDNUIsQ0FBQyxHQUFZL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QUFPO0lBRVAsTUFBTSxJQUFBLGVBQU8sRUFBQyxJQUFJLENBQUMsQ0FBQztBQUN0QixDQUFDLENBQUMsQ0FBQyJ9 | ||
ava_1.default.serial('can read from directory', async (t) => { | ||
// GIVEN | ||
const data = await (0, utils_1.setup)({ | ||
port: String(port), | ||
users: { | ||
test: { password: 'test' }, | ||
}, | ||
}); | ||
await data.client.connect({ | ||
host: '127.0.0.1', | ||
port, | ||
username: 'test', | ||
password: 'test', | ||
}); | ||
const content = 'My file content is awesome'; | ||
// WHEN | ||
await data.client.put(Buffer.from(content), '/test/file.txt'); | ||
const files = await data.client.list('/test'); | ||
// THEN | ||
t.is(files.length, 1); | ||
t.throwsAsync(() => data.client.list('/unknown')); | ||
await (0, utils_1.cleanup)(data); | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Z0cC5zcGVjLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi9zZnRwLnNwZWMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSw4Q0FBdUI7QUFDdkIsbUNBQXlDO0FBRXpDLE1BQU0sSUFBSSxHQUFHLElBQUksQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLE1BQU0sRUFBRSxHQUFHLElBQUksR0FBRyxJQUFJLENBQUMsQ0FBQztBQUVyRCxhQUFJLENBQUMsTUFBTSxDQUFDLDhCQUE4QixFQUFFLEtBQUssRUFBRSxDQUFDLEVBQUUsRUFBRTtJQUN0RCxRQUFRO0lBQ1IsTUFBTSxJQUFJLEdBQUcsTUFBTSxJQUFBLGFBQUssRUFBQztRQUN2QixJQUFJLEVBQUUsTUFBTSxDQUFDLElBQUksQ0FBQztRQUNsQixLQUFLLEVBQUU7WUFDTCxJQUFJLEVBQUUsRUFBRSxRQUFRLEVBQUUsTUFBTSxFQUFFO1NBQzNCO0tBQ0YsQ0FBQ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sQ0FBQyxJQUFJLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQztJQUVsRCxNQUFNLElBQUEsZUFBTyxFQUFDLElBQUksQ0FBQyxDQUFDO0FBQ3RCLENBQUMsQ0FBQyxDQUFDIn0= |
@@ -6,2 +6,3 @@ import { randomUUID } from 'crypto'; | ||
const files = {}; | ||
const readDirectories = {}; | ||
const sftp = accept(); | ||
@@ -40,2 +41,32 @@ ctx.debug('SFTP Session established with client'); | ||
}); | ||
sftp.on('OPENDIR', (reqId, path) => { | ||
ctx.debug(`Client tries to open the directory with path ${path}`); | ||
if (Object.keys(files).some((filePath) => filePath.startsWith(`${path}/`))) { | ||
const handle = Buffer.from(path); | ||
return sftp.handle(reqId, handle); | ||
} | ||
return sftp.status(reqId, utils.sftp.STATUS_CODE.NO_SUCH_FILE); | ||
}); | ||
sftp.on('READDIR', (reqId, handle) => { | ||
const path = handle.toString(); | ||
if (readDirectories[path]) { | ||
delete readDirectories[path]; | ||
return sftp.status(reqId, utils.sftp.STATUS_CODE.EOF); | ||
} | ||
ctx.debug(`client trying to list ${path}`); | ||
const filePaths = Object.keys(files).filter((filePath) => filePath.match(`${path}/[^/]*`)); | ||
readDirectories[path] = true; | ||
return sftp.name(reqId, filePaths.map((filePath) => ({ | ||
filename: filePath, | ||
longname: filePath, | ||
attrs: { | ||
atime: files[filePath].atime, | ||
mtime: files[filePath].mtime, | ||
gid: files[filePath].gid, | ||
uid: files[filePath].uid, | ||
mode: files[filePath].mode, | ||
size: files[filePath].size, | ||
}, | ||
}))); | ||
}); | ||
}; | ||
@@ -97,2 +128,2 @@ function handleSftpOpen(files, ctx, sftp) { | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Z0cC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvc2Z0cC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx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sQ0FBQyxDQUFDO0lBQzdELENBQUMsQ0FBQyxFQUFFLENBQUMsS0FBSyxDQUFDLFFBQVEsRUFBRSxFQUFFLE9BQU8sQ0FBQyxDQUFDO0lBRWhDLE1BQU0sSUFBSSxDQUFDLE1BQU0sQ0FBQyxNQUFNLENBQUMsdUJBQXVCLENBQUMsQ0FBQztJQUNsRCxDQUFDLENBQUMsV0FBVyxDQUFDLEdBQUcsRUFBRSxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsR0FBRyxDQUFDLHVCQUF1QixDQUFDLENBQUMsQ0FBQztJQUM5RCxPQUFPO0lBRVAsTUFBTSxPQUFPLENBQUMsSUFBSSxDQUFDLENBQUM7QUFDdEIsQ0FBQyxDQUFDLENBQUMifQ== | ||
test.serial('can read from directory', async (t) => { | ||
// GIVEN | ||
const data = await setup({ | ||
port: String(port), | ||
users: { | ||
test: { password: 'test' }, | ||
}, | ||
}); | ||
await data.client.connect({ | ||
host: '127.0.0.1', | ||
port, | ||
username: 'test', | ||
password: 'test', | ||
}); | ||
const content = 'My file content is awesome'; | ||
// WHEN | ||
await data.client.put(Buffer.from(content), '/test/file.txt'); | ||
const files = await data.client.list('/test'); | ||
// THEN | ||
t.is(files.length, 1); | ||
t.throwsAsync(() => data.client.list('/unknown')); | ||
await cleanup(data); | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2Z0cC5zcGVjLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi9zZnRwLnNwZWMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxJQUFJLE1BQU0sS0FBSyxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxLQUFLLEVBQUUsT0FBTyxFQUFFLE1BQU0sU0FBUyxDQUFDO0FBRXpDLE1BQU0sSUFBSSxHQUFHLElBQUksQ0FBQyxLQUFLLENBQUMsSUFBSSxD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E1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLEVBQUUsZ0JBQWdCLENBQUMsQ0FBQztJQUM5RCxNQUFNLEtBQUssR0FBRyxNQUFNLElBQUksQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDO0lBRTlDLE9BQU87SUFDUCxDQUFDLENBQUMsRUFBRSxDQUFDLEtBQUssQ0FBQyxNQUFNLEVBQUUsQ0FBQyxDQUFDLENBQUM7SUFFdEIsQ0FBQyxDQUFDLFdBQVcsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxVQUFVLENBQUMsQ0FBQyxDQUFDO0lBRWxELE1BQU0sT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFDO0FBQ3RCLENBQUMsQ0FBQyxDQUFDIn0= |
@@ -5,2 +5,9 @@ # Changelog | ||
### [0.0.4](https://github.com/MollardMichael/sftp-mock-server/compare/v0.0.3...v0.0.4) (2022-09-11) | ||
### Features | ||
* add ability to list directory ([4debe6c](https://github.com/MollardMichael/sftp-mock-server/commit/4debe6cb622e929bdb4bcfd590fd0ed036cf1868)) | ||
### 0.0.3 (2022-09-11) | ||
@@ -7,0 +14,0 @@ |
{ | ||
"name": "@micham/sftp-mock-server", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Implementation sftp server on node to use in tests", | ||
@@ -5,0 +5,0 @@ "main": "build/main/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
106649
1212