Skip to content

Commit 4c24d31

Browse files
committed
do not compare request & response
1 parent a777210 commit 4c24d31

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/test/java/com/datadog/api/client/v1/api/DashboardsApiTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,6 @@ public void dashboardLifecycleTest() throws ApiException {
832832
.addWidgetsItem(toplistWidget)
833833
.title(getUniqueEntityName("ordered"))
834834
.description("Test dashboard for Java client")
835-
.isReadOnly(false)
836835
.templateVariables(templateVariables)
837836
.addTemplateVariablePresetsItem(dashboardTemplateVariablePreset)
838837
.addNotifyListItem("test@datadoghq.com");
@@ -858,7 +857,6 @@ public void dashboardLifecycleTest() throws ApiException {
858857
.addWidgetsItem(serviceSummaryWidget)
859858
.title(getUniqueEntityName("free"))
860859
.description("Test Free layout dashboard for Java client")
861-
.isReadOnly(false)
862860
.templateVariables(templateVariables);
863861
Dashboard createFreeResponse = api.createDashboard(freeDashboard);
864862
cleanupDashIDs.add(createFreeResponse.getId());
@@ -868,7 +866,6 @@ public void dashboardLifecycleTest() throws ApiException {
868866
// Assert root dashboard items on the create response
869867
assertEquals(dashboard.getTitle(), response.getTitle());
870868
assertEquals(dashboard.getDescription(), response.getDescription());
871-
assertEquals(dashboard.getIsReadOnly(), response.getIsReadOnly());
872869
// The end of the url is a normalized version fo the title, so lets just check the beginning of
873870
// the URL
874871
assertTrue(response.getUrl().contains(String.format("/dashboard/%s", response.getId())));
@@ -1045,6 +1042,7 @@ public void dashboardUpdateErrorsTest() throws IOException {
10451042
.layoutType(DashboardLayoutType.FREE);
10461043

10471044
try {
1045+
Dashboard emptyDashboard = new Dashboard();
10481046
api.updateDashboard("123-abc-xyz", emptyDashboard);
10491047
fail("Expected ApiException not thrown");
10501048
} catch (ApiException e) {

0 commit comments

Comments
 (0)