Skip to content

Commit

Permalink
fix up some unit test resource files
Browse files Browse the repository at this point in the history
  • Loading branch information
craigrose committed Nov 13, 2023
1 parent 40ac4a6 commit 9e9a0dd
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import au.org.aodn.aws.geoserver.client.HttpIndexReader;
import au.org.aodn.aws.geoserver.client.SubsetParameters;
import au.org.aodn.aws.geoserver.client.TimeNotSupportedException;
import au.org.emii.util.IntegerHelper;
import au.org.emii.util.NumberRange;
import au.org.emii.util.ProvenanceWriter;
import com.amazonaws.AmazonServiceException;
Expand Down Expand Up @@ -369,7 +368,7 @@ public void start() {

// Search for the metadata record for the layer by layer name
String catalogueURL = WpsConfig.getProperty(GEONETWORK_CATALOGUE_URL_CONFIG_KEY);
String layerSearchField = WpsConfig.getProperty(GEONETWORK_LAYER_SEARCH_FIELD_CONFIG_KEY);
String layerSearchField = WpsConfig.getProperty(GEONETWORK_CATALOGUE_LAYER_FIELD_CONFIG_KEY);
CatalogueReader catalogueReader = new CatalogueReader(catalogueURL, layerSearchField);

//TODO: You need to report failure in the status report, otherwise the client keep waiting
Expand Down Expand Up @@ -590,7 +589,7 @@ private String getCollectionTitle(JobFileManager jobFileManager) throws Exceptio

// Search for the metadata record for the layer by layer name
String catalogueURL = WpsConfig.getProperty(GEONETWORK_CATALOGUE_URL_CONFIG_KEY);
String layerSearchField = WpsConfig.getProperty(GEONETWORK_LAYER_SEARCH_FIELD_CONFIG_KEY);
String layerSearchField = WpsConfig.getProperty(GEONETWORK_CATALOGUE_LAYER_FIELD_CONFIG_KEY);
CatalogueReader catalogueReader = new CatalogueReader(catalogueURL, layerSearchField);

String metadataResponseXML = catalogueReader.getMetadataSummaryXML(layer);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public void run(String... args) {
System.setProperty(WpsConfig.REQUEST_S3_FILENAME_CONFIG_KEY, requestFileName.orElse(null));
System.setProperty(WpsConfig.WPS_ENDPOINT_URL_CONFIG_KEY, endPointUrl.orElse(null));
System.setProperty(WpsConfig.GEONETWORK_CATALOGUE_URL_CONFIG_KEY, geoNetworkUrl.orElse(null));
System.setProperty(WpsConfig.GEONETWORK_LAYER_SEARCH_FIELD_CONFIG_KEY, geonetworkLayerSearchField.orElse(null));
System.setProperty(WpsConfig.GEONETWORK_CATALOGUE_LAYER_FIELD_CONFIG_KEY, geonetworkLayerSearchField.orElse(null));
System.setProperty(WpsConfig.ADMINISTRATOR_EMAIL, administratorEmail.orElse(null));
System.setProperty(WpsConfig.OUTPUT_S3_BUCKET_CONFIG_KEY, outputBucket.orElse(null));
System.setProperty(WpsConfig.AWS_REGION_SES_CONFIG_KEY, region.orElse(null));
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed lambda/job-status-service-lambda-package.zip
Binary file not shown.
Binary file removed lambda/request-handler-lambda-package.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class WpsConfig {
public static final String DOWNLOAD_READ_TIMEOUT_CONFIG_KEY = "DOWNLOAD_READ_TIMEOUT";

public static final String GEONETWORK_CATALOGUE_URL_CONFIG_KEY = "GEONETWORK_CATALOGUE_URL";
public static final String GEONETWORK_LAYER_SEARCH_FIELD_CONFIG_KEY = "GEONETWORK_LAYER_SEARCH_FIELD";
public static final String GEONETWORK_CATALOGUE_LAYER_FIELD_CONFIG_KEY = "GEONETWORK_LAYER_SEARCH_FIELD";

public static final String STATUS_SERVICE_JOB_ID_PARAMETER_NAME = "jobId";
public static final String STATUS_SERVICE_FORMAT_PARAMETER_NAME = "format";
Expand Down

0 comments on commit 9e9a0dd

Please sign in to comment.