mirror of
https://github.com/google/nomulus
synced 2026-09-18 14:04:17 +00:00
Include more info in host/domain name failures (#1346)
We're seeing some of these in CreateSyntheticHistoryEntriesAction and I can't tell why from the logs (it doesn't appear to print the repo ID or domain/host name)
This commit is contained in:
@@ -696,7 +696,7 @@ public class DomainBaseTest extends EntityTestCase {
|
||||
IllegalArgumentException.class, () -> domain.asBuilder().setDomainName("AAA.BBB"));
|
||||
assertThat(thrown)
|
||||
.hasMessageThat()
|
||||
.contains("Domain name must be in puny-coded, lower-case form");
|
||||
.isEqualTo("Domain name AAA.BBB not in puny-coded, lower-case form");
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -706,7 +706,7 @@ public class DomainBaseTest extends EntityTestCase {
|
||||
IllegalArgumentException.class, () -> domain.asBuilder().setDomainName("みんな.みんな"));
|
||||
assertThat(thrown)
|
||||
.hasMessageThat()
|
||||
.contains("Domain name must be in puny-coded, lower-case form");
|
||||
.isEqualTo("Domain name みんな.みんな not in puny-coded, lower-case form");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -200,7 +200,7 @@ class HostResourceTest extends EntityTestCase {
|
||||
IllegalArgumentException.class, () -> host.asBuilder().setHostName("AAA.BBB.CCC"));
|
||||
assertThat(thrown)
|
||||
.hasMessageThat()
|
||||
.contains("Host name must be in puny-coded, lower-case form");
|
||||
.isEqualTo("Host name AAA.BBB.CCC not in puny-coded, lower-case form");
|
||||
}
|
||||
|
||||
@TestOfyAndSql
|
||||
@@ -210,7 +210,7 @@ class HostResourceTest extends EntityTestCase {
|
||||
IllegalArgumentException.class, () -> host.asBuilder().setHostName("みんな.みんな.みんな"));
|
||||
assertThat(thrown)
|
||||
.hasMessageThat()
|
||||
.contains("Host name must be in puny-coded, lower-case form");
|
||||
.isEqualTo("Host name みんな.みんな.みんな not in puny-coded, lower-case form");
|
||||
}
|
||||
|
||||
@TestOfyAndSql
|
||||
|
||||
Reference in New Issue
Block a user