refactor(unified-storage): set the GUID in the resource server (#105683)
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
claims "github.com/grafana/authlib/types"
|
||||
@@ -87,6 +88,7 @@ func RunTestSearchAndStorage(t *testing.T, ctx context.Context, backend resource
|
||||
Key: key,
|
||||
Value: value,
|
||||
Object: meta,
|
||||
GUID: uuid.New().String(),
|
||||
})
|
||||
require.NoError(t, err)
|
||||
require.Greater(t, rv, int64(0))
|
||||
|
||||
@@ -1106,6 +1106,7 @@ func writeEvent(ctx context.Context, store resource.StorageBackend, name string,
|
||||
return store.WriteEvent(ctx, resource.WriteEvent{
|
||||
Type: action,
|
||||
Value: options.Value,
|
||||
GUID: uuid.New().String(),
|
||||
Key: &resourcepb.ResourceKey{
|
||||
Namespace: options.Namespace,
|
||||
Group: options.Group,
|
||||
|
||||
Reference in New Issue
Block a user