tests.system.providers.google.cloud.cloud_functions.example_functions

Example Airflow DAG that displays interactions with Google Cloud Functions. It creates a function and then deletes it.

This DAG relies on the following OS environment variables https://airflow.apache.org/concepts.html#variables

  • PROJECT_ID - Google Cloud Project to use for the Cloud Function.

  • LOCATION - Google Cloud Functions region where the function should be created.

  • ENTRYPOINT - Name of the executable function in the source code.

  • and one of the below:

Module Contents

tests.system.providers.google.cloud.cloud_functions.example_functions.PROJECT_ID[source]
tests.system.providers.google.cloud.cloud_functions.example_functions.DAG_ID = example_gcp_function[source]
tests.system.providers.google.cloud.cloud_functions.example_functions.SHORT_FUNCTION_NAME = hello[source]
tests.system.providers.google.cloud.cloud_functions.example_functions.LOCATION = europe-west1[source]
tests.system.providers.google.cloud.cloud_functions.example_functions.FUNCTION_NAME[source]
tests.system.providers.google.cloud.cloud_functions.example_functions.SOURCE_ARCHIVE_URL =[source]
tests.system.providers.google.cloud.cloud_functions.example_functions.SOURCE_UPLOAD_URL =[source]
tests.system.providers.google.cloud.cloud_functions.example_functions.repo = test-repo[source]
tests.system.providers.google.cloud.cloud_functions.example_functions.SOURCE_REPOSITORY[source]
tests.system.providers.google.cloud.cloud_functions.example_functions.ZIP_PATH =[source]
tests.system.providers.google.cloud.cloud_functions.example_functions.ENTRYPOINT = helloWorld[source]
tests.system.providers.google.cloud.cloud_functions.example_functions.RUNTIME = nodejs14[source]
tests.system.providers.google.cloud.cloud_functions.example_functions.VALIDATE_BODY = True[source]
tests.system.providers.google.cloud.cloud_functions.example_functions.body[source]
tests.system.providers.google.cloud.cloud_functions.example_functions.default_args :dict[str, Any][source]
tests.system.providers.google.cloud.cloud_functions.example_functions.deploy_task[source]
tests.system.providers.google.cloud.cloud_functions.example_functions.test_run[source]

Was this entry helpful?