Skip to content

Commit

Permalink
Improve godocs for userpass/totp mounts
Browse files Browse the repository at this point in the history
  • Loading branch information
mpalmi committed Oct 26, 2022
1 parent 1636819 commit a900108
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions helper/testhelpers/testhelpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,8 @@ func CreateEntityAndAlias(t testing.T, client *api.Client, mountAccessor, entity
return userClient, entityID, aliasID
}

// SetupTOTPMount enables the totp secrets engine by mounting it.
// SetupTOTPMount enables the totp secrets engine by mounting it. This requires
// that the test cluster has a totp backend available.
func SetupTOTPMount(t testing.T, client *api.Client) {
t.Helper()
// Mount the TOTP backend
Expand Down Expand Up @@ -860,7 +861,9 @@ func SetupMFALoginEnforcement(t testing.T, client *api.Client, config map[string
}
}

// SetupUserpassMountAccessor sets up userpass auth and returns its mount accessor.
// SetupUserpassMountAccessor sets up userpass auth and returns its mount
// accessor. This requires that the test cluster has a "userpass" auth method
// available.
func SetupUserpassMountAccessor(t testing.T, client *api.Client) string {
t.Helper()
var mountAccessor string
Expand Down

0 comments on commit a900108

Please sign in to comment.