mirror of
https://github.com/gopasspw/gopass.git
synced 2026-10-07 16:51:40 +02:00
* [bugfix] Bring back audit summary This PR brings back the audit summary view and displays only that by default. This restores the old behaviour before we refactored the audit implementation. The new view is still available with the new --full flag. Fixes #2816 Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org> * Fix tests. Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org> * Fix integration test Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org> --------- Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
31 lines
664 B
Go
31 lines
664 B
Go
package root
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/fatih/color"
|
|
"github.com/gopasspw/gopass/internal/config"
|
|
"github.com/gopasspw/gopass/pkg/ctxutil"
|
|
"github.com/gopasspw/gopass/tests/gptest"
|
|
"github.com/stretchr/testify/assert"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestRCS(t *testing.T) {
|
|
u := gptest.NewUnitTester(t)
|
|
|
|
ctx := config.NewContextInMemory()
|
|
ctx = ctxutil.WithAlwaysYes(ctx, true)
|
|
ctx = ctxutil.WithHidden(ctx, true)
|
|
color.NoColor = true
|
|
|
|
rs, err := createRootStore(ctx, u)
|
|
require.NoError(t, err)
|
|
|
|
require.Error(t, rs.RCSStatus(ctx, ""))
|
|
|
|
revs, err := rs.ListRevisions(ctx, "foo")
|
|
require.Error(t, err)
|
|
assert.Len(t, revs, 1)
|
|
}
|