Change second-level domain name to fully-qualified domain name

Second-level domain name isn't accurate because we support multi-part
TLDs, so standardize on the "fullyQualifiedDomainName" name that is
used throughout the code base.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=122693009
This commit is contained in:
mcilwain 2016-05-18 19:16:27 -07:00 committed by Ben McIlwain
parent ca0e546230
commit a2d2764115
14 changed files with 58 additions and 49 deletions

View file

@ -79,7 +79,7 @@ public class CheckApiServletTest {
public void testFailure_nullDomain() throws Exception {
doTest(ImmutableMap.of(
"status", "error",
"reason", "Must supply a valid second level domain name"));
"reason", "Must supply a valid domain name on an authoritative TLD"));
}
@Test
@ -87,7 +87,7 @@ public class CheckApiServletTest {
when(req.getParameter("domain")).thenReturn("");
doTest(ImmutableMap.of(
"status", "error",
"reason", "Must supply a valid second level domain name"));
"reason", "Must supply a valid domain name on an authoritative TLD"));
}
@Test
@ -95,7 +95,7 @@ public class CheckApiServletTest {
when(req.getParameter("domain")).thenReturn("@#$%^");
doTest(ImmutableMap.of(
"status", "error",
"reason", "Must supply a valid second level domain name"));
"reason", "Must supply a valid domain name on an authoritative TLD"));
}
@Test
@ -103,7 +103,7 @@ public class CheckApiServletTest {
when(req.getParameter("domain")).thenReturn("foo");
doTest(ImmutableMap.of(
"status", "error",
"reason", "Must supply a valid second level domain name"));
"reason", "Must supply a valid domain name on an authoritative TLD"));
}
@Test
@ -111,7 +111,7 @@ public class CheckApiServletTest {
when(req.getParameter("domain")).thenReturn("foo.bar");
doTest(ImmutableMap.of(
"status", "error",
"reason", "Domain name is under tld bar which doesn't exist"));
"reason", "Must supply a valid domain name on an authoritative TLD"));
}
@Test