Skip to content

Commit 648ba24

Browse files
authored
Merge branch 'master' into datadog-api-spec/generated/1167
2 parents cc6c1b7 + 8a59ff1 commit 648ba24

File tree

3 files changed

+163
-232
lines changed

3 files changed

+163
-232
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public void cancelDowntimesByScopeTest() throws ApiException {
185185

186186
// verify that downtimes 1 and 2 are canceled
187187
List<Downtime> allDowntimes =
188-
api.listDowntimes(new DowntimesApi.ListDowntimesOptionalParameters().currentOnly(false));
188+
api.listDowntimes(new DowntimesApi.ListDowntimesOptionalParameters().currentOnly(true));
189189
for (String message : messages) {
190190
boolean found = false;
191191
for (Downtime downtime : allDowntimes) {
@@ -199,10 +199,10 @@ public void cancelDowntimesByScopeTest() throws ApiException {
199199
}
200200
}
201201
if (message.equals(messages.get(2))) {
202-
assertTrue(String.format("Downtime %s not found", name), found);
202+
assertTrue(String.format("Downtime %s not found", message), found);
203203
} else {
204204
assertFalse(
205-
String.format("Downtime %s found, but it should have been canceled", name), found);
205+
String.format("Downtime %s found, but it should have been canceled", message), found);
206206
}
207207
}
208208
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2020-07-28T14:21:47.409325Z
1+
2021-10-28T14:09:43.191063Z

src/test/resources/cassettes/v1/DowntimesApiTest.cancelDowntimesByScopeTest.json

Lines changed: 159 additions & 228 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)