mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 22:27:48 +00:00
Feat: Integration tests
This commit is contained in:
@@ -39,6 +39,7 @@ var secretsCmd = &cobra.Command{
|
|||||||
}
|
}
|
||||||
|
|
||||||
token, err := util.GetInfisicalToken(cmd)
|
token, err := util.GetInfisicalToken(cmd)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
util.HandleError(err, "Unable to parse flag")
|
util.HandleError(err, "Unable to parse flag")
|
||||||
}
|
}
|
||||||
@@ -116,6 +117,7 @@ var secretsCmd = &cobra.Command{
|
|||||||
secrets = util.ExpandSecrets(secrets, authParams, "")
|
secrets = util.ExpandSecrets(secrets, authParams, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
util.HandleSendTestSecrets(cmd, secrets)
|
||||||
visualize.PrintAllSecretDetails(secrets)
|
visualize.PrintAllSecretDetails(secrets)
|
||||||
Telemetry.CaptureEvent("cli-command:secrets", posthog.NewProperties().Set("secretCount", len(secrets)).Set("version", util.CLI_VERSION))
|
Telemetry.CaptureEvent("cli-command:secrets", posthog.NewProperties().Set("secretCount", len(secrets)).Set("version", util.CLI_VERSION))
|
||||||
},
|
},
|
||||||
@@ -505,6 +507,8 @@ func getSecretsByNames(cmd *cobra.Command, args []string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
util.HandleSendTestSecrets(cmd, requestedSecrets)
|
||||||
|
|
||||||
if showOnlyValue && len(requestedSecrets) > 1 {
|
if showOnlyValue && len(requestedSecrets) > 1 {
|
||||||
util.PrintErrorMessageAndExit("--raw-value only works with one secret.")
|
util.PrintErrorMessageAndExit("--raw-value only works with one secret.")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user