|
28 | 28 | import com.google.common.collect.Lists;
|
29 | 29 | import com.google.monitoring.dashboard.v1.CreateDashboardRequest;
|
30 | 30 | import com.google.monitoring.dashboard.v1.Dashboard;
|
| 31 | +import com.google.monitoring.dashboard.v1.DashboardFilter; |
31 | 32 | import com.google.monitoring.dashboard.v1.DashboardName;
|
32 | 33 | import com.google.monitoring.dashboard.v1.DeleteDashboardRequest;
|
33 | 34 | import com.google.monitoring.dashboard.v1.GetDashboardRequest;
|
|
39 | 40 | import com.google.protobuf.Empty;
|
40 | 41 | import io.grpc.StatusRuntimeException;
|
41 | 42 | import java.io.IOException;
|
| 43 | +import java.util.ArrayList; |
42 | 44 | import java.util.Arrays;
|
| 45 | +import java.util.HashMap; |
43 | 46 | import java.util.List;
|
44 | 47 | import java.util.UUID;
|
45 | 48 | import javax.annotation.Generated;
|
@@ -95,6 +98,8 @@ public void createDashboardTest() throws Exception {
|
95 | 98 | .setName(DashboardName.of("[PROJECT]", "[DASHBOARD]").toString())
|
96 | 99 | .setDisplayName("displayName1714148973")
|
97 | 100 | .setEtag("etag3123477")
|
| 101 | + .addAllDashboardFilters(new ArrayList<DashboardFilter>()) |
| 102 | + .putAllLabels(new HashMap<String, String>()) |
98 | 103 | .build();
|
99 | 104 | mockDashboardsService.addResponse(expectedResponse);
|
100 | 105 |
|
@@ -203,6 +208,8 @@ public void getDashboardTest() throws Exception {
|
203 | 208 | .setName(DashboardName.of("[PROJECT]", "[DASHBOARD]").toString())
|
204 | 209 | .setDisplayName("displayName1714148973")
|
205 | 210 | .setEtag("etag3123477")
|
| 211 | + .addAllDashboardFilters(new ArrayList<DashboardFilter>()) |
| 212 | + .putAllLabels(new HashMap<String, String>()) |
206 | 213 | .build();
|
207 | 214 | mockDashboardsService.addResponse(expectedResponse);
|
208 | 215 |
|
@@ -289,6 +296,8 @@ public void updateDashboardTest() throws Exception {
|
289 | 296 | .setName(DashboardName.of("[PROJECT]", "[DASHBOARD]").toString())
|
290 | 297 | .setDisplayName("displayName1714148973")
|
291 | 298 | .setEtag("etag3123477")
|
| 299 | + .addAllDashboardFilters(new ArrayList<DashboardFilter>()) |
| 300 | + .putAllLabels(new HashMap<String, String>()) |
292 | 301 | .build();
|
293 | 302 | mockDashboardsService.addResponse(expectedResponse);
|
294 | 303 |
|
|
0 commit comments