Skip to content

Commit

Permalink
Adopting to airflow tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Maleware committed Aug 28, 2024
1 parent 3530412 commit da58015
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/templates/kuttl/smoke/41-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ commands:
set -euo pipefail
# Config Test Data
SUPERSET_CONFIG=$(
kubectl -n "$NAMESPACE" get cm superset-node-default -o yaml \
| yq -e '.data["superset_config.py"]'
AIRFLOW_CONFIG=$(
kubectl -n "$NAMESPACE" get cm airflow-webserver-default -o yaml \
| yq -e '.data["webserver_config.py"]'
)
# Config Test Assertions
echo "$SUPERSET_CONFIG" | grep 'COMMON_HEADER_VAR = "group-value"'
echo "$SUPERSET_CONFIG" | grep 'ROLE_FOOTER_VAR = "role-value"'
echo "$SUPERSET_CONFIG" | grep -v 'ROLE_HEADER_VAR = "role-value"'
echo "$AIRFLOW_CONFIG" | grep 'COMMON_HEADER_VAR = "group-value"'
echo "$AIRFLOW_CONFIG" | grep 'ROLE_FOOTER_VAR = "role-value"'
echo "$AIRFLOW_CONFIG" | grep -v 'ROLE_HEADER_VAR = "role-value"'

0 comments on commit da58015

Please sign in to comment.