mirror of
https://github.com/google/nomulus.git
synced 2025-07-25 12:08:36 +02:00
Fix RDAP quirks uncovered during documentation
There's no reason not to allow a one-character search string when there are no wildcards. And the ROID validity pattern did not allow underscores, which was causing problems with our ROIDs. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=136256605
This commit is contained in:
parent
861fd60d2c
commit
f1ad34b12f
5 changed files with 24 additions and 14 deletions
|
@ -202,8 +202,8 @@ public class RdapEntityActionTest {
|
|||
|
||||
@Test
|
||||
public void testUnknownEntity_returns404() throws Exception {
|
||||
assertThat(generateActualJson("MISSING-ENTITY")).isEqualTo(
|
||||
generateExpectedJson("MISSING-ENTITY not found", "rdap_error_404.json"));
|
||||
assertThat(generateActualJson("_MISSING-ENTITY_")).isEqualTo(
|
||||
generateExpectedJson("_MISSING-ENTITY_ not found", "rdap_error_404.json"));
|
||||
assertThat(response.getStatus()).isEqualTo(404);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue