Fix format errors and other small changes per suggestion

Signed-off-by: Sean Tan <seant@splunk.com>
This commit is contained in:
Sean Tan
2021-08-10 14:53:44 -07:00
parent fdece1f716
commit 9d5738b3f5
8 changed files with 25 additions and 17 deletions
+1 -1
View File
@@ -40,7 +40,7 @@
"@types/dockerode": "^3.2.1",
"@types/express": "^4.17.6",
"archiver": "^5.0.2",
"aws-sdk": "^2.952.0",
"aws-sdk": "^2.840.0",
"compression": "^1.7.4",
"concat-stream": "^2.0.0",
"cors": "^2.8.5",
@@ -147,7 +147,7 @@ describe('AwsS3UrlReader', () => {
new AwsS3Integration(
readAwsS3IntegrationConfig(
new ConfigReader({
host: '.amazonaws.com',
host: 'amazonaws.com',
accessKeyId: 'fake-access-key',
secretAccessKey: 'fake-secret-key',
}),
@@ -200,7 +200,7 @@ describe('AwsS3UrlReader', () => {
new AwsS3Integration(
readAwsS3IntegrationConfig(
new ConfigReader({
host: '.amazonaws.com',
host: 'amazonaws.com',
accessKeyId: 'fake-access-key',
secretAccessKey: 'fake-secret-key',
}),
@@ -33,7 +33,7 @@ const parseURL = (
let { host, pathname } = new URL(url);
/**
* Removes the trailing '/' from the pathname to be processed
* Removes the leading '/' from the pathname to be processed
* as a parameter by AWS S3 SDK getObject method.
*/
pathname = pathname.substr(1);
-1
View File
@@ -168,7 +168,6 @@ export interface Config {
awsS3?: Array<{
/**
* The host of the target that this matches on, e.g. "amazonaws.com".
*
* @visibility frontend
*/
host: string;
+1 -1
View File
@@ -17,7 +17,7 @@
import { Config } from '@backstage/config';
import { isValidHost } from '../helpers';
const AMAZON_AWS_HOST = '.amazonaws.com';
const AMAZON_AWS_HOST = 'amazonaws.com';
/**
* The configuration parameters for a single AWS S3 provider.