From 50409eac2484838fa607d7ea64ff154b2e5ca7c6 Mon Sep 17 00:00:00 2001 From: Abhishek Pandey Date: Tue, 31 May 2022 12:15:02 +0530 Subject: [PATCH] removed-required-from-aws-credential (#5219) removed-required-from-aws-credential (#5219) --- .../json/schema/security/credentials/awsCredentials.json | 2 +- ingestion/tests/unit/test_workflow_parse.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/catalog-rest-service/src/main/resources/json/schema/security/credentials/awsCredentials.json b/catalog-rest-service/src/main/resources/json/schema/security/credentials/awsCredentials.json index fca28e56991..8feb01a9c4e 100644 --- a/catalog-rest-service/src/main/resources/json/schema/security/credentials/awsCredentials.json +++ b/catalog-rest-service/src/main/resources/json/schema/security/credentials/awsCredentials.json @@ -34,5 +34,5 @@ } }, "additionalProperties": false, - "required": ["awsAccessKeyId", "awsSecretAccessKey", "awsRegion"] + "required": ["awsRegion"] } diff --git a/ingestion/tests/unit/test_workflow_parse.py b/ingestion/tests/unit/test_workflow_parse.py index aa95b5ec1d9..b65f7b6330b 100644 --- a/ingestion/tests/unit/test_workflow_parse.py +++ b/ingestion/tests/unit/test_workflow_parse.py @@ -204,4 +204,7 @@ class TestWorkflowParse(TestCase): with self.assertRaises(ValidationError) as err: parse_workflow_config_gracefully(config_dict) - self.assertIn("2 validation errors for GlueConnection", str(err.exception)) + self.assertIn( + "1 validation error for GlueConnection\nrandom\n extra fields not permitted (type=value_error.extra)", + str(err.exception), + )