Skip to content

Commit

Permalink
feat: Add fixture record/replay log messages
Browse files Browse the repository at this point in the history
Resolves #361
  • Loading branch information
kiesslingh committed Aug 2, 2023
1 parent b018078 commit b4b7105
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/provider/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ func setupVCR(t *testing.T, cassetteName string) (*recorder.Recorder, TestUser)

user := redactedTestUser
if rec.IsRecording() {
t.Logf("ATTENTION: Recording '%s'", cassetteName)
user.Username = os.Getenv("BTP_USERNAME")
user.Password = os.Getenv("BTP_PASSWORD")
if len(user.Username) == 0 || len(user.Password) == 0 {
Expand All @@ -111,6 +112,8 @@ func setupVCR(t *testing.T, cassetteName string) (*recorder.Recorder, TestUser)
user.Issuer = user.Idp + ".accounts400.ondemand.com"
}
user.Firstname, user.Lastname = getNameFromEmail(user.Username)
} else {
t.Logf("Replaying '%s'", cassetteName)
}

if err != nil {
Expand Down

0 comments on commit b4b7105

Please sign in to comment.