Published source
Download source ZIP
CH-J Server Manager
Browse directories and files for a specific application release.
Source is provided under the CH-J Proprietary Software License 1.14. Its availability does not change the license terms or grant additional rights.
1
"use strict";3
const test = require("node:test");4
const assert = require("node:assert/strict");5
const path = require("node:path");6
const { spawnSync } = require("node:child_process");8
const scenarios = ["metadata", "move-failure", "disk-full", "post-rename-disconnect", "conflict", "upload-incomplete",9
"target-symlink", "target-hardlink", "target-fifo", "workspace-symlink", "temporary-symlink", "metadata-failure",10
"concurrent-target-replacement", "cross-filesystem-strategy", "acl", "existing-temporary"];11
for (const scenario of scenarios) {12
test("Linux remote editor filesystem: " + scenario, { skip: process.platform !== "linux" ? "Requires Linux and Python 3; no remote SSH server configured." : false }, (t) => {13
const result = spawnSync("python3", [path.join(__dirname, "fixtures/remoteEditorLinux.py"),14
path.join(__dirname, "../src/main/files/remoteEditor.py"), scenario], { encoding: "utf8", timeout: 10000 });15
assert.ifError(result.error);16
if (result.status === 77) { t.skip(result.stdout.trim()); return; }17
assert.equal(result.status, 0, result.stderr + result.stdout);18
assert.equal(result.stdout.trim(), "ok");19
});20
}SHA-256: ff8d1e7e721887b4cdb4eaf351c02adef3ea1cee402cd727a4e3518d82f27e73
Archive SHA-256: 5ac91caf4fa32a6fdb114f2430deed486fbe7489d5eea343d1f034169fafb5e0