mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 07:26:53 +00:00
Return HTTP/429 whenever somebody tries to get contacts from the old directory system.
This commit is contained in:
1 parent
e440eb1733
commit
9412a7424c
2 files changed
+4
-43
No files matched your search
+1
-4
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user