Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelog/unreleased/pr-27635.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
type = "fixed"
message = "Fix Collector onboarding source status section for the macOS Unified Logging source on unsupported platforms."

pulls = ["27635"]
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ const Footer = styled.div(
const SOURCE_PLATFORM: Partial<Record<SourceType, string>> = {
journald: 'linux',
windows_event_log: 'windows',
macos_unified_logging: 'darwin',
};

/**
Expand Down
Loading