Skip to content

Commit

Permalink
Fix provider.yaml errors due to exit(0) in test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
potiuk committed Aug 27, 2021
1 parent e18b6a6 commit 7f1ad08
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
3 changes: 3 additions & 0 deletions airflow/providers/amazon/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 6 additions & 7 deletions airflow/providers/microsoft/psrp/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 7f1ad08

Please sign in to comment.