Enforce customer boundaries on token administration and finalize fleet navigation
This commit is contained in:
@@ -53,6 +53,8 @@ function checkJob(plan, expected, script) {
|
||||
assert(expected.request.parameters.variants.length === 1 && expected.request.parameters.variants[0].script_utf8 === script
|
||||
&& expected.request.parameters.expected_stdout === 'RMM_CRASH_COUNT=1\n');
|
||||
await page.getByRole('checkbox', { name: 'Ziel ' + expected.asset_id, exact: true }).check();
|
||||
await page.getByRole('link', { name: 'Aufträge', exact: true }).click();
|
||||
await page.getByRole('link', { name: 'Auftrag planen', exact: true }).click();
|
||||
await page.getByLabel('Aktion', { exact: true }).selectOption('run_script');
|
||||
await page.getByRole('combobox', { name: 'Interpreter', exact: true }).selectOption('posix_sh');
|
||||
await page.getByLabel('Exakte UTF-8 Skriptbytes', { exact: false }).fill(script);
|
||||
@@ -77,6 +79,7 @@ function checkJob(plan, expected, script) {
|
||||
fs.writeFileSync(expected.output_file, JSON.stringify({ plan, operation: pending }), { flag: 'wx', mode: 0o600 });
|
||||
} else {
|
||||
assert(expected.phase === 'approve');
|
||||
await page.getByRole('link', { name: 'Aufträge', exact: true }).click();
|
||||
await page.getByRole('button', { name: expected.operation_id, exact: true }).click();
|
||||
const operation = page.locator('section').filter({ has: page.getByRole('heading', { name: 'Antrag / Ausführung ' + expected.operation_id, exact: true }) });
|
||||
const pending = JSON.parse(await operation.locator('pre').first().innerText());
|
||||
|
||||
Reference in New Issue
Block a user