mirror of
https://github.com/google/nomulus.git
synced 2025-05-20 19:29:35 +02:00
Make name and address fields required on Registrar
The absence of these fields causes RDE failures, so they are in effect required on any functioning registry system. We are currently experiencing problems in sandbox caused by null values on these fields. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=155474895
This commit is contained in:
parent
5313ca58d6
commit
ef1487cb57
18 changed files with 460 additions and 272 deletions
|
@ -83,6 +83,7 @@ import google.registry.model.ofy.ObjectifyService;
|
|||
import google.registry.model.poll.PollMessage;
|
||||
import google.registry.model.pricing.StaticPremiumListPricingEngine;
|
||||
import google.registry.model.registrar.Registrar;
|
||||
import google.registry.model.registrar.RegistrarAddress;
|
||||
import google.registry.model.registry.Registry;
|
||||
import google.registry.model.registry.Registry.TldState;
|
||||
import google.registry.model.registry.Registry.TldType;
|
||||
|
@ -611,14 +612,22 @@ public class DatastoreHelper {
|
|||
.build());
|
||||
}
|
||||
|
||||
/** Creates a stripped-down {@link Registrar} with the specified clientId and ianaIdentifier */
|
||||
public static Registrar persistNewRegistrar(String clientId, long ianaIdentifier) {
|
||||
/** Persists and returns a {@link Registrar} with the specified attributes. */
|
||||
public static Registrar persistNewRegistrar(
|
||||
String clientId, String registrarName, Registrar.Type type, long ianaIdentifier) {
|
||||
return persistSimpleResource(
|
||||
new Registrar.Builder()
|
||||
.setClientId(clientId)
|
||||
.setType(Registrar.Type.REAL)
|
||||
.setIanaIdentifier(ianaIdentifier)
|
||||
.build());
|
||||
.setClientId(clientId)
|
||||
.setRegistrarName(registrarName)
|
||||
.setType(type)
|
||||
.setIanaIdentifier(ianaIdentifier)
|
||||
.setLocalizedAddress(
|
||||
new RegistrarAddress.Builder()
|
||||
.setStreet(ImmutableList.of("123 Fake St"))
|
||||
.setCity("Fakington")
|
||||
.setCountryCode("US")
|
||||
.build())
|
||||
.build());
|
||||
}
|
||||
|
||||
private static Iterable<BillingEvent> getBillingEvents() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue