Return HTTP/429 whenever somebody tries to get contacts from the old directory system.

This commit is contained in:
Jon Chambers authored and Jon Chambers committed 2021-01-11 19:29:10 -05:00
1 parent e440eb1733
commit 9412a7424c
2 files changed
+4 -43

No files matched your search

@@ -190,9 +190,6 @@ public class DirectoryControllerTest {
.put(Entity.entity(new ClientContactTokens(tokens), MediaType.APPLICATION_JSON_TYPE));
assertThat(response.getStatus()).isEqualTo(200);
assertThat(response.readEntity(ClientContactTokens.class).getContacts()).isEqualTo(expectedResponse);
verify(ipLimiter).validate("1.1.1.1");
assertThat(response.getStatus()).isEqualTo(429);
}
}