-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix fx related issues for agenttelemetry improvements #29789
Changes from 1 commit
4b0e5b7
320605d
0f63b8a
e482bf1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,3 +115,13 @@ func TestShowMetadataSecurityAgentCommand(t *testing.T) { | |
require.Equal(t, false, secretParams.Enabled) | ||
}) | ||
} | ||
|
||
func TestShowAgentTelemetryCommand(t *testing.T) { | ||
fxutil.TestOneShotSubcommand(t, | ||
Commands(&command.GlobalParams{}), | ||
[]string{"diagnose", "show-metadata", "agent-telemetry"}, | ||
printPayload, | ||
func(_ core.BundleParams, secretParams secrets.Params) { | ||
require.Equal(t, false, secretParams.Enabled) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❓ question: What is the goal of this test ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would expect this test to check There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ogaca-dd @misteriaud fixed 😄 |
||
}) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: This is a breaking change. I guess this should be OK as the command is very new.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not a breaking change as the command is not release yet. This PR uses this PR as the starting point #29770
The starting point PR hasn't being merge yet