Skip to content

Commit

Permalink
Feat: Integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielHougaard committed Apr 17, 2024
1 parent 7ab8db0 commit 8bf0978
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/packages/cmd/secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ var secretsCmd = &cobra.Command{
}

token, err := util.GetInfisicalToken(cmd)

if err != nil {
util.HandleError(err, "Unable to parse flag")
}
Expand Down Expand Up @@ -116,6 +117,7 @@ var secretsCmd = &cobra.Command{
secrets = util.ExpandSecrets(secrets, authParams, "")
}

util.HandleSendTestSecrets(cmd, secrets)
visualize.PrintAllSecretDetails(secrets)
Telemetry.CaptureEvent("cli-command:secrets", posthog.NewProperties().Set("secretCount", len(secrets)).Set("version", util.CLI_VERSION))
},
Expand Down Expand Up @@ -505,6 +507,8 @@ func getSecretsByNames(cmd *cobra.Command, args []string) {
}
}

util.HandleSendTestSecrets(cmd, requestedSecrets)

if showOnlyValue && len(requestedSecrets) > 1 {
util.PrintErrorMessageAndExit("--raw-value only works with one secret.")
}
Expand Down

0 comments on commit 8bf0978

Please sign in to comment.