mirror of
https://github.com/google/nomulus.git
synced 2025-07-24 11:38:35 +02:00
Allow registrars to be completely DISABLED
Disabled registrar cannot perform any actions via EPP and cannot log in to the registrar web console. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=239606389
This commit is contained in:
parent
06adc9739a
commit
8ae2260ed1
15 changed files with 138 additions and 46 deletions
|
@ -23,6 +23,7 @@ import static google.registry.util.DateTimeUtils.START_OF_TIME;
|
|||
import com.google.common.collect.ImmutableMap;
|
||||
import com.googlecode.objectify.ObjectifyFilter;
|
||||
import google.registry.model.ofy.OfyFilter;
|
||||
import google.registry.model.registrar.Registrar.State;
|
||||
import google.registry.module.frontend.FrontendServlet;
|
||||
import google.registry.server.RegistryTestServer;
|
||||
import google.registry.testing.CertificateSamples;
|
||||
|
@ -257,6 +258,17 @@ public class RegistrarConsoleScreenshotTest {
|
|||
driver.diffPage("edit");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void index_registrarDisabled() throws Throwable {
|
||||
server.runInAppEngineEnvironment(
|
||||
() ->
|
||||
persistResource(
|
||||
loadRegistrar("TheRegistrar").asBuilder().setState(State.DISABLED).build()));
|
||||
driver.get(server.getUrl("/registrar"));
|
||||
driver.waitForElement(By.tagName("h1"));
|
||||
driver.diffPage("view");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void settingsWhois() throws Throwable {
|
||||
driver.get(server.getUrl("/registrar#whois-settings"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue