refactor(unified-storage): set the GUID in the resource server (#105683)

This commit is contained in:
Jean-Philippe Quéméner
2025-05-21 09:49:49 +02:00
committed by GitHub
parent fe704843a9
commit a13fe75de8
6 changed files with 30 additions and 21 deletions
@@ -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,