This is an automated email from the ASF dual-hosted git repository.
potiuk 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 72c489da5e Adding typing for a KPO test (#33380)
72c489da5e is described below
commit 72c489da5e8c6e1811cff1257c594e70afc93328
Author: Amogh Desai <[email protected]>
AuthorDate: Mon Aug 14 12:21:30 2023 +0530
Adding typing for a KPO test (#33380)
---
kubernetes_tests/test_kubernetes_pod_operator.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/kubernetes_tests/test_kubernetes_pod_operator.py
b/kubernetes_tests/test_kubernetes_pod_operator.py
index 18056977fc..5b94e2186c 100644
--- a/kubernetes_tests/test_kubernetes_pod_operator.py
+++ b/kubernetes_tests/test_kubernetes_pod_operator.py
@@ -29,7 +29,7 @@ from uuid import uuid4
import pendulum
import pytest
-from kubernetes.client import models as k8s
+from kubernetes.client import V1EnvVar, models as k8s
from kubernetes.client.api_client import ApiClient
from kubernetes.client.rest import ApiException
from pytest import param
@@ -1320,10 +1320,10 @@ def
test_hide_sensitive_field_in_templated_fields_on_error(caplog, monkeypatch):
name="hello-dry-run",
image="python:3.8-slim-buster",
cmds=["printenv"],
- env_vars={
- "password": "{{ password }}",
- "VAR2": "{{ var.value.nonexisting}}",
- },
+ env_vars=[
+ V1EnvVar(name="password", value="{{ password }}"),
+ V1EnvVar(name="VAR2", value="{{ var.value.nonexisting}}"),
+ ],
)
with pytest.raises(KeyError):
task.render_template_fields(context=context)