feat(*): Add methods to build and push usage metrics #7
Annotations
2 errors, 3 warnings, and 6 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:
__tests__/detect-pages-scan.test.ts#L205
2) [chromium] › detect-pages-scan.test.ts:151:7 › Detect pages scan › should NOT be banned if too many try (because disabled local ban)
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)."
203 | await adminCrowdSecSecurityConfigPage.navigateTo();
204 | await adminCrowdSecSecurityConfigPage.pushSignals();
> 205 | await expect(page.locator("#signals_push_result")).toContainText(
| ^
206 | /0 errors for 1 candidates/,
207 | ***
208 | timeout: 30000,
at /var/www/html/my-own-modules/crowdsec-engine/Test/EndToEnd/__tests__/detect-pages-scan.test.ts:205:56
|
Run alert test:
[chromium] › add-alert.test.ts#L1
[chromium] › add-alert.test.ts took 22.2s
|
Run reports test:
[chromium] › reports.test.ts#L1
[chromium] › reports.test.ts took 52.7s
|
Run config test:
[chromium] › config.test.ts#L1
[chromium] › config.test.ts took 20.5s
|
Run detect user enum test
3 passed (18.7s)
|
Run alert test
7 passed (27.8s)
|
Run cron test
6 passed (9.5s)
|
Run detect pages scan test
2 flaky
[chromium] › detect-pages-scan.test.ts:84:7 › Detect pages scan › should NOT be banned if too many try (because disabled bounce)
[chromium] › detect-pages-scan.test.ts:151:7 › Detect pages scan › should NOT be banned if too many try (because disabled local ban)
3 passed (1.9m)
|
Run reports test
7 passed (58.3s)
|
Run config test
5 passed (30.3s)
|
Loading