mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
K8s: Dashboard spec should not have id (#98336)
This commit is contained in:
committed by
GitHub
parent
f3a553fb9b
commit
b4ab55ae38
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user