// Copyright (c) HashiCorp, Inc. // SPDX-License-Identifier: BUSL-1.1 package password import ( "context" "strings" "testing" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) func Test_PrivateIds(t *testing.T) { ctx := context.Background() t.Run("argon2Config", func(t *testing.T) { id, err := newArgon2ConfigurationId(ctx) require.NoError(t, err) assert.True(t, strings.HasPrefix(id, argon2ConfigurationPrefix+"_")) }) t.Run("argon2Cred", func(t *testing.T) { id, err := newArgon2CredentialId(ctx) require.NoError(t, err) assert.True(t, strings.HasPrefix(id, argon2CredentialPrefix+"_")) }) }