Chore: Remove FolderID from DTO Folder (#78420)
* Chore: Remove FolderID from DTO Folder * chore: add OrgID field to an instance of SaveDashboardCommand * chore: add another OrgID to pair with the FolderUID: * chore: add OrgId to Folder struct and expectedParentOrgIDs to testCase struct, unsure if last part is necessary * Fix folder test, add expected orgID * chore: regen specs --------- Co-authored-by: Ida Furjesova <ida.furjesova@grafana.com>
This commit is contained in:
co-authored by
Ida Furjesova
parent
cdff30ac44
commit
31fb38723d
@@ -328,6 +328,7 @@ func TestIntegrationCreate(t *testing.T) {
|
||||
buf1 := &bytes.Buffer{}
|
||||
err = json.NewEncoder(buf1).Encode(dashboards.SaveDashboardCommand{
|
||||
Dashboard: dashboardDataOne,
|
||||
OrgID: 0,
|
||||
FolderUID: folder.UID,
|
||||
})
|
||||
require.NoError(t, err)
|
||||
@@ -358,7 +359,8 @@ func TestIntegrationCreate(t *testing.T) {
|
||||
buf1 := &bytes.Buffer{}
|
||||
err = json.NewEncoder(buf1).Encode(dashboards.SaveDashboardCommand{
|
||||
Dashboard: dashboardDataOne,
|
||||
FolderID: folder.ID, // nolint:staticcheck
|
||||
OrgID: 0,
|
||||
FolderUID: folder.UID,
|
||||
})
|
||||
require.NoError(t, err)
|
||||
u := fmt.Sprintf("http://admin:admin@%s/api/dashboards/db", grafanaListedAddr)
|
||||
|
||||
Reference in New Issue
Block a user