Skip to content

Commit db86c7b

Browse files
committed
bump operator-rs, minor test fixes
1 parent 4ab047d commit db86c7b

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repository = "https://github.com/stackabletech/airflow-operator"
1111

1212
[workspace.dependencies]
1313
product-config = { git = "https://github.com/stackabletech/product-config.git", tag = "0.8.0" }
14-
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", features = ["telemetry", "versioned", "webhook"], tag = "stackable-operator-0.101.1" }
14+
stackable-operator = { git = "https://github.com/stackabletech/operator-rs.git", features = ["telemetry", "versioned", "webhook"], tag = "stackable-operator-0.101.2" }
1515

1616
anyhow = "1.0"
1717
base64 = "0.22"

tests/templates/kuttl/versioning/30-install-airflow-cluster.yaml.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ spec:
5353
# N.B. only works for the existing v1 field
5454
credentialsSecret: git-credentials
5555
gitFolder: "mount-dags-gitsync/dags_airflow3"
56+
wait: 5s
5657
webservers:
5758
roleConfig:
5859
listenerClass: external-unstable

tests/templates/kuttl/versioning/dag_metrics.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,17 @@ def assert_metric(role, metric):
5555
response = requests.patch(
5656
f"{rest_url}/dags/{dag_id}", headers=headers, json={"is_paused": False}
5757
)
58+
if response.status_code != 200:
59+
logging.error("DAG run could not be activated")
60+
sys.exit(1)
61+
5862
# trigger DAG
5963
response = requests.post(
6064
f"{rest_url}/dags/{dag_id}/dagRuns", headers=headers, json=dag_data
6165
)
66+
if response.status_code != 200:
67+
logging.error("DAG run could not be triggered")
68+
sys.exit(1)
6269

6370
# Wait for the metrics to be consumed by the statsd-exporter
6471
time.sleep(5)
@@ -68,8 +75,6 @@ def assert_metric(role, metric):
6875
loop = 0
6976
while True:
7077
try:
71-
logging.info(f"Response code: {response.status_code}")
72-
assert response.status_code == 200, "DAG run could not be triggered."
7378
# Worker is not deployed with the kubernetes executor so retrieve success metric from scheduler
7479
# (disable line-break flake checks)
7580
if (assert_metric("scheduler", "airflow_scheduler_heartbeat")) and (

0 commit comments

Comments
 (0)