Storage: Always set a UID in the apiserver (#96086)

This commit is contained in:
Ryan McKinley
2024-11-12 18:58:32 +02:00
committed by GitHub
parent 7f99e943a6
commit e9956f2345
3 changed files with 16 additions and 4 deletions
+6 -3
View File
@@ -8,13 +8,14 @@ import (
"testing"
"time"
"github.com/grafana/authlib/claims"
"github.com/grafana/grafana/pkg/apimachinery/identity"
"github.com/grafana/grafana/pkg/apimachinery/utils"
"github.com/stretchr/testify/require"
"gocloud.dev/blob/fileblob"
"gocloud.dev/blob/memblob"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"github.com/grafana/authlib/claims"
"github.com/grafana/grafana/pkg/apimachinery/identity"
"github.com/grafana/grafana/pkg/apimachinery/utils"
)
func TestSimpleServer(t *testing.T) {
@@ -56,6 +57,7 @@ func TestSimpleServer(t *testing.T) {
"kind": "Playlist",
"metadata": {
"name": "fdgsv37qslr0ga",
"uid": "xyz",
"namespace": "default",
"annotations": {
"grafana.app/originName": "elsewhere",
@@ -172,6 +174,7 @@ func TestSimpleServer(t *testing.T) {
"metadata": {
"name": "fdgsv37qslr0ga",
"namespace": "default",
"uid": "xyz",
"annotations": {
"grafana.app/originName": "elsewhere",
"grafana.app/originPath": "path/to/item",