This is an automated email from the ASF dual-hosted git repository.

bugraoz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 063e4829323 Add missing custom command in airflowctl integration tests 
(#64795)
063e4829323 is described below

commit 063e4829323ccb630c3fba15601abf3a87ec2144
Author: Bugra Ozturk <[email protected]>
AuthorDate: Tue Apr 7 20:20:15 2026 +0200

    Add missing custom command in airflowctl integration tests (#64795)
    
    * Simplify calls in airflowctl integration tests
---
 .../airflowctl_tests/test_airflowctl_commands.py     | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)

diff --git 
a/airflow-ctl-tests/tests/airflowctl_tests/test_airflowctl_commands.py 
b/airflow-ctl-tests/tests/airflowctl_tests/test_airflowctl_commands.py
index 4aea60dca68..c004f5ccfdb 100644
--- a/airflow-ctl-tests/tests/airflowctl_tests/test_airflowctl_commands.py
+++ b/airflow-ctl-tests/tests/airflowctl_tests/test_airflowctl_commands.py
@@ -51,6 +51,7 @@ LOGIN_OUTPUT = "Login successful! Welcome to airflowctl!"
 TEST_COMMANDS = [
     # Auth commands
     f"auth token {CREDENTIAL_SUFFIX}",
+    "auth list-envs",
     # Assets commands
     "assets list",
     "assets get --asset-id=1",
@@ -168,9 +169,7 @@ def test_hardcoded_xcom_key_would_collide():
 )
 def test_airflowctl_commands(command: str, run_command):
     """Test airflowctl commands using docker-compose environment."""
-    env_vars = {"AIRFLOW_CLI_DEBUG_MODE": "true"}
-
-    run_command(command, env_vars, skip_login=True)
+    run_command(command=command, env_vars={"AIRFLOW_CLI_DEBUG_MODE": "true"}, 
skip_login=True)
 
 
 @pytest.mark.parametrize(
@@ -180,9 +179,12 @@ def test_airflowctl_commands(command: str, run_command):
 )
 def test_airflowctl_commands_skip_keyring(command: str, api_token: str, 
run_command):
     """Test airflowctl commands using docker-compose environment without using 
keyring."""
-    env_vars = {}
-    env_vars["AIRFLOW_CLI_TOKEN"] = api_token
-    env_vars["AIRFLOW_CLI_DEBUG_MODE"] = "false"
-    env_vars["AIRFLOW_CLI_ENVIRONMENT"] = "nokeyring"
-
-    run_command(command, env_vars, skip_login=True)
+    run_command(
+        command=command,
+        env_vars={
+            "AIRFLOW_CLI_TOKEN": api_token,
+            "AIRFLOW_CLI_DEBUG_MODE": "false",
+            "AIRFLOW_CLI_ENVIRONMENT": "nokeyring",
+        },
+        skip_login=True,
+    )

Reply via email to