Recheck the submitting principal and protect stored log output
This commit is contained in:
@@ -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');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user