mirror of
https://github.com/google/nomulus.git
synced 2025-05-15 17:07:15 +02:00
Move injectable config values into ConfigModule
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=138903917
This commit is contained in:
parent
1b6f2f82cd
commit
fab8ca8414
4 changed files with 58 additions and 135 deletions
|
@ -18,7 +18,6 @@ import static google.registry.config.ConfigUtils.makeUrl;
|
|||
import static org.joda.time.Duration.standardDays;
|
||||
|
||||
import com.google.common.base.Optional;
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import com.google.common.net.HostAndPort;
|
||||
import java.net.URL;
|
||||
import org.joda.time.Duration;
|
||||
|
@ -50,31 +49,11 @@ public class TestRegistryConfig implements RegistryConfig {
|
|||
return getProjectId() + "-snapshots";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDomainListsBucket() {
|
||||
return getProjectId() + "-domain-lists";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommitsBucket() {
|
||||
return getProjectId() + "-commits";
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getZoneFilesBucket() {
|
||||
return getProjectId() + "-zonefiles";
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean getTmchCaTestingMode() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTmchMarksdbUrl() {
|
||||
return "https://ry.marksdb.org";
|
||||
}
|
||||
|
||||
@Override
|
||||
public Optional<String> getECatcherAddress() {
|
||||
throw new UnsupportedOperationException();
|
||||
|
@ -117,11 +96,6 @@ public class TestRegistryConfig implements RegistryConfig {
|
|||
return "noreply@testing.example";
|
||||
}
|
||||
|
||||
@Override
|
||||
public ImmutableList<String> getRegistrarChangesNotificationEmailAddresses() {
|
||||
return ImmutableList.of("notification@test.example", "notification2@test.example");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRegistrarDefaultWhoisServer() {
|
||||
return "whois.nic.fakewhois.example";
|
||||
|
@ -137,11 +111,6 @@ public class TestRegistryConfig implements RegistryConfig {
|
|||
return "Nomulus";
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMaxChecks() {
|
||||
return 50;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getEppResourceIndexBucketCount() {
|
||||
return 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue