Skip to content

feat: add config-manager-pull telemetry command - #121

Open
dallinjsevy wants to merge 5 commits into
mainfrom
feature/config-manager-pull-telemetry
Open

feat: add config-manager-pull telemetry command#121
dallinjsevy wants to merge 5 commits into
mainfrom
feature/config-manager-pull-telemetry

Conversation

@dallinjsevy

Copy link
Copy Markdown

No description provided.

@dallinjsevy
dallinjsevy requested a review from phalestrivir July 22, 2026 14:31

@phalestrivir phalestrivir left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the other tests that are affected by the new changes I added to the library as well. Since the full export/import include telemetry now, we need to update config-export and config-import tests, and also update usage tests that do a full export (namely script-list, script-describe, esv-variable-list, esv-variable-describe, esv-secret-list, esv-secret-describe).

Note that there is a trick you can do so you don't have to re-record all the export/import tests. You only need to add the request that's missing to the mocks to get them passing. If you need help doing this let me know and I can show you how I usually do it.

Comment thread src/cli/config-manager/config-manager-pull/config-manager-pull-telemetry.ts Outdated
Comment thread src/cli/config-manager/config-manager-pull/config-manager-pull-telemetry.ts Outdated
Comment thread src/cli/config-manager/config-manager-pull/config-manager-pull-telemetry.ts Outdated
Comment thread src/cli/config-manager/config-manager-pull/config-manager-pull-telemetry.ts Outdated
Comment thread src/cli/config-manager/config-manager-pull/config-manager-pull-telemetry.ts Outdated
Comment thread src/configManagerOps/FrConfigTelemetry.ts Outdated
Comment thread src/configManagerOps/FrConfigTelemetry.ts Outdated
Comment thread test/client_cli/en/config-manager-export-telemetry.test.js Outdated
Comment thread test/e2e/config-manager-export-telemetry.e2e.test.js Outdated
Comment thread test/e2e/exports/fr-config-manager/cloud/telemetry/otlp/datadog.json Outdated
@dallinjsevy
dallinjsevy force-pushed the feature/config-manager-pull-telemetry branch from cd93d1a to 9ff7788 Compare August 11, 2026 17:54
Comment thread src/configManagerOps/FrConfigTelemetry.ts Outdated
Comment thread src/configManagerOps/FrConfigTelemetry.ts Outdated
Comment thread src/configManagerOps/FrConfigTelemetry.ts Outdated
Comment thread src/configManagerOps/FrConfigTelemetry.ts Outdated
Comment thread src/configManagerOps/FrConfigTelemetry.ts Outdated

/*
FRODO_MOCK=record FRODO_NO_CACHE=1 FRODO_HOST=https://openam-frodo-dev.forgeblocks.com/am frodo config-manager pull telemetry -D telemetryTestDir
FRODO_MOCK=record FRODO_NO_CACHE=1 FRODO_HOST=https://openam-frodo-dev.forgeblocks.com/am frodo config-manager pull telemetry -c otlp -D telemetryTestDir2

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we update this test to be the splunk category so that way we have a test for that? You shouldn't need to re-record the mocks for it, since the filtering happens after the API calls are made, but you will need to update the snapshots after the change.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried modify the test to use splunk but I think the Frodo tenant only has otlp as telemetry config. Since Ping only allows a single category to be configured, I think I would need to test against a different tenant to export splunk config.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete this file (only used for the push command, so you can add it in that PR)

@phalestrivir

Copy link
Copy Markdown

Also, reference this comment to update the tests for config export/import (need to do that as part of this PR): #121 (review)

@dallinjsevy
dallinjsevy force-pushed the feature/config-manager-pull-telemetry branch from 9ff7788 to acbb1d8 Compare August 19, 2026 17:39
@dallinjsevy

Copy link
Copy Markdown
Author

I kept the incorrectly named file FrConfigTelemetry so you are able to see the diff. I also included the correctly named file. I will delete the file once the changes have been reviewed.

@phalestrivir phalestrivir left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few minor things left

Comment thread src/cli/config-manager/config-manager-push/config-manager-push-telemetry.ts Outdated
Comment thread src/configManagerOps/FrConfigTelemetryOps.ts Outdated
Comment thread test/e2e/config-manager-pull-telemetry.e2e.test.js Outdated
Comment thread test/e2e/config-manager-pull-telemetry.e2e.test.js Outdated
Comment thread test/e2e/config-manager-pull-telemetry.e2e.test.js Outdated
Comment thread src/configManagerOps/FrConfigTelemetry.ts Outdated
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