Skip to content

End-to-end tests

End-to-end tests #41

Triggered via schedule January 2, 2025 02:39
Status Success
Total duration 11m 53s
Artifacts
Matrix: End-to-end test suite
Fit to window
Zoom out
Zoom in

Annotations

7 errors, 10 warnings, and 18 notices
[chromium] › detect-pages-scan.test.ts:84:7 › Detect pages scan › should NOT be banned if too many try (because disabled bounce): __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
[chromium] › detect-pages-scan.test.ts:151:7 › Detect pages scan › should NOT be banned if too many try (because disabled local ban): __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
[chromium] › detect-pages-scan.test.ts:84:7 › Detect pages scan › should NOT be banned if too many try (because disabled bounce): __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
[chromium] › detect-pages-scan.test.ts:151:7 › Detect pages scan › should NOT be banned if too many try (because disabled local ban): __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
[chromium] › cron.test.ts:40:7 › Cron test › can push signals by cron: __tests__/cron.test.ts#L43
1) [chromium] › cron.test.ts:40:7 › Cron test › can push signals by cron ───────────────────────── Error: expect(received).toMatch(expected) Expected pattern: /Signals have been pushed/ Received string: "[2025-01-02T02:49:08.920088+00:00] crowdsec-engine.DEBUG: Instantiate client ***\"type\":\"CLIENT_INIT\",\"configs\":***\"env\":\"dev\",\"api_timeout\":120,\"scenarios\":[\"shield/markspam\",\"crowdsecurity/http-crawl-non_statics\",\"crowdsecurity/jira_cve-2021-26086\",\"crowdsecurity/http-sensitive-files\",\"crowdsecurity/http-backdoors-attempts\",\"shield/btinvalidscript\",\"shield/btxml\",\"shield/btauthorfishing\",\"crowdsecurity/http-bad-user-agent\",\"crowdsecurity/fortinet-cve-2018-13379\",\"crowdsecurity/pulse-secure-sslvpn-cve-2019-11510\",\"crowdsecurity/f5-big-ip-cve-2020-5902\",\"crowdsecurity/http-cve-2021-41773\",\"crowdsecurity/http-cve-2021-42013\",\"crowdsecurity/grafana-cve-2021-43798\",\"crowdsecurity/apache_log4j2_cve-2021-44228\",\"crowdsecurity/spring4shell_cve-2022-22965\",\"crowdsecurity/CVE-2022-26134\",\"crowdsecurity/CVE-2022-35914\",\"crowdsecurity/CVE-2022-37042\",\"crowdsecurity/CVE-2022-40684\",\"crowdsecurity/CVE-2022-41082\",\"crowdsecurity/CVE-2022-41697\",\"crowdsecurity/CVE-2022-42889\",\"crowdsecurity/CVE-2022-44877\",\"crowdsecurity/CVE-2022-46169\",\"crowdsecurity/http-generic-bf\",\"crowdsecurity/netgear_rce\",\"crowdsecurity/http-path-traversal-probing\",\"crowdsecurity/http-open-proxy\",\"crowdsecurity/http-probing\",\"crowdsecurity/http-sqli-probing\",\"crowdsecurity/CVE-2019-18935\",\"crowdsecurity/thinkphp-cve-2018-20062\",\"shield/ratelimit\",\"shield/humanspam\",\"crowdsecurity/vmware-vcenter-vmsa-2021-0027\",\"crowdsecurity/vmware-cve-2022-22954\",\"crowdsecurity/http-w00tw00t\",\"crowdsecurity/http-xss-probing\",\"drupal/core-ban\",\"drupal/auth-bruteforce\",\"drupal/4xx-scan\",\"magento2/user-enum\",\"magento2/pages-scan\",\"crowdsecurity/http-logs\"],\"user_agent_suffix\":\"magento2\",\"user_agent_version\":\"v1.1.1\",\"api_connect_timeout\":300,\"api_url\":\"https://api.dev.crowdsec.net/v3/\",\"api_key\":\"***\"*** [] [2025-01-02T02:49:08.921504+00:00] crowdsec-engine.DEBUG: Last push is too recent ***\"delay\":10,\"0\":***\"candidates\":0,\"pushed\":0,\"errors\":0*** [] " 41 | await runCronPage.pushSignals(); 42 | const logContent = await getFileContent(LOG_PATH); > 43 | expect(logContent).toMatch(new RegExp(`Signals have been pushed`)); | ^ 44 | ***); 45 | ***); 46 | at /var/www/html/my-own-modules/crowdsec-engine/Test/EndToEnd/__tests__/cron.test.ts:43:24
[chromium] › detect-pages-scan.test.ts:84:7 › Detect pages scan › should NOT be banned if too many try (because disabled bounce): __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
[chromium] › detect-pages-scan.test.ts:151:7 › Detect pages scan › should NOT be banned if too many try (because disabled local ban): __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
End-to-end test suite (2.3.7-p4, 7.4)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Slow Test: [chromium] › config.test.ts#L1
[chromium] › config.test.ts took 18.4s
Slow Test: [chromium] › add-alert.test.ts#L1
[chromium] › add-alert.test.ts took 21.2s
Slow Test: [chromium] › reports.test.ts#L1
[chromium] › reports.test.ts took 50.3s
End-to-end test suite (2.4.6, 8.2)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Slow Test: [chromium] › add-alert.test.ts#L1
[chromium] › add-alert.test.ts took 21.2s
Slow Test: [chromium] › reports.test.ts#L1
[chromium] › reports.test.ts took 56.7s
End-to-end test suite (2.4.7, 8.3)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Slow Test: [chromium] › reports.test.ts#L1
[chromium] › reports.test.ts took 1.0m
Slow Test: [chromium] › add-alert.test.ts#L1
[chromium] › add-alert.test.ts took 20.4s
🎭 Playwright Run Summary
5 passed (27.7s)
🎭 Playwright Run Summary
6 passed (8.2s)
🎭 Playwright Run Summary
7 passed (26.7s)
🎭 Playwright Run Summary
3 passed (17.7s)
🎭 Playwright Run Summary
7 passed (55.8s)
🎭 Playwright Run Summary
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.7m)
🎭 Playwright Run Summary
3 passed (17.3s)
🎭 Playwright Run Summary
7 passed (26.5s)
🎭 Playwright Run Summary
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.8m)
🎭 Playwright Run Summary
7 passed (1.0m)
🎭 Playwright Run Summary
5 passed (18.5s)
🎭 Playwright Run Summary
1 flaky [chromium] › cron.test.ts:40:7 › Cron test › can push signals by cron ────────────────────────── 5 passed (8.8s)
🎭 Playwright Run Summary
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.7m)
🎭 Playwright Run Summary
7 passed (1.1m)
🎭 Playwright Run Summary
5 passed (19.1s)
🎭 Playwright Run Summary
3 passed (16.2s)
🎭 Playwright Run Summary
7 passed (25.7s)
🎭 Playwright Run Summary
6 passed (7.8s)