mirror of
https://github.com/google/nomulus.git
synced 2025-05-15 08:57:12 +02:00
Add some more configs to ConfigModule and provide it in flow tests
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=133079669
This commit is contained in:
parent
4f320232b1
commit
bf9a3a0fb2
2 changed files with 21 additions and 0 deletions
|
@ -658,4 +658,22 @@ public final class ConfigModule {
|
||||||
public static Duration provideMetricsWriteInterval() {
|
public static Duration provideMetricsWriteInterval() {
|
||||||
return Duration.standardSeconds(60);
|
return Duration.standardSeconds(60);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Provides
|
||||||
|
@Config("contactAutomaticTransferLength")
|
||||||
|
public static Duration provideContactAutomaticTransferLength(RegistryConfig config) {
|
||||||
|
return config.getContactAutomaticTransferLength();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Provides
|
||||||
|
@Config("asyncDeleteFlowMapreduceDelay")
|
||||||
|
public static Duration provideAsyncDeleteFlowMapreduceDelay(RegistryConfig config) {
|
||||||
|
return config.getAsyncDeleteFlowMapreduceDelay();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Provides
|
||||||
|
@Config("maxChecks")
|
||||||
|
public static int provideMaxChecks(RegistryConfig config) {
|
||||||
|
return config.getMaxChecks();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@ import dagger.Component;
|
||||||
import dagger.Module;
|
import dagger.Module;
|
||||||
import dagger.Provides;
|
import dagger.Provides;
|
||||||
import dagger.Subcomponent;
|
import dagger.Subcomponent;
|
||||||
|
import google.registry.config.ConfigModule;
|
||||||
import google.registry.monitoring.whitebox.BigQueryMetricsEnqueuer;
|
import google.registry.monitoring.whitebox.BigQueryMetricsEnqueuer;
|
||||||
import google.registry.monitoring.whitebox.EppMetric;
|
import google.registry.monitoring.whitebox.EppMetric;
|
||||||
import google.registry.request.RequestScope;
|
import google.registry.request.RequestScope;
|
||||||
|
@ -32,6 +33,7 @@ import javax.inject.Singleton;
|
||||||
@Singleton
|
@Singleton
|
||||||
@Component(
|
@Component(
|
||||||
modules = {
|
modules = {
|
||||||
|
ConfigModule.class,
|
||||||
EppTestComponent.FakesAndMocksModule.class
|
EppTestComponent.FakesAndMocksModule.class
|
||||||
})
|
})
|
||||||
interface EppTestComponent {
|
interface EppTestComponent {
|
||||||
|
@ -82,3 +84,4 @@ interface EppTestComponent {
|
||||||
FlowComponent.Builder flowComponentBuilder();
|
FlowComponent.Builder flowComponentBuilder();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue