Recheck the submitting principal and protect stored log output

This commit is contained in:
2026-11-18 10:10:06 +01:00
parent db2f5b407d
commit 0f15f91f65
16 changed files with 788 additions and 209 deletions
+8
View File
@@ -66,3 +66,11 @@ it('selects the native PowerShell text view only from matching result evidence',
const other = renderToStaticMarkup(<ConsoleOutput job={{result:{...result,evidence:{interpreter:'posix_sh',output_encoding:'raw_native_bytes'}}}}/>);
expect(other).not.toContain('bösartig');
});
it('shows the stored exit code and permission message for a restricted log result', () => {
const html = renderToStaticMarkup(<ConsoleOutput job={{state:'succeeded', result:{output_restricted:true, exit_code:0}}}/>);
expect(html).toContain('Exitcode 0');
expect(html).toContain('Leseberechtigung');
expect(html).not.toContain('herunterladen');
expect(html).not.toContain('Noch kein gespeichertes Ergebnis');
});