Skip to content

Commit

Permalink
Updating tests for more readability and better code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Maleware committed Aug 28, 2024
1 parent e8cdf10 commit 3530412
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions tests/templates/kuttl/smoke/41-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,16 @@ commands:
# Test envOverrides
#
- script: |
kubectl -n $NAMESPACE get cm airflow-webserver-default -o yaml | yq -e '.data."webserver_config.py"' | grep "COMMON_HEADER_VAR = \"group-value\""
kubectl -n $NAMESPACE get cm airflow-webserver-default -o yaml | yq -e '.data."webserver_config.py"' | grep "ROLE_FOOTER_VAR = \"role-value\""
#!/usr/bin/env bash
set -euo pipefail
# Config Test Data
SUPERSET_CONFIG=$(
kubectl -n "$NAMESPACE" get cm superset-node-default -o yaml \
| yq -e '.data["superset_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"'

0 comments on commit 3530412

Please sign in to comment.