Coverage for /pythoncovmergedfiles/medio/medio/src/airflow/build/lib/airflow/utils/log/__init__.py: 100%

4 statements  

« prev     ^ index     » next       coverage.py v7.2.7, created at 2023-06-07 06:35 +0000

1# 

2# Licensed to the Apache Software Foundation (ASF) under one 

3# or more contributor license agreements. See the NOTICE file 

4# distributed with this work for additional information 

5# regarding copyright ownership. The ASF licenses this file 

6# to you under the Apache License, Version 2.0 (the 

7# "License"); you may not use this file except in compliance 

8# with the License. You may obtain a copy of the License at 

9# 

10# http://www.apache.org/licenses/LICENSE-2.0 

11# 

12# Unless required by applicable law or agreed to in writing, 

13# software distributed under the License is distributed on an 

14# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 

15# KIND, either express or implied. See the License for the 

16# specific language governing permissions and limitations 

17# under the License. 

18# fmt: off 

19from __future__ import annotations 

20 

21from airflow.utils.deprecation_tools import add_deprecated_classes 

22 

23__deprecated_classes = { 

24 'cloudwatch_task_handler': { 

25 'CloudwatchTaskHandler': ( 

26 'airflow.providers.amazon.aws.log.cloudwatch_task_handler.CloudwatchTaskHandler' 

27 ), 

28 }, 

29 'es_task_handler': { 

30 'ElasticsearchTaskHandler': ( 

31 'airflow.providers.elasticsearch.log.es_task_handler.ElasticsearchTaskHandler' 

32 ), 

33 }, 

34 'gcs_task_handler': { 

35 'GCSTaskHandler': 'airflow.providers.google.cloud.log.gcs_task_handler.GCSTaskHandler', 

36 }, 

37 's3_task_handler': { 

38 'S3TaskHandler': 'airflow.providers.amazon.aws.log.s3_task_handler.S3TaskHandler', 

39 }, 

40 'stackdriver_task_handler': { 

41 'StackdriverTaskHandler': ( 

42 'airflow.providers.google.cloud.log.stackdriver_task_handler.StackdriverTaskHandler' 

43 ), 

44 }, 

45 'wasb_task_handler': { 

46 'WasbTaskHandler': 'airflow.providers.microsoft.azure.log.wasb_task_handler.WasbTaskHandler', 

47 }, 

48} 

49 

50add_deprecated_classes(__deprecated_classes, __name__)