Add changeset. Change awsS3-discovery to s3-discovery. Change dependencies

Signed-off-by: Sean Tan <seant@splunk.com>
This commit is contained in:
Sean Tan
2021-09-15 13:50:48 -07:00
parent 72289da72c
commit fab79adde1
5 changed files with 12 additions and 6 deletions
+6
View File
@@ -0,0 +1,6 @@
---
'@backstage/backend-common': patch
'@backstage/plugin-catalog-backend': patch
---
Add AWS S3 Discovery Processor. Add readTree() to AwsS3UrlReader. Add ReadableArrayResponse type that implements ReadTreeResponse to use in AwsS3UrlReader's readTree()
+2 -2
View File
@@ -21,8 +21,8 @@ configuration:
```yaml
catalog:
locations:
- type: awsS3-discovery
- type: s3-discovery
target: https://sample-bucket.s3.us-east-2.amazonaws.com/
```
Note the `awsS3-discovery` type, as this is not a regular `url` processor.
Note the `s3-discovery` type, as this is not a regular `url` processor.
+1 -1
View File
@@ -40,7 +40,6 @@
"@octokit/graphql": "^4.5.8",
"@types/express": "^4.17.6",
"aws-sdk": "^2.840.0",
"aws-sdk-mock": "^5.2.1",
"codeowners-utils": "^1.0.2",
"core-js": "^3.6.5",
"cross-fetch": "^3.0.6",
@@ -73,6 +72,7 @@
"@types/supertest": "^2.0.8",
"@types/uuid": "^8.0.0",
"@types/yup": "^0.29.8",
"aws-sdk-mock": "^5.2.1",
"msw": "^0.29.0",
"sqlite3": "^5.0.1",
"supertest": "^6.1.3",
@@ -60,7 +60,7 @@ const reader = UrlReaders.default({
describe('readLocation', () => {
const processor = new AwsS3DiscoveryProcessor(reader);
const spec = {
type: 'awsS3-discovery',
type: 's3-discovery',
target: 'https://testbucket.s3.us-east-2.amazonaws.com',
};
@@ -71,7 +71,7 @@ describe('readLocation', () => {
expect(generated.type).toBe('entity');
expect(generated.location).toEqual({
target: 'awsS3-mock-object.txt',
type: 'awsS3-discovery',
type: 's3-discovery',
});
expect(generated.entity).toEqual({ site_name: 'Test' });
});
@@ -33,7 +33,7 @@ export class AwsS3DiscoveryProcessor implements CatalogProcessor {
emit: CatalogProcessorEmit,
parser: CatalogProcessorParser,
): Promise<boolean> {
if (location.type !== 'awsS3-discovery') {
if (location.type !== 's3-discovery') {
return false;
}