Skip to content

feat: add FederatedLogSetup, AwsConnection, and FederatedLogPartition entity support to federated logs#1398

Open
voorepreethi wants to merge 5 commits into
newrelic:mainfrom
voorepreethi:fedLogsSetupNew
Open

feat: add FederatedLogSetup, AwsConnection, and FederatedLogPartition entity support to federated logs#1398
voorepreethi wants to merge 5 commits into
newrelic:mainfrom
voorepreethi:fedLogsSetupNew

Conversation

@voorepreethi
Copy link
Copy Markdown

@voorepreethi voorepreethi commented Apr 20, 2026

Summary
Adds support for three new entity types in the pipelinecontrol package: FederatedLogSetupEntity, AwsConnectionEntity, and FederatedLogPartitionEntity. These enable full lifecycle management of federated log infrastructure resources via the Entity Management API.

Changes
New API Methods
Federated Log Setup

EntityManagementCreateFederatedLogSetup / WithContext — create a Federated Log Setup entity
EntityManagementUpdateFederatedLogSetup / WithContext — update an existing Federated Log Setup entity
Federated Log Partition

EntityManagementCreateFederatedLogPartition / WithContext — create a Federated Log Partition entity
EntityManagementUpdateFederatedLogPartition / WithContext — update an existing Federated Log Partition entity
AWS Connection

EntityManagementCreateAwsConnection / WithContext — create an AWS Connection entity
Search

GetEntitySearch / WithContext — search entities with filters and cursor-based pagination

Tests
Unit Tests (27 total)
Federated Log Setup (6)

Create: success, with-context, error
Update: success, with-context, error
Federated Log Partition (6)

Create: success, with-context, error
Update: success, with-context, error
AWS Connection (3)

Create: success, with-context, error
GetEntity (2)

Returns FederatedLogSetupEntity type assertion
Returns AwsConnectionEntity type assertion
GetEntitySearch (4)

Success, with-context, empty results, error

Integration Tests
TestIntegrationEntityManagement_FederatedLogSetup_CRUD — full create/read/update/delete cycle (gated by RUN_FEDERATED_LOG_SETUP_TEST=true)
TestIntegrationEntityManagement_FederatedLogSetup_Create — standalone create test with real credentials (gated by env vars)

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 32.85%. Comparing base (de7b1f8) to head (f23d1c7).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1398      +/-   ##
==========================================
+ Coverage   30.74%   32.85%   +2.11%     
==========================================
  Files         142      143       +1     
  Lines        6753     6803      +50     
==========================================
+ Hits         2076     2235     +159     
+ Misses       4477     4366     -111     
- Partials      200      202       +2     
Flag Coverage Δ
unit 32.85% <100.00%> (+2.11%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@voorepreethi voorepreethi changed the title Fed logs setup new feat: add FederatedLogSetup, AwsConnection, and FederatedLogPartition entity support to federated logs Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants