Uploaded image for project: 'Apache Airflow'
  1. Apache Airflow
  2. AIRFLOW-6688

Missing tests for the providers package

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.10.7
    • Fix Version/s: None
    • Component/s: hooks, operators
    • Labels:
      None

      Description

      We strive to ensure that the project has the largest possible coverage.  Unfortunately, some non-airflow files do not have a matching file in the tests directory.  It is possible that some tests exist but are in the wrong file. 

      Magic command:  

      comm -13 <(find tests/providers -type f | grep -v "__init__.py" | grep -v "example_dags" | cut -d / -f 3- | sort | sed 's/test_//g' | grep -v system ) <(find airflow/providers -type f | grep -v "__init__.py" | grep -v "example_dags" | cut -d / -f 3- | sort)
      

       

       Magic result 

      amazon/aws/hooks/athena.py
      amazon/aws/hooks/batch_waiters.json
      amazon/aws/hooks/s3.py
      apache/hdfs/sensors/web_hdfs.py
      apache/hive/operators/vertica_to_hive.py
      apache/hive/sensors/hive_partition.py
      apache/hive/sensors/metastore_partition.py
      apache/pig/operators/pig.py
      apache/spark/hooks/spark_jdbc_script.py
      cncf/kubernetes/operators/kubernetes_pod.py
      google/cloud/operators/datastore.py
      google/cloud/operators/gcs_to_bigquery.py
      google/cloud/operators/sql_to_gcs.py
      google/cloud/sensors/bigquery.py
      google/cloud/utils/credentials_provider.py
      google/cloud/utils/field_sanitizer.py
      google/cloud/utils/field_validator.py
      google/cloud/utils/mlengine_operator_utils.py
      google/cloud/utils/mlengine_prediction_summary.py
      jenkins/hooks/jenkins.py
      microsoft/azure/sensors/azure_cosmos.py
      microsoft/mssql/hooks/mssql.py
      microsoft/mssql/operators/mssql.py
      oracle/operators/oracle.py
      presto/operators/presto_check.py
      qubole/hooks/qubole.py
      samba/hooks/samba.py
      sqlite/operators/sqlite.py
      vertica/hooks/vertica.py
      

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kamil.bregula Kamil Bregula
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: