Skip to content

Commit

Permalink
feat: add logs in performance test
Browse files Browse the repository at this point in the history
  • Loading branch information
btfhernandez committed Dec 2, 2024
1 parent 833bb3d commit 24e0c9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion performancetest/PerformanceTest.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func callPasswordSafeAPI() {
// create a zap logger wrapper
zapLogger := logging.NewZapLogger(logger)

zapLogger.Info("Starting flow")
zapLogger.Info("Starting Performance Test execution")
apiUrl := "https://example.com:443/BeyondTrust/api/public/v3/"
clientId := ""
clientSecret := ""
Expand Down Expand Up @@ -123,6 +123,8 @@ func callPasswordSafeAPI() {
// WARNING: Do not log secrets in production code, the following log statement logs test secrets for testing purposes:
zapLogger.Warn(fmt.Sprintf("%v", gotSecret))

zapLogger.Info("Ending Performance Test execution")

// signing out
_ = authenticate.SignOut()

Expand Down

0 comments on commit 24e0c9e

Please sign in to comment.