mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-10-08 10:56:13 -08:00
Persist central network intent and compile complete per-device configs with secure credentials, ACL policy, and dedicated Gateway runtimes. Expose network, credential, device registry, and runtime observation APIs. Treat central management and external Console as alternative consumers of the upstream ClientManager. Register central devices through a local webhook handler and publish through existing runtime reconciliation. Serialize public mutations with enrollment, reject direct credential changes to managed instances, and retain REST revision invalidation. Keep Gateway lifecycle publication in the central service and remove obsolete incremental result bookkeeping. Restore persisted networks and retire orphan runtimes through the same serialized publisher. Add Core and protocol support for Gateway and WireGuard management, including GUI bindings and serialized GUI config writes. Bootstrap IPv4 for DHCP-only networks and retain assigned addresses without peer IPv4. Cover intent transactions, complete configuration publication, offline recovery, authentication, revocation, Gateway lifecycle, and DHCP. Validate central candidates before persistence using Core URL, config, and portal-client rules. Reject unsupported peer schemes, unconvertible proxy subnets, and invalid portal clients without changing live intent. Expose existing pure Core validators without changing runtime behavior. Gate API-facing credential validation on API-enabled Core builds so minimal WASM targets do not reference omitted management types. Preserve session-backed device views in external Console mode. Bound Gateway admissions without cancelling transport upgrades, and cancel pending peer handshakes before retiring runtimes. Batch registry reads and bound runtime observation concurrency. Randomize DHCP bootstrap and conflict retries, keep an advertised current subnet, and select fallback subnets deterministically. Cover concurrent startup, Gateway admission lifetime, and external Console regressions. Allow DHCP bootstrap with no remote routes. Count network members through one tenant-scoped query without write transactions. Cover zero- peer allocation and tenant/empty-network counts. Preserve direct Web configurations and disabled states in central device snapshots. Remove obsolete central rows atomically with membership changes. Stop online managed instances before deleting or blocking devices, retaining intent when shutdown or deletion fails. Persist automatic IPv4 allocations separately from manual overrides so subnet changes reallocate only automatic members. Normalize mapped proxy routes to their advertised CIDRs when granting temporary credentials. Cover publication, deletion rollback, subnet migration, and grant updates. Read central intent in deferred transactions so polling does not reserve the SQLite writer lock. Test reads with an active writer and assert the temporary-member secret constraint using a valid device fixture. Persist patched WireGuard clients from the saved Web or GUI candidate without a follow-up RPC. Preserve pending settings and ownership, and cover disconnects and failed patches. Resolve named credential and config mutations against the live Core instance before checking central ownership. Forward authorized mutations by UUID on the same session, including while network renames are pending. Cover all mutation methods and preserve direct Console behavior. * feat(web-ui): add central network console and WireGuard management Add network and device views with central membership, credentials, ACL policy, temporary peers, and per-instance runtime details. Update console navigation, styling, theme handling, and API clients. Extend shared configuration and status components for central networks. Add a WireGuard portal dialog for setup and running-device management, with matching translations and network configuration types. Use secure UUID generation on HTTP, discard stale member configuration responses, and stop node-detail polling when the component unmounts. Update frontend workspace dependencies and include component, dashboard, configuration serialization, and central console end-to-end tests. Add isolated real-Core E2E coverage for central data-plane traffic, ACL, DHCP, recovery, device lifecycle, and native WireGuard clients. Record all 59 functional checks with evidence and confirmed validation/UI defects; keep runtime artifacts and test credentials out of Git. Normalize protobuf logger levels and render translated labels correctly. Cover all six levels across setting, reload, and language changes. Add real configuration-rejection E2E checks for database and Core stability and uninterrupted traffic, and record the resolved audit findings. Gate central navigation and registry actions by console mode. Refresh WireGuard settings on mounted status views and preserve explicit portal listener endpoints. Explain the trusted permanent-member ACL boundary. Cover external Console rendering, portal refresh retries and teardown, and explicit IPv4/IPv6 listener exports. Preserve PublicServer discovery when saving its settings, including when its URL matches the Gateway. Cover renaming and endpoint edits in the browser. Display automatic member addresses without converting them to manual overrides during edits. Derive offline address prefixes from the network subnet. Add browser regression coverage and real-Core checks for direct configuration preservation, temporary proxy mappings, automatic subnet migration, and shutdown before device deletion. Build enrollment commands from the configured API hostname, including IPv6 and relative endpoints. Use the PublicServer connector in temporary credential CLI and TOML exports. Add browser regression coverage. Preserve form credentials across repeated normalization and GUI storage reloads. Keep explicit form values authoritative over backend keys and cover JSON persistence, idempotence, replacement, and clearing.
363 lines
18 KiB
JavaScript
363 lines
18 KiB
JavaScript
import assert from 'node:assert/strict';
|
|
import { spawn, spawnSync } from 'node:child_process';
|
|
import { mkdtemp, mkdir, readFile, readdir, rm } from 'node:fs/promises';
|
|
import { createServer } from 'node:net';
|
|
import { dirname, join, resolve } from 'node:path';
|
|
import { setTimeout as delay } from 'node:timers/promises';
|
|
import { fileURLToPath } from 'node:url';
|
|
import { DatabaseSync } from 'node:sqlite';
|
|
import { test } from 'node:test';
|
|
import { chromium } from 'playwright';
|
|
|
|
const repo = resolve(dirname(fileURLToPath(import.meta.url)), '../../..');
|
|
const webBinary = join(repo, 'target/debug/easytier-web');
|
|
const coreBinary = join(repo, 'target/debug/easytier-core');
|
|
const cliBinary = join(repo, 'target/debug/easytier-cli');
|
|
const username = 'central-e2e';
|
|
const password = 'e2e-password';
|
|
const machineId = '00000000-0000-0000-0000-000000000002';
|
|
// Argon2id of the MD5 digest sent by the frontend for the test password.
|
|
const passwordHash = '$argon2id$v=19$m=4096,t=3,p=1$ZWFzeXRpZXItZTJlLXNhbHQ$FHbDjVElaTXuArgEEQrQrO4AdsnqNOcXGA5PFY8cG/s';
|
|
|
|
function docker(...args) {
|
|
const result = spawnSync('docker', ['exec', 'rust', ...args], { encoding: 'utf8' });
|
|
if (result.status !== 0) throw new Error(result.stderr || result.stdout);
|
|
return result.stdout.trim();
|
|
}
|
|
|
|
function buildCoreForDocker() {
|
|
docker('sh', '-c', 'cd "$1" && cargo build -p easytier --bins && chown -R "$2:$3" target',
|
|
'e2e-build', repo, String(process.getuid()), String(process.getgid()));
|
|
}
|
|
|
|
function freePort() {
|
|
return new Promise((resolvePort, reject) => {
|
|
const server = createServer();
|
|
server.once('error', reject);
|
|
server.listen(0, '0.0.0.0', () => {
|
|
const port = server.address().port;
|
|
server.close(() => resolvePort(port));
|
|
});
|
|
});
|
|
}
|
|
|
|
async function waitFor(check, label, timeout = 30000) {
|
|
const deadline = Date.now() + timeout;
|
|
while (Date.now() < deadline) {
|
|
const result = await check().catch(() => null);
|
|
if (result) return result;
|
|
await delay(250);
|
|
}
|
|
throw new Error(`Timed out waiting for ${label}`);
|
|
}
|
|
|
|
function startWeb(database, apiPort, configPort, gatewayHost) {
|
|
const child = spawn(webBinary, [
|
|
'--db', database,
|
|
'--api-server-addr', '127.0.0.1',
|
|
'--api-server-port', String(apiPort),
|
|
'--config-server-protocol', 'tcp',
|
|
'--config-server-port', String(configPort),
|
|
'--gateway-peer-url', `tcp://${gatewayHost}:${configPort}`,
|
|
'--console-log-level', 'error',
|
|
], { stdio: ['ignore', 'pipe', 'pipe'] });
|
|
let output = '';
|
|
for (const stream of [child.stdout, child.stderr]) {
|
|
stream.on('data', chunk => { output = (output + chunk).slice(-12000); });
|
|
}
|
|
return { child, logs: () => output };
|
|
}
|
|
|
|
async function stopWeb(web) {
|
|
web.child.kill('SIGINT');
|
|
if (web.child.exitCode === null) {
|
|
await Promise.race([new Promise(resolveExit => web.child.once('exit', resolveExit)), delay(3000)]);
|
|
}
|
|
}
|
|
|
|
function startCore(coreConfig, gatewayHost, configPort) {
|
|
const child = spawn('docker', ['exec', 'rust', 'sh', '-c', `
|
|
echo $$ > ${coreConfig}/core.pid
|
|
exec ${coreBinary} \
|
|
--config-server tcp://${gatewayHost}:${configPort}/${username} \
|
|
--machine-id ${machineId} --config-dir ${coreConfig} \
|
|
--no-listener --hostname e2e-device --console-log-level error
|
|
`], { stdio: ['ignore', 'pipe', 'pipe'] });
|
|
let output = '';
|
|
for (const stream of [child.stdout, child.stderr]) {
|
|
stream.on('data', chunk => { output = (output + chunk).slice(-12000); });
|
|
}
|
|
return { child, logs: () => output };
|
|
}
|
|
|
|
function startCredentialCore(coreConfig, networkName, credential, peerUrl, hostname, rpcPort) {
|
|
const child = spawn('docker', ['exec', 'rust', 'sh', '-c', `
|
|
echo $$ > "$1/core.pid"
|
|
exec "$2" --network-name "$3" --secure-mode --credential "$4" \
|
|
-p "$5" --no-listener --no-tun --hostname "$6" \
|
|
--rpc-portal "127.0.0.1:$7" --console-log-level error
|
|
`, 'credential-core', coreConfig, coreBinary, networkName, credential, peerUrl, hostname, String(rpcPort)],
|
|
{ stdio: ['ignore', 'pipe', 'pipe'] });
|
|
let output = '';
|
|
for (const stream of [child.stdout, child.stderr]) {
|
|
stream.on('data', chunk => { output = (output + chunk).slice(-12000); });
|
|
}
|
|
return { child, logs: () => output };
|
|
}
|
|
|
|
function credentialPeers(rpcPort) {
|
|
return JSON.parse(docker(cliBinary, '--rpc-portal', `127.0.0.1:${rpcPort}`, '--output', 'json', 'peer'));
|
|
}
|
|
|
|
async function stopCore(core, coreConfig) {
|
|
if (!core) return;
|
|
const pid = await readFile(join(coreConfig, 'core.pid'), 'utf8').catch(() => null);
|
|
if (pid) {
|
|
try { docker('kill', '-INT', pid.trim()); } catch { /* Core already exited. */ }
|
|
}
|
|
if (core.child.exitCode === null) {
|
|
await Promise.race([new Promise(resolveExit => core.child.once('exit', resolveExit)), delay(3000)]);
|
|
if (core.child.exitCode === null) core.child.kill('SIGTERM');
|
|
}
|
|
}
|
|
|
|
function seedUser(database) {
|
|
const db = new DatabaseSync(database);
|
|
try {
|
|
const user = db.prepare('INSERT INTO users(username, password) VALUES (?, ?)')
|
|
.run(username, passwordHash);
|
|
const group = db.prepare("SELECT id FROM groups WHERE name = 'users'").get();
|
|
db.prepare('INSERT INTO users_groups(user_id, group_id) VALUES (?, ?)')
|
|
.run(user.lastInsertRowid, group.id);
|
|
} finally {
|
|
db.close();
|
|
}
|
|
}
|
|
|
|
async function login(page) {
|
|
await page.goto('/');
|
|
await page.locator('#username').fill(username);
|
|
await page.locator('#password input').fill(password);
|
|
await page.getByRole('button', { name: 'Login', exact: true }).click();
|
|
await page.locator('.console-page').waitFor();
|
|
}
|
|
|
|
async function api(context, path) {
|
|
const response = await context.request.get(`/api/v1${path}`);
|
|
assert.equal(response.status(), 200, `${path}: ${await response.text()}`);
|
|
return response.json();
|
|
}
|
|
|
|
function protoUuid(uuid) {
|
|
const hex = uuid.replaceAll('-', '');
|
|
return Object.fromEntries([0, 1, 2, 3].map(index =>
|
|
[`part${index + 1}`, parseInt(hex.slice(index * 8, index * 8 + 8), 16)]));
|
|
}
|
|
|
|
async function nodeRpc(context, networkId, method) {
|
|
const response = await context.request.post(`/api/v1/machines/${machineId}/proxy-rpc`, {
|
|
data: {
|
|
service_name: 'api.instance.PeerManageRpcService',
|
|
method_name: method,
|
|
payload: { instance: { id: protoUuid(networkId) } },
|
|
},
|
|
});
|
|
assert.equal(response.status(), 200, await response.text());
|
|
return response.json();
|
|
}
|
|
|
|
test('browser, Web API, database and Core agree on central network lifecycle', { timeout: 300000 }, async () => {
|
|
buildCoreForDocker();
|
|
const temp = await mkdtemp(join(repo, '.central-e2e-'));
|
|
const database = join(temp, 'web.db');
|
|
const coreConfig = join(temp, 'core');
|
|
const credentialConfigs = [join(temp, 'credential-one'), join(temp, 'credential-two')];
|
|
await mkdir(coreConfig);
|
|
for (const config of credentialConfigs) await mkdir(config);
|
|
const apiPort = await freePort();
|
|
const configPort = await freePort();
|
|
const credentialRpcPorts = [await freePort(), await freePort()];
|
|
const gatewayHostname = (await readFile('/etc/hostname', 'utf8')).trim() || 'easytier-web-gateway';
|
|
const base = `http://127.0.0.1:${apiPort}`;
|
|
const route = docker('sh', '-c', 'ip route');
|
|
const gatewayHost = route.match(/default via ([\d.]+)/)?.[1];
|
|
assert.ok(gatewayHost, `Docker bridge gateway missing: ${route}`);
|
|
docker(coreBinary, '--version');
|
|
docker(cliBinary, '--version');
|
|
let web = startWeb(database, apiPort, configPort, gatewayHost);
|
|
let core;
|
|
const credentialCores = [];
|
|
let browser;
|
|
try {
|
|
await waitFor(async () => (await fetch(`${base}/api_meta.js`)).ok, 'Web server');
|
|
seedUser(database);
|
|
browser = await chromium.launch({ headless: true });
|
|
const context = await browser.newContext({ baseURL: base });
|
|
await context.addInitScript(() => localStorage.setItem('lang', 'en'));
|
|
const page = await context.newPage();
|
|
await login(page);
|
|
|
|
core = startCore(coreConfig, gatewayHost, configPort);
|
|
await waitFor(async () => {
|
|
const { machines } = await api(context, '/machines');
|
|
return machines.some(machine => machine.info.hostname === 'e2e-device');
|
|
}, 'Core enrollment');
|
|
await page.goto('/#/h/networks');
|
|
await page.getByRole('button', { name: 'Create Network', exact: true }).click();
|
|
await page.locator('#network-display-name').fill('E2E Network');
|
|
await page.getByRole('dialog').getByRole('button', { name: 'Confirm', exact: true }).click();
|
|
await page.waitForURL(/\/networks\/[0-9a-f-]{36}$/);
|
|
const networkId = page.url().split('/').at(-1);
|
|
|
|
await page.getByRole('button', { name: 'Add Devices' }).click();
|
|
const dialog = page.getByRole('dialog', { name: 'Add Devices' });
|
|
await dialog.getByText('e2e-device').waitFor();
|
|
await dialog.getByRole('row', { name: /e2e-device/ }).getByRole('checkbox').check();
|
|
await dialog.getByRole('button', { name: 'Confirm' }).click();
|
|
await waitFor(async () => {
|
|
const { members } = await api(context, `/networks/${networkId}/members`);
|
|
return members.find(member => member.device_id === machineId && member.running);
|
|
}, 'managed Core instance', 45000);
|
|
await waitFor(async () => {
|
|
return (await nodeRpc(context, networkId, 'list_peer')).peer_infos?.length > 0;
|
|
}, 'Core peer connection', 15000);
|
|
await waitFor(async () => {
|
|
const routes = (await nodeRpc(context, networkId, 'list_route')).routes ?? [];
|
|
return routes.length > 0;
|
|
}, 'Core route through the Gateway', 15000);
|
|
|
|
const network = await api(context, `/networks/${networkId}`);
|
|
assert.equal(network.secure_mode, true);
|
|
const issued = await context.request.post(`/api/v1/networks/${networkId}/credentials`, {
|
|
data: { ttl_seconds: 3600, reusable: true, credential_id: 'e2e-shared' },
|
|
});
|
|
assert.equal(issued.status(), 200, await issued.text());
|
|
const credential = await issued.json();
|
|
const credentialPeerUrl = `tcp://${gatewayHost}:${configPort}`;
|
|
for (const [index, hostname] of ['e2e-temp-a', 'e2e-temp-b'].entries()) {
|
|
credentialCores.push(startCredentialCore(
|
|
credentialConfigs[index], network.network_name, credential.credential_secret,
|
|
credentialPeerUrl, hostname, credentialRpcPorts[index],
|
|
));
|
|
}
|
|
const onlinePeers = await waitFor(async () => {
|
|
const { credentials } = await api(context, `/networks/${networkId}/credentials`);
|
|
const peers = credentials.find(item => item.credential_id === 'e2e-shared')?.online_peers;
|
|
return peers?.length === 2 ? peers : null;
|
|
}, 'both credential peers online', 45000);
|
|
assert.deepEqual(onlinePeers.map(peer => peer.hostname).sort(), ['e2e-temp-a', 'e2e-temp-b']);
|
|
assert.equal(new Set(onlinePeers.map(peer => peer.peer_id)).size, 2);
|
|
const { temporary_peers: memberPeers } = await api(context, `/networks/${networkId}/members`);
|
|
assert.deepEqual(memberPeers.map(peer => peer.hostname).sort(), ['e2e-temp-a', 'e2e-temp-b']);
|
|
await waitFor(async () => credentialRpcPorts.every(port =>
|
|
credentialPeers(port).some(peer => peer.hostname === gatewayHostname)),
|
|
'both credential Cores connected to Gateway');
|
|
await page.reload();
|
|
await page.getByRole('cell', { name: /e2e-temp-a/ }).waitFor();
|
|
await page.getByRole('cell', { name: /e2e-temp-b/ }).waitFor();
|
|
await page.getByRole('tab', { name: 'Credentials' }).click();
|
|
await page.getByRole('cell', { name: /e2e-temp-a/ }).waitFor();
|
|
await page.getByRole('cell', { name: /e2e-temp-b/ }).waitFor();
|
|
const revoked = await context.request.delete(`/api/v1/networks/${networkId}/credentials/e2e-shared`);
|
|
assert.equal(revoked.status(), 204, await revoked.text());
|
|
assert.deepEqual((await api(context, `/networks/${networkId}/members`)).temporary_peers, []);
|
|
await waitFor(async () => credentialRpcPorts.every(port =>
|
|
!credentialPeers(port).some(peer => peer.hostname === gatewayHostname)),
|
|
'revoked Core peers disconnected from Gateway');
|
|
await delay(6000);
|
|
assert.ok(credentialRpcPorts.every(port =>
|
|
!credentialPeers(port).some(peer => peer.hostname === gatewayHostname)),
|
|
'revoked credential Cores must not reconnect to Gateway');
|
|
assert.deepEqual((await api(context, `/networks/${networkId}/members`)).temporary_peers, [],
|
|
'revoked credential peers must not reconnect');
|
|
for (const [index, credentialCore] of credentialCores.entries()) {
|
|
await stopCore(credentialCore, credentialConfigs[index]);
|
|
}
|
|
credentialCores.length = 0;
|
|
|
|
const invalidMemberUpdate = await context.request.patch(`/api/v1/networks/${networkId}/members/${machineId}`, {
|
|
data: { proxy_cidrs: ['2001:db8::/64'] },
|
|
});
|
|
assert.equal(invalidMemberUpdate.status(), 400, await invalidMemberUpdate.text());
|
|
const memberUpdate = await context.request.patch(`/api/v1/networks/${networkId}/members/${machineId}`, {
|
|
data: { proxy_cidrs: ['198.18.240.0/24'] },
|
|
});
|
|
assert.equal(memberUpdate.status(), 200, await memberUpdate.text());
|
|
|
|
await page.getByRole('tab', { name: 'Access Control' }).click();
|
|
await page.getByRole('button', { name: 'Add Rule' }).click();
|
|
const drawer = page.locator('.p-drawer');
|
|
await drawer.locator('#acl-rule-name').fill('DNS and ping');
|
|
await drawer.locator('.p-multiselect').filter({ hasText: 'Search and choose the members that initiate access' }).click();
|
|
await page.getByRole('option', { name: /e2e-device/ }).click();
|
|
await page.keyboard.press('Escape');
|
|
await drawer.locator('.p-multiselect').filter({ hasText: 'Search and choose target members or subnets' }).click();
|
|
await page.getByRole('option', { name: /198\.18\.240\.0\/24/ }).click();
|
|
await page.keyboard.press('Escape');
|
|
await drawer.locator('label').filter({ hasText: 'UDP' }).locator('input[type="checkbox"]').check();
|
|
await drawer.locator('label').filter({ hasText: 'ICMP' }).locator('input[type="checkbox"]').check();
|
|
await drawer.getByRole('button', { name: 'DNS 53' }).click();
|
|
await drawer.getByRole('button', { name: 'Save Rule' }).click();
|
|
const saveResponse = page.waitForResponse(response =>
|
|
response.url().endsWith(`/api/v1/networks/${networkId}/acl-policy`)
|
|
&& response.request().method() === 'PUT');
|
|
await page.getByRole('button', { name: 'Save Policy' }).click();
|
|
const response = await saveResponse;
|
|
assert.equal(response.status(), 200, await response.text());
|
|
await page.getByText('Access policy saved').waitFor();
|
|
|
|
const saved = await api(context, `/networks/${networkId}/acl-policy`);
|
|
assert.equal(saved.policy.rules.length, 1);
|
|
assert.equal(saved.policy.rules[0].sources[0].type, 'member');
|
|
assert.deepEqual(saved.policy.rules[0].destinations[0], {
|
|
type: 'subnet', member_id: saved.policy.rules[0].sources[0].member_id,
|
|
cidrs: ['198.18.240.0/24'],
|
|
});
|
|
const deletion = await context.request.delete(`/api/v1/networks/${networkId}/members/${machineId}`);
|
|
assert.equal(deletion.status(), 204, await deletion.text());
|
|
const remaining = await api(context, `/networks/${networkId}/acl-policy`);
|
|
assert.equal(remaining.policy.rules.length, 0);
|
|
|
|
const addAgain = await context.request.post(`/api/v1/networks/${networkId}/members`, {
|
|
data: { device_ids: [machineId] },
|
|
});
|
|
assert.equal(addAgain.status(), 204, await addAgain.text());
|
|
await waitFor(async () => {
|
|
const { members } = await api(context, `/networks/${networkId}/members`);
|
|
return members.find(member => member.device_id === machineId && member.running);
|
|
}, 'restored Core instance', 45000);
|
|
assert.ok((await readdir(coreConfig)).includes(`${networkId}.toml`));
|
|
|
|
await stopCore(core, coreConfig);
|
|
core = undefined;
|
|
const offlineDelete = await context.request.delete(`/api/v1/networks/${networkId}/members/${machineId}`);
|
|
assert.equal(offlineDelete.status(), 204, await offlineDelete.text());
|
|
await stopWeb(web);
|
|
web = startWeb(database, apiPort, configPort, gatewayHost);
|
|
await waitFor(async () => (await fetch(`${base}/api_meta.js`)).ok, 'restarted Web server');
|
|
await login(page);
|
|
core = startCore(coreConfig, gatewayHost, configPort);
|
|
await waitFor(async () => {
|
|
const { machines } = await api(context, '/machines');
|
|
return machines.some(machine => machine.info.hostname === 'e2e-device' && machine.online);
|
|
}, 'Core reconnect after Web restart');
|
|
await waitFor(async () => {
|
|
const state = await api(context, `/machines/${machineId}/networks`);
|
|
return state.running_inst_ids?.length === 0;
|
|
}, 'offline managed config removal', 45000);
|
|
await waitFor(async () => !(await readdir(coreConfig)).includes(`${networkId}.toml`),
|
|
'removed Core config file');
|
|
assert.deepEqual((await api(context, `/networks/${networkId}/members`)).members, []);
|
|
} catch (error) {
|
|
throw new Error(`${error.message}\nWeb logs:\n${web.logs()}\nCore logs:\n${core?.logs() ?? ''}\nCredential Core logs:\n${credentialCores.map(item => item.logs()).join('\n')}`, { cause: error });
|
|
} finally {
|
|
await browser?.close();
|
|
for (const [index, credentialCore] of credentialCores.entries()) {
|
|
await stopCore(credentialCore, credentialConfigs[index]);
|
|
}
|
|
await stopCore(core, coreConfig);
|
|
await stopWeb(web);
|
|
await rm(temp, { recursive: true, force: true });
|
|
}
|
|
});
|