Add forge spread toggles for WinRM and Linux LOTL
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user