mirror of
https://github.com/google/nomulus
synced 2026-09-04 23:27:11 +00:00
Make the superuser flag bypass TLD access checks
The --superuser command in the nomulus command-line tool should be bypassing checks on whether the passed-in registrar client ID has access to the TLD in question, but currently it is not. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=158974462
This commit is contained in:
@@ -1131,6 +1131,17 @@ public class DomainApplicationCreateFlowTest
|
||||
runSuperuserFlow("domain_create_sunrush_response.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSuccess_superuserNotAuthorizedForTld() throws Exception {
|
||||
DatastoreHelper.persistResource(Registrar.loadByClientId("TheRegistrar")
|
||||
.asBuilder()
|
||||
.setAllowedTlds(ImmutableSet.<String>of())
|
||||
.build());
|
||||
persistContactsAndHosts();
|
||||
clock.advanceOneMilli();
|
||||
runSuperuserFlow("domain_create_sunrise_encoded_signed_mark_response.xml");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testSuccess_superuserSunrush() throws Exception {
|
||||
createTld("tld", TldState.SUNRUSH);
|
||||
|
||||
Reference in New Issue
Block a user