mirror of
https://github.com/google/nomulus.git
synced 2025-08-04 08:52:12 +02:00
Remove some fields from WHOIS output
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=191445626
This commit is contained in:
parent
377fe5f573
commit
839e4aa682
9 changed files with 34 additions and 161 deletions
|
@ -237,7 +237,6 @@ public class WhoisActionTest {
|
|||
assertThat(domain1.getRepoId()).isNotEqualTo(domain2.getRepoId());
|
||||
newWhoisAction("domain cat.lol\r\n").run();
|
||||
assertThat(response.getStatus()).isEqualTo(200);
|
||||
assertThat(response.getPayload()).contains("Dr. Pablo");
|
||||
assertThat(response.getPayload()).contains("ns1.google.lol");
|
||||
}
|
||||
|
||||
|
|
|
@ -163,9 +163,16 @@ public class WhoisHttpActionTest {
|
|||
|
||||
@Test
|
||||
public void testRun_wickedLineFeedForgeryInDatastore_crlfSubstitutedWithSpace() throws Exception {
|
||||
String evilName = "Eric\r\nSchmidt";
|
||||
ContactResource trl = persistResource(
|
||||
makeContactResource("5372808-TRL", evilName, "bog@cat.みんな"));
|
||||
ContactResource trl = makeContactResource("5372808-TRL", "Eric Schmidt", "bog@cat.みんな");
|
||||
trl =
|
||||
persistResource(
|
||||
trl.asBuilder()
|
||||
.setInternationalizedPostalInfo(
|
||||
trl.getInternationalizedPostalInfo()
|
||||
.asBuilder()
|
||||
.setOrg("Galactic\r\nEmpire")
|
||||
.build())
|
||||
.build());
|
||||
persistResource(makeDomainResource(
|
||||
"cat.みんな", trl,
|
||||
trl,
|
||||
|
@ -174,7 +181,7 @@ public class WhoisHttpActionTest {
|
|||
persistResource(makeHostResource("ns2.cat.みんな", "bad:f00d:cafe::15:beef")),
|
||||
persistResource(makeRegistrar("example", "Example Registrar", Registrar.State.ACTIVE))));
|
||||
newWhoisHttpAction("/domain/cat.みんな").run();
|
||||
assertThat(response.getPayload()).contains("Eric Schmidt");
|
||||
assertThat(response.getPayload()).contains("Galactic Empire");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
@ -13,39 +13,9 @@ Domain Status: clientDeleteProhibited https://icann.org/epp#clientDeleteProhibit
|
|||
Domain Status: clientRenewProhibited https://icann.org/epp#clientRenewProhibited
|
||||
Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited
|
||||
Domain Status: serverUpdateProhibited https://icann.org/epp#serverUpdateProhibited
|
||||
Registry Registrant ID: 4-ROID
|
||||
Registrant Name: Goblin Market
|
||||
Registrant Organization: GOOGLE INCORPORATED <script>
|
||||
Registrant Street: 123 Example Boulevard <script>
|
||||
Registrant City: KOKOMO
|
||||
Registrant State/Province: BM
|
||||
Registrant Postal Code: 31337
|
||||
Registrant Country: US
|
||||
Registrant Phone: +1.2126660420
|
||||
Registrant Fax: +1.2126660420
|
||||
Registrant Email: lol@cat.lol
|
||||
Registry Admin ID: 5-ROID
|
||||
Admin Name: Santa Claus
|
||||
Admin Organization: GOOGLE INCORPORATED <script>
|
||||
Admin Street: 123 Example Boulevard <script>
|
||||
Admin City: KOKOMO
|
||||
Admin State/Province: BM
|
||||
Admin Postal Code: 31337
|
||||
Admin Country: US
|
||||
Admin Phone: +1.2126660420
|
||||
Admin Fax: +1.2126660420
|
||||
Admin Email: BOFH@cat.lol
|
||||
Registry Tech ID: 6-ROID
|
||||
Tech Name: The Raven
|
||||
Tech Organization: GOOGLE INCORPORATED <script>
|
||||
Tech Street: 123 Example Boulevard <script>
|
||||
Tech City: KOKOMO
|
||||
Tech State/Province: BM
|
||||
Tech Postal Code: 31337
|
||||
Tech Country: US
|
||||
Tech Phone: +1.2126660420
|
||||
Tech Fax: +1.2126660420
|
||||
Tech Email: bog@cat.lol
|
||||
Name Server: ns1.cat.lol
|
||||
Name Server: ns2.cat.lol
|
||||
DNSSEC: signedDelegation
|
||||
|
|
|
@ -13,39 +13,9 @@ Domain Status: clientDeleteProhibited https://icann.org/epp#clientDeleteProhibit
|
|||
Domain Status: clientRenewProhibited https://icann.org/epp#clientRenewProhibited
|
||||
Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited
|
||||
Domain Status: serverUpdateProhibited https://icann.org/epp#serverUpdateProhibited
|
||||
Registry Registrant ID: 4-ROID
|
||||
Registrant Name: (◕‿◕)
|
||||
Registrant Organization: GOOGLE INCORPORATED <script>
|
||||
Registrant Street: 123 Example Boulevard <script>
|
||||
Registrant City: KOKOMO
|
||||
Registrant State/Province: BM
|
||||
Registrant Postal Code: 31337
|
||||
Registrant Country: US
|
||||
Registrant Phone: +1.2126660420
|
||||
Registrant Fax: +1.2126660420
|
||||
Registrant Email: lol@cat.みんな
|
||||
Registry Admin ID: 5-ROID
|
||||
Admin Name: Santa Claus
|
||||
Admin Organization: GOOGLE INCORPORATED <script>
|
||||
Admin Street: 123 Example Boulevard <script>
|
||||
Admin City: KOKOMO
|
||||
Admin State/Province: BM
|
||||
Admin Postal Code: 31337
|
||||
Admin Country: US
|
||||
Admin Phone: +1.2126660420
|
||||
Admin Fax: +1.2126660420
|
||||
Admin Email: BOFH@cat.みんな
|
||||
Registry Tech ID: 6-ROID
|
||||
Tech Name: The Raven
|
||||
Tech Organization: GOOGLE INCORPORATED <script>
|
||||
Tech Street: 123 Example Boulevard <script>
|
||||
Tech City: KOKOMO
|
||||
Tech State/Province: BM
|
||||
Tech Postal Code: 31337
|
||||
Tech Country: US
|
||||
Tech Phone: +1.2126660420
|
||||
Tech Fax: +1.2126660420
|
||||
Tech Email: bog@cat.みんな
|
||||
Name Server: ns1.cat.xn--q9jyb4c
|
||||
Name Server: ns2.cat.xn--q9jyb4c
|
||||
DNSSEC: signedDelegation
|
||||
|
|
|
@ -13,39 +13,9 @@ Domain Status: clientDeleteProhibited https://icann.org/epp#clientDeleteProhibit
|
|||
Domain Status: clientRenewProhibited https://icann.org/epp#clientRenewProhibited
|
||||
Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited
|
||||
Domain Status: serverUpdateProhibited https://icann.org/epp#serverUpdateProhibited
|
||||
Registry Registrant ID: 4-ROID
|
||||
Registrant Name: (◕‿◕)
|
||||
Registrant Organization: GOOGLE INCORPORATED <script>
|
||||
Registrant Street: 123 Example Boulevard <script>
|
||||
Registrant City: KOKOMO
|
||||
Registrant State/Province: BM
|
||||
Registrant Postal Code: 31337
|
||||
Registrant Country: US
|
||||
Registrant Phone: +1.2126660420
|
||||
Registrant Fax: +1.2126660420
|
||||
Registrant Email: lol@cat.みんな
|
||||
Registry Admin ID: 5-ROID
|
||||
Admin Name: Santa Claus
|
||||
Admin Organization: GOOGLE INCORPORATED <script>
|
||||
Admin Street: 123 Example Boulevard <script>
|
||||
Admin City: KOKOMO
|
||||
Admin State/Province: BM
|
||||
Admin Postal Code: 31337
|
||||
Admin Country: US
|
||||
Admin Phone: +1.2126660420
|
||||
Admin Fax: +1.2126660420
|
||||
Admin Email: BOFH@cat.みんな
|
||||
Registry Tech ID: 6-ROID
|
||||
Tech Name: The Raven
|
||||
Tech Organization: GOOGLE INCORPORATED <script>
|
||||
Tech Street: 123 Example Boulevard <script>
|
||||
Tech City: KOKOMO
|
||||
Tech State/Province: BM
|
||||
Tech Postal Code: 31337
|
||||
Tech Country: US
|
||||
Tech Phone: +1.2126660420
|
||||
Tech Fax: +1.2126660420
|
||||
Tech Email: bog@cat.みんな
|
||||
Name Server: ns1.cat.みんな
|
||||
Name Server: ns2.cat.みんな
|
||||
DNSSEC: signedDelegation
|
||||
|
|
|
@ -15,44 +15,9 @@ Domain Status: clientRenewProhibited https://icann.org/epp#clientRenewProhibited
|
|||
Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited
|
||||
Domain Status: serverUpdateProhibited https://icann.org/epp#serverUpdateProhibited
|
||||
Domain Status: transferPeriod https://icann.org/epp#transferPeriod
|
||||
Registry Registrant ID: 4-TLD
|
||||
Registrant Name: EXAMPLE REGISTRANT
|
||||
Registrant Organization: EXAMPLE ORGANIZATION
|
||||
Registrant Street: 123 EXAMPLE STREET
|
||||
Registrant City: ANYTOWN
|
||||
Registrant State/Province: AP
|
||||
Registrant Postal Code: A1A1A1
|
||||
Registrant Country: EX
|
||||
Registrant Phone: +1.5555551212
|
||||
Registrant Phone Ext: 1234
|
||||
Registrant Fax: +1.5555551213
|
||||
Registrant Fax Ext: 4321
|
||||
Registrant Email: EMAIL@EXAMPLE.tld
|
||||
Registry Admin ID: 5-TLD
|
||||
Admin Name: EXAMPLE REGISTRANT ADMINISTRATIVE
|
||||
Admin Organization: EXAMPLE REGISTRANT ORGANIZATION
|
||||
Admin Street: 123 EXAMPLE STREET
|
||||
Admin City: ANYTOWN
|
||||
Admin State/Province: AP
|
||||
Admin Postal Code: A1A1A1
|
||||
Admin Country: EX
|
||||
Admin Phone: +1.5555551212
|
||||
Admin Phone Ext: 1234
|
||||
Admin Fax: +1.5555551213
|
||||
Admin Email: EMAIL@EXAMPLE.tld
|
||||
Registry Tech ID: 6-TLD
|
||||
Tech Name: EXAMPLE REGISTRAR TECHNICAL
|
||||
Tech Organization: EXAMPLE REGISTRAR LLC
|
||||
Tech Street: 123 EXAMPLE STREET
|
||||
Tech City: ANYTOWN
|
||||
Tech State/Province: AP
|
||||
Tech Postal Code: A1A1A1
|
||||
Tech Country: EX
|
||||
Tech Phone: +1.1235551234
|
||||
Tech Phone Ext: 1234
|
||||
Tech Fax: +1.5555551213
|
||||
Tech Fax Ext: 93
|
||||
Tech Email: EMAIL@EXAMPLE.tld
|
||||
Name Server: ns01.exampleregistrar.tld
|
||||
Name Server: ns02.exampleregistrar.tld
|
||||
DNSSEC: signedDelegation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue