diff --git a/changelog/unreleased/pr-27635.toml b/changelog/unreleased/pr-27635.toml new file mode 100644 index 000000000000..e0e795d4c6ef --- /dev/null +++ b/changelog/unreleased/pr-27635.toml @@ -0,0 +1,4 @@ +type = "fixed" +message = "Fix Collector onboarding source status section for the macOS Unified Logging source on unsupported platforms." + +pulls = ["27635"] diff --git a/graylog2-web-interface/src/components/collectors/overview/onboarding/SourceStatusSection.test.tsx b/graylog2-web-interface/src/components/collectors/overview/onboarding/SourceStatusSection.test.tsx index 589693701790..0d22a72cad30 100644 --- a/graylog2-web-interface/src/components/collectors/overview/onboarding/SourceStatusSection.test.tsx +++ b/graylog2-web-interface/src/components/collectors/overview/onboarding/SourceStatusSection.test.tsx @@ -98,13 +98,14 @@ describe('SourceStatusSection', () => { source({ id: 's1', type: 'journald', name: 'System Journal' }), source({ id: 's2', type: 'windows_event_log', name: 'Windows Event Log' }), source({ id: 's3', type: 'file', name: 'Syslog' }), + source({ id: 's4', type: 'macos_unified_logging', name: 'macOS Unified Logging' }), ]} receiving />, ); - // journald cannot run on Windows, the event log can, and a plain file source runs everywhere. - expect(screen.getByText('Not applicable on Windows')).toBeInTheDocument(); + // journald and macos_unified_logging cannot run on Windows, the event log can, and a plain file source runs everywhere. + expect(screen.getAllByText('Not applicable on Windows')).toHaveLength(2); expect(screen.getAllByText('Receiving')).toHaveLength(2); }); diff --git a/graylog2-web-interface/src/components/collectors/overview/onboarding/SourceStatusSection.tsx b/graylog2-web-interface/src/components/collectors/overview/onboarding/SourceStatusSection.tsx index 71e4bff20454..0f1b0183539f 100644 --- a/graylog2-web-interface/src/components/collectors/overview/onboarding/SourceStatusSection.tsx +++ b/graylog2-web-interface/src/components/collectors/overview/onboarding/SourceStatusSection.tsx @@ -112,6 +112,7 @@ const Footer = styled.div( const SOURCE_PLATFORM: Partial> = { journald: 'linux', windows_event_log: 'windows', + macos_unified_logging: 'darwin', }; /**