From 7f1ad08f6d92e90d0738e823ad94ba87c4bf06d9 Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Fri, 27 Aug 2021 10:24:05 +0200 Subject: [PATCH] Fix provider.yaml errors due to exit(0) in test There were a few errors in provider structure resulting from accidental exit(0) in provider's tests. Luckily none of the changes have been released yet. --- airflow/providers/amazon/provider.yaml | 3 +++ airflow/providers/microsoft/psrp/provider.yaml | 13 ++++++------- .../pre_commit_check_provider_yaml_files.py | 2 +- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/airflow/providers/amazon/provider.yaml b/airflow/providers/amazon/provider.yaml index b82caf83b25e5..16a39cb375ca8 100644 --- a/airflow/providers/amazon/provider.yaml +++ b/airflow/providers/amazon/provider.yaml @@ -409,6 +409,9 @@ transfers: target-integration-name: Amazon Simple Storage Service (S3) how-to-guide: /docs/apache-airflow-providers-amazon/operators/salesforce_to_s3.rst python-module: airflow.providers.amazon.aws.transfers.salesforce_to_s3 + - source-integration-name: Local + target-integration-name: Amazon Simple Storage Service (S3) + python-module: airflow.providers.amazon.aws.transfers.local_to_s3 hook-class-names: # deprecated - to be removed after providers add dependency on Airflow 2.2.0+ - airflow.providers.amazon.aws.hooks.s3.S3Hook diff --git a/airflow/providers/microsoft/psrp/provider.yaml b/airflow/providers/microsoft/psrp/provider.yaml index 024f8acbe4028..90c6e0d2cd4ee 100644 --- a/airflow/providers/microsoft/psrp/provider.yaml +++ b/airflow/providers/microsoft/psrp/provider.yaml @@ -29,17 +29,16 @@ additional-dependencies: - pypsrp>=0.5.0 integrations: - - integration-name: Windows Remote Management (WinRM) - external-doc-url: https://docs.microsoft.com/en-us/windows/win32/winrm/portal - logo: /integration-logos/winrm/WinRM.png + - integration-name: Windows PowerShell Remoting Protocol + external-doc-url: https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-psrp/ tags: [protocol] operators: - - integration-name: Windows Remote Management (WinRM) + - integration-name: Windows PowerShell Remoting Protocol python-modules: - - airflow.providers.microsoft.winrm.operators.winrm + - airflow.providers.microsoft.psrp.operators.psrp hooks: - - integration-name: Windows Remote Management (WinRM) + - integration-name: Windows PowerShell Remoting Protocol python-modules: - - airflow.providers.microsoft.winrm.hooks.winrm + - airflow.providers.microsoft.psrp.hooks.psrp diff --git a/scripts/ci/pre_commit/pre_commit_check_provider_yaml_files.py b/scripts/ci/pre_commit/pre_commit_check_provider_yaml_files.py index c6c0584021c35..6019a60f3eb64 100755 --- a/scripts/ci/pre_commit/pre_commit_check_provider_yaml_files.py +++ b/scripts/ci/pre_commit/pre_commit_check_provider_yaml_files.py @@ -96,7 +96,7 @@ def check_integration_duplicates(yaml_files: Dict[str, Dict]): "Please delete duplicates." ) print(tabulate(duplicates, headers=["Integration name", "Number of occurrences"])) - sys.exit(0) + sys.exit(3) def assert_sets_equal(set1, set2):