feat(metrics): Implement pushUsageMetrics method #9
Annotations
3 errors and 2 notices
Run detect pages scan test:
__tests__/detect-pages-scan.test.ts#L133
1) [chromium] › detect-pages-scan.test.ts:84:7 › Detect pages scan › should NOT be banned if too many try (because disabled bounce)
Error: Timed out 30000ms waiting for expect(locator).toContainText(expected)
Locator: locator('#signals_push_result')
Expected pattern: /0 errors for 1 candidates/
Received string: "0 pushed signals (0 errors for 0 candidates)."
Call log:
- expect.toContainText with timeout 30000ms
- waiting for locator('#signals_push_result')
34 × locator resolved to <p class="success" id="signals_push_result">0 pushed signals (0 errors for 0 candidates).</p>
- unexpected value "0 pushed signals (0 errors for 0 candidates)."
131 | await adminCrowdSecSecurityConfigPage.navigateTo();
132 | await adminCrowdSecSecurityConfigPage.pushSignals();
> 133 | await expect(page.locator("#signals_push_result")).toContainText(
| ^
134 | /0 errors for 1 candidates/,
135 | ***
136 | timeout: 30000,
at /var/www/html/my-own-modules/crowdsec-engine/Test/EndToEnd/__tests__/detect-pages-scan.test.ts:133:56
|
Run detect pages scan test:
pageObjects/luma/admin/crowdsec-security-config.ts#L71
1) [chromium] › detect-pages-scan.test.ts:84:7 › Detect pages scan › should NOT be banned if too many try (because disabled bounce)
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: Timed out 30000ms waiting for expect(locator).toContainText(expected)
Locator: locator('#signals_push_result')
Expected pattern: /pushed signals/
Received string: ""
Call log:
- expect.toContainText with timeout 30000ms
- waiting for locator('#signals_push_result')
34 × locator resolved to <p class="hidden" id="signals_push_result"></p>
- unexpected value ""
at ../pageObjects/luma/admin/crowdsec-security-config.ts:71
69 | public async pushSignals() ***
70 | await this.page.locator("#crowdsec_engine_crons_signals_push").click();
> 71 | await expect(this.page.locator("#signals_push_result")).toContainText(
| ^
72 | /pushed signals/,
73 | ***
74 | timeout: 30000,
at CrowdSecSecurityConfigPage.pushSignals (/var/www/html/my-own-modules/crowdsec-engine/Test/EndToEnd/pageObjects/luma/admin/crowdsec-security-config.ts:71:61)
at /var/www/html/my-own-modules/crowdsec-engine/Test/EndToEnd/__tests__/detect-pages-scan.test.ts:132:5
|
Run detect pages scan test
Process completed with exit code 1.
|
Run detect pages scan test
1 failed
[chromium] › detect-pages-scan.test.ts:84:7 › Detect pages scan › should NOT be banned if too many try (because disabled bounce)
4 passed (1.5m)
|
Run config test
5 passed (19.1s)
|
Loading