Cloud Composer 1 is in the post-maintenance mode. Google
does not release any further updates to Cloud Composer 1, including new versions of Airflow, bugfixes, and security updates. We recommend planning
migration to Cloud Composer 2.
Example DAG test (Airflow 1)
Stay organized with collections
Save and categorize content based on your preferences.
An example unit test for a DAG
Code sample
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],[],[[["This page provides a sample unit test for a DAG (Directed Acyclic Graph) within the context of Google Cloud Composer."],["It emphasizes the importance of setting up Application Default Credentials (ADC) for authenticating with Cloud Composer."],["The provided code sample demonstrates how to verify a DAG module for syntax errors and the absence of cycles."],["The page directs users to the Google Cloud sample browser for further code samples related to Google Cloud products."]]],[]]