Add escrow file import validation logic

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=129116064
This commit is contained in:
Wolfgang Meyers 2016-08-02 10:56:27 -07:00 committed by Justine Tunney
parent f9636b6cea
commit d3d33ccfdc
11 changed files with 956 additions and 33 deletions

View file

@ -314,6 +314,15 @@ public final class ConfigModule {
return projectId + "-rde";
}
/**
* Returns the Google Cloud Storage bucket for importing escrow files.
*/
@Provides
@Config("rdeImportBucket")
public String provideRdeImportBucket(@Config("projectId") String projectId) {
return projectId + "-rde-import";
}
/**
* Size of Ghostryde buffer in bytes for each layer in the pipeline.
*

View file

@ -98,11 +98,6 @@ public final class ProductionRegistryConfigExample implements RegistryConfig {
return getProjectId() + "-zonefiles";
}
@Override
public String getEscrowFileImportBucket() {
return getProjectId() + "-escrow-import";
}
@Override
public boolean getTmchCaTestingMode() {
switch (environment) {

View file

@ -89,11 +89,6 @@ public interface RegistryConfig {
*/
public String getZoneFilesBucket();
/**
* Returns the Google Cloud Storage bucket for importing escrow files.
*/
public String getEscrowFileImportBucket();
/**
* Returns {@code true} if TMCH certificate authority should be in testing mode.
*

View file

@ -65,11 +65,6 @@ public class TestRegistryConfig implements RegistryConfig {
return getProjectId() + "-zonefiles";
}
@Override
public String getEscrowFileImportBucket() {
return getProjectId() + "-escrow-import";
}
@Override
public boolean getTmchCaTestingMode() {
return true;