mirror of
https://github.com/gopasspw/gopass.git
synced 2026-05-30 11:18:48 +02:00
7e3c54d1f9
Signed-off-by: Tom Payne <twpayne@gmail.com>
23 lines
375 B
Go
23 lines
375 B
Go
package tests
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestAudit(t *testing.T) {
|
|
ts := newTester(t)
|
|
defer ts.teardown()
|
|
|
|
ts.initStore()
|
|
ts.initSecrets("")
|
|
|
|
t.Run("audit the test store", func(t *testing.T) {
|
|
out, err := ts.run("audit")
|
|
require.Error(t, err)
|
|
assert.Contains(t, out, "crunchy")
|
|
})
|
|
}
|