Skip to content

Instantly share code, notes, and snippets.

@judoole
Created April 10, 2024 08:13
Show Gist options
  • Save judoole/7f61ec40297829dce80d667109c8574b to your computer and use it in GitHub Desktop.
Save judoole/7f61ec40297829dce80d667109c8574b to your computer and use it in GitHub Desktop.
Example of a behave feature for Airflow
@ci
Feature: Always use impersonation chain where possible
As a developer
I want to make sure we use impersonation_chain
So that I can develop locally and not be afraid that I overwrite production tables
And that clients don't use other client's GCP projects
Scenario: All tasks should use impersonation_chain when applicable
Given airflow is running
Given tasks that has attribute "impersonation_chain"
Then the attribute "impersonation_chain" is not "None"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment