mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 16:07:15 +02:00
Make domain check return availability regardless of fee extensions
This allows a registrar to check domain availability even if the fee extension is not set. To obtain the premium price or create the domain, the fee extension is still needed. PS: I believe the previous tests are erroneous anyway. It is the presence of fee extensions in the check request that we were looking for. Checking if the extension is declared during login has no bearing on the results. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=192778137
This commit is contained in:
parent
078e9cbe53
commit
bee77f0cc3
2 changed files with 2 additions and 26 deletions
|
@ -460,28 +460,11 @@ public class DomainCheckFlowTest
|
|||
create(true, "example3.tld", null));
|
||||
}
|
||||
|
||||
/**
|
||||
* Test that premium names are shown as unavailable if the premium pricing extension is not
|
||||
* declared at login.
|
||||
*/
|
||||
/** Test that premium names are shown as available even if the fee extension is not used. */
|
||||
@Test
|
||||
public void testAvailExtension_premiumDomainsAreUnavailableWithoutExtension() throws Exception {
|
||||
sessionMetadata.setServiceExtensionUris(ImmutableSet.of());
|
||||
public void testAvailExtension_premiumDomainsAreAvailableWithoutExtension() throws Exception {
|
||||
createTld("example");
|
||||
setEppInput("domain_check_premium.xml");
|
||||
doCheckTest(create(false, "rich.example", "Premium names require EPP ext."));
|
||||
}
|
||||
|
||||
/**
|
||||
* Test that premium names are always shown as available if the TLD does not require the premium
|
||||
* pricing extension to register premium names.
|
||||
*/
|
||||
@Test
|
||||
public void testAvailExtension_premiumDomainsAvailableIfNotRequiredByTld() throws Exception {
|
||||
sessionMetadata.setServiceExtensionUris(ImmutableSet.of());
|
||||
createTld("example");
|
||||
persistResource(Registry.get("example").asBuilder().setPremiumPriceAckRequired(false).build());
|
||||
setEppInput("domain_check_premium.xml");
|
||||
doCheckTest(create(true, "rich.example", null));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue