66
77 "github.com/databricks/databricks-sdk-go/service/dashboards"
88 "github.com/databricks/databricks-sdk-go/service/workspace"
9- "github.com/google/uuid"
109)
1110
1211func (s * FakeWorkspace ) DashboardCreate (req Request ) Response {
@@ -20,7 +19,7 @@ func (s *FakeWorkspace) DashboardCreate(req Request) Response {
2019 }
2120
2221 // Lakeview API strips hyphens from a uuid for dashboards
23- dashboard .DashboardId = strings .ReplaceAll (uuid . New (). String (), "-" , "" )
22+ dashboard .DashboardId = strings .ReplaceAll (nextUUID (), "-" , "" )
2423
2524 // All dashboards are active by default:
2625 dashboard .LifecycleState = dashboards .LifecycleStateActive
@@ -61,7 +60,7 @@ func (s *FakeWorkspace) DashboardCreate(req Request) Response {
6160 return Response {
6261 Body : dashboards.Dashboard {
6362 DashboardId : dashboard .DashboardId ,
64- Etag : uuid . New (). String (),
63+ Etag : nextUUID (),
6564 },
6665 }
6766}
@@ -77,7 +76,7 @@ func (s *FakeWorkspace) DashboardUpdate(req Request) Response {
7776 }
7877
7978 // Update the etag for the dashboard.
80- dashboard .Etag = uuid . New (). String ()
79+ dashboard .Etag = nextUUID ()
8180
8281 // All dashboards are active by default:
8382 dashboard .LifecycleState = dashboards .LifecycleStateActive
0 commit comments