Add forge spread toggles for WinRM and Linux LOTL
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled

This commit is contained in:
AetherForge
2026-06-07 00:43:21 -07:00
parent 9ad4cce194
commit 6761d4285c
13 changed files with 204 additions and 3 deletions

View File

@@ -45,6 +45,19 @@ describe('forgeFormNormalize', () => {
expect(out.target_arch).toBe('amd64');
});
it('linux target clears Windows-only spread flags', () => {
const out = normalizeForgeForm(
baseForm({ target_os: 'linux', target_arch: 'amd64', winrm_spread: true, com_hijack_persist: true })
);
expect(out.winrm_spread).toBe(false);
expect(out.com_hijack_persist).toBe(false);
});
it('windows target clears linux lotl mode', () => {
const out = normalizeForgeForm(baseForm({ target_os: 'windows', linux_lotl_mode: 'both' }));
expect(out.linux_lotl_mode).toBe('off');
});
it('single deliverable cannot stay universal', () => {
const out = applyDeliverableType(baseForm({ target_os: 'universal' }), 'single');
expect(out.target_os).toBe('windows');