Compare commits
No commits in common. "0416415a86852fd196a49405dc60fd03d186a2cc" and "b55d95645be36dba334bd5ea5bb3e5732d6ae92d" have entirely different histories.
0416415a86
...
b55d95645b
@ -268,24 +268,6 @@ class HsDomainSetupHostingAssetValidatorUnitTest {
|
|||||||
.isAccepted();
|
.isAccepted();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
void allowSetupOfAvailableRegistrable2ndLevelDomain() {
|
|
||||||
domainSetupFor("example.co.uk").notRegistered()
|
|
||||||
.isAccepted();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
void rejectSetupOfRegisteredRegistrable2ndLevelDomainWithoutVerification() {
|
|
||||||
domainSetupFor("example.co.uk").registered()
|
|
||||||
.isRejectedWithCauseMissingVerificationIn("example.co.uk");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
|
||||||
void allowSetupOfRegisteredRegistrable2ndLevelDomainWithVerification() {
|
|
||||||
domainSetupFor("example.co.uk").registeredWithVerification()
|
|
||||||
.isAccepted();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void rejectSetupOfExistingRegistrableDomainWithoutValidDnsVerification() {
|
void rejectSetupOfExistingRegistrableDomainWithoutValidDnsVerification() {
|
||||||
domainSetupFor("example.com").registered()
|
domainSetupFor("example.com").registered()
|
||||||
@ -393,11 +375,9 @@ class HsDomainSetupHostingAssetValidatorUnitTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void isRejectedWithCauseMissingVerificationIn(final String domainName) {
|
void isRejectedWithCauseMissingVerificationIn(final String domainName) {
|
||||||
assertThat(validate()).containsAnyOf(
|
assertThat(validate()).contains(
|
||||||
"[DNS] no TXT record 'Hostsharing-domain-setup-verification-code=" + expectedHash
|
"[DNS] no TXT record 'Hostsharing-domain-setup-verification-code=" + expectedHash
|
||||||
+ "' found for domain name '" + domainName + "' (nor in its super-domain)",
|
+ "' found for domain name '" + domainName + "' (nor in its super-domain)");
|
||||||
"[DNS] no TXT record 'Hostsharing-domain-setup-verification-code=" + expectedHash
|
|
||||||
+ "' found for domain name '" + domainName + "'");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void isAccepted() {
|
void isAccepted() {
|
||||||
|
Loading…
Reference in New Issue
Block a user