Skip to content

Commit 4484979

Browse files
authored
Use env var connections instead of actual db connections in kube systests (#54385)
1 parent 1d04f09 commit 4484979

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

kubernetes-tests/tests/kubernetes_tests/test_kubernetes_pod_operator.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1464,6 +1464,15 @@ def __getattr__(self, name):
14641464

14651465

14661466
class TestKubernetesPodOperator(BaseK8STest):
1467+
@pytest.fixture(autouse=True)
1468+
def setup_connections(self, create_connection_without_db):
1469+
"""Create kubernetes_default connection"""
1470+
connection = Connection(
1471+
conn_id="kubernetes_default",
1472+
conn_type="kubernetes",
1473+
)
1474+
create_connection_without_db(connection)
1475+
14671476
@pytest.mark.parametrize(
14681477
"active_deadline_seconds,should_fail",
14691478
[(3, True), (60, False)],

0 commit comments

Comments
 (0)