Assessor_2.0/tests/importers/html-timeout-fixture.mjs

7 lines
777 B
JavaScript

/** Entirely synthetic: long valueless attribute plus repeated local references. */
export function htmlTimeoutFixture() {
const rules = Array.from({ length: 40 }, (_, index) => `<article><h3>Synthetic rule</h3><strong>Rule ID:</strong><p>S-${index}</p><strong>Details:</strong><p><a href="#detail-${index}">Related</a></p></article>`).join('');
const details = Array.from({ length: 40 }, (_, index) => `<div id="detail-${index}"><table><tr><th>Host</th></tr><tr><td>host-${index}</td></tr></table></div>`).join('');
return `<html><title>PingCastle Healthcheck</title><body><!--${'x'.repeat(3_100_000)}--><div ${'x'.repeat(50_000)}></div><h2 class="indicator-header">Stale Objects rule details [40 rules matched on a total of 60]</h2>${rules}${details}</body></html>`;
}