RHCLOUD-35836 - Increase e2e test coverage #29
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: E2E Testing with Kind | |
on: | |
workflow_call: | |
pull_request: | |
branches: ['main'] | |
jobs: | |
e2e-test: | |
name: E2E Test Inventory API | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Inventory Up - Kind Cluster | |
run: make inventory-up-kind | |
- name: Monitor Pods in Kind | |
run: | | |
timeout 50s kubectl get pods -w || exit 0 | |
- name: View Test Pod Logs | |
run: | | |
TEST_POD=$(kubectl get pods --selector=job-name=e2e-inventory-http-tests -o jsonpath='{.items[0].metadata.name}') | |
kubectl logs $TEST_POD | tee test_logs.txt | |
if grep -q -E "FAIL" test_logs.txt; then | |
echo "Test failed. Errors found in logs." | |
exit 1 | |
fi | |
- name: Inventory Down - Kind Cluster | |
run: make inventory-down-kind | |