@@ -15,14 +15,15 @@ import (
1515
1616func TestConvertDashboard (t * testing.T ) {
1717 src := resources.Dashboard {
18- Dashboard : dashboards.Dashboard {
19- DisplayName : "my dashboard" ,
20- WarehouseId : "f00dcafe" ,
21- ParentPath : "/some/path" ,
18+ DashboardConfig : resources.DashboardConfig {
19+ Dashboard : dashboards.Dashboard {
20+ DisplayName : "my dashboard" ,
21+ WarehouseId : "f00dcafe" ,
22+ ParentPath : "/some/path" ,
23+ },
24+ EmbedCredentials : true ,
2225 },
2326
24- EmbedCredentials : true ,
25-
2627 Permissions : []resources.DashboardPermission {
2728 {
2829 Level : "CAN_VIEW" ,
@@ -61,7 +62,9 @@ func TestConvertDashboard(t *testing.T) {
6162
6263func TestConvertDashboardSerializedDashboardString (t * testing.T ) {
6364 src := resources.Dashboard {
64- SerializedDashboard : `{ "json": true }` ,
65+ DashboardConfig : resources.DashboardConfig {
66+ SerializedDashboard : `{ "json": true }` ,
67+ },
6568 }
6669
6770 vin , err := convert .FromTyped (src , dyn .NilValue )
@@ -80,11 +83,13 @@ func TestConvertDashboardSerializedDashboardString(t *testing.T) {
8083
8184func TestConvertDashboardSerializedDashboardAny (t * testing.T ) {
8285 src := resources.Dashboard {
83- SerializedDashboard : map [string ]any {
84- "pages" : []map [string ]any {
85- {
86- "displayName" : "New Page" ,
87- "layout" : []map [string ]any {},
86+ DashboardConfig : resources.DashboardConfig {
87+ SerializedDashboard : map [string ]any {
88+ "pages" : []map [string ]any {
89+ {
90+ "displayName" : "New Page" ,
91+ "layout" : []map [string ]any {},
92+ },
8893 },
8994 },
9095 },
0 commit comments