Skip to content

Added missing script to control graylog #337

Added missing script to control graylog

Added missing script to control graylog #337

Triggered via push December 8, 2023 13:13
Status Failure
Total duration 13m 57s
Artifacts

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

6 errors, 1 warning, and 1 notice
[chromium] › end_to_end.spec.js:15:1 › Plugin Logging Alert should be registered (issue #50): plugin/end_to_end/tests/end_to_end.spec.js#L21
1) [chromium] › end_to_end.spec.js:15:1 › Plugin Logging Alert should be registered (issue #50) ── Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: getByRole('button', { name: 'Logging' }) Expected string: "Logging Alert" Received string: "com.airbus_cyber_security.graylog.events.config.LoggingAlertConfig" Call log: - expect.toHaveText with timeout 5000ms - waiting for getByRole('button', { name: 'Logging' }) - locator resolved to <a href="#" role="button" title="com.airbus_cyber_s…>…</a> - unexpected value "com.airbus_cyber_security.graylog.events.config.LoggingAlertConfig" - locator resolved to <a href="#" role="button" title="com.airbus_cyber_s…>…</a> - unexpected value "com.airbus_cyber_security.graylog.events.config.LoggingAlertConfig" - locator resolved to <a href="#" role="button" title="com.airbus_cyber_s…>…</a> - unexpected value "com.airbus_cyber_security.graylog.events.config.LoggingAlertConfig" - locator resolved to <a href="#" role="button" title="com.airbus_cyber_s…>…</a> - unexpected value "com.airbus_cyber_security.graylog.events.config.LoggingAlertConfig" - locator resolved to <a href="#" role="button" title="com.airbus_cyber_s…>…</a> - unexpected value "com.airbus_cyber_security.graylog.events.config.LoggingAlertConfig" - locator resolved to <a href="#" role="button" title="com.airbus_cyber_s…>…</a> - unexpected value "com.airbus_cyber_security.graylog.events.config.LoggingAlertConfig" - locator resolved to <a href="#" role="button" title="com.airbus_cyber_s…>…</a> - unexpected value "com.airbus_cyber_security.graylog.events.config.LoggingAlertConfig" - locator resolved to <a href="#" role="button" title="com.airbus_cyber_s…>…</a> - unexpected value "com.airbus_cyber_security.graylog.events.config.LoggingAlertConfig" - locator resolved to <a href="#" role="button" title="com.airbus_cyber_s…>…</a> - unexpected value "com.airbus_cyber_security.graylog.events.config.LoggingAlertConfig" 19 | 20 | // note: could also be: await expect(page.getByText('Logging Alert')).toBeVisible(); > 21 | await expect(page.getByRole('button', { name: 'Logging' })).toHaveText('Logging Alert'); | ^ 22 | }); 23 | 24 | at /home/runner/work/graylog-plugin-logging-alert/graylog-plugin-logging-alert/plugin/end_to_end/tests/end_to_end.spec.js:21:63
[chromium] › end_to_end.spec.js:15:1 › Plugin Logging Alert should be registered (issue #50): plugin/end_to_end/tests/end_to_end.spec.js#L4
1) [chromium] › end_to_end.spec.js:15:1 › Plugin Logging Alert should be registered (issue #50) ── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 30000ms exceeded while running "beforeEach" hook. 2 | const { test, expect } = require('@playwright/test'); 3 | > 4 | test.beforeEach(async ({ page }) => { | ^ 5 | await page.goto('http://127.0.0.1:9000/'); 6 | // note: could also be: getByRole('textbox', { name: 'Username' }) 7 | await page.getByLabel('Username').fill('admin'); at /home/runner/work/graylog-plugin-logging-alert/graylog-plugin-logging-alert/plugin/end_to_end/tests/end_to_end.spec.js:4:6
[chromium] › end_to_end.spec.js:15:1 › Plugin Logging Alert should be registered (issue #50): plugin/end_to_end/tests/end_to_end.spec.js#L12
1) [chromium] › end_to_end.spec.js:15:1 › Plugin Logging Alert should be registered (issue #50) ── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for getByText('×Close') 10 | 11 | // TODO there will most probably be a problem here on the second test: this should only be done once. Find a way to set this state once and for all before (maybe there is some REST API for that...) > 12 | await page.getByText('×Close').click(); | ^ 13 | }); 14 | 15 | test('Plugin Logging Alert should be registered (issue #50)', async ({ page }) => { at /home/runner/work/graylog-plugin-logging-alert/graylog-plugin-logging-alert/plugin/end_to_end/tests/end_to_end.spec.js:12:34
[chromium] › end_to_end.spec.js:15:1 › Plugin Logging Alert should be registered (issue #50): plugin/end_to_end/tests/end_to_end.spec.js#L4
1) [chromium] › end_to_end.spec.js:15:1 › Plugin Logging Alert should be registered (issue #50) ── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 30000ms exceeded while running "beforeEach" hook. 2 | const { test, expect } = require('@playwright/test'); 3 | > 4 | test.beforeEach(async ({ page }) => { | ^ 5 | await page.goto('http://127.0.0.1:9000/'); 6 | // note: could also be: getByRole('textbox', { name: 'Username' }) 7 | await page.getByLabel('Username').fill('admin'); at /home/runner/work/graylog-plugin-logging-alert/graylog-plugin-logging-alert/plugin/end_to_end/tests/end_to_end.spec.js:4:6
[chromium] › end_to_end.spec.js:15:1 › Plugin Logging Alert should be registered (issue #50): plugin/end_to_end/tests/end_to_end.spec.js#L12
1) [chromium] › end_to_end.spec.js:15:1 › Plugin Logging Alert should be registered (issue #50) ── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: locator.click: Test timeout of 30000ms exceeded. Call log: - waiting for getByText('×Close') 10 | 11 | // TODO there will most probably be a problem here on the second test: this should only be done once. Find a way to set this state once and for all before (maybe there is some REST API for that...) > 12 | await page.getByText('×Close').click(); | ^ 13 | }); 14 | 15 | test('Plugin Logging Alert should be registered (issue #50)', async ({ page }) => { at /home/runner/work/graylog-plugin-logging-alert/graylog-plugin-logging-alert/plugin/end_to_end/tests/end_to_end.spec.js:12:34
build
Process completed with exit code 1.
build
No files were found with the provided path: plugin/end_to_end/playwright-report/. No artifacts will be uploaded.
🎭 Playwright Run Summary
1 failed [chromium] › end_to_end.spec.js:15:1 › Plugin Logging Alert should be registered (issue #50) ───