K8s: Dashboard spec should not have id (#98336)

This commit is contained in:
Stephanie Hingtgen
2025-01-03 08:28:45 -07:00
committed by GitHub
parent f3a553fb9b
commit b4ab55ae38
10 changed files with 645 additions and 17 deletions

View File

@@ -929,7 +929,6 @@ func TestUnstructuredToLegacyDashboard(t *testing.T) {
"spec": map[string]interface{}{
"title": title,
"version": int64(1),
"id": int64(1),
},
},
}
@@ -940,7 +939,7 @@ func TestUnstructuredToLegacyDashboard(t *testing.T) {
obj.SetName(uid)
obj.SetCreatedBy("user:useruid")
obj.SetUpdatedBy("user:useruid")
obj.SetDeprecatedInternalID(1) // nolint:staticcheck
result, err := dr.UnstructuredToLegacyDashboard(context.Background(), item, orgID)
assert.NoError(t, err)
assert.NotNil(t, result)