Skip to content

Commit 6be70f3

Browse files
committed
Adding Ops to the smoke tests
1 parent 53f37c9 commit 6be70f3

File tree

1 file changed

+26
-21
lines changed

1 file changed

+26
-21
lines changed

.github/workflows/smoke_tests.yml

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ on:
1717
MCP_VENUE_TEST_OGC_PROCESSES_API_ENDPOINT:
1818
description: "Base URL for the OGC Processes API endpoint in MCP Venue Test (i.e. http://abc.def.ghi:port-number)"
1919
type: string
20-
# MCP_VENUE_OPS_AIRFLOW_API_ENDPOINT:
21-
# description: "Base URL for the Airflow API endpoint in MCP Venue Ops (i.e. http://abc.def.ghi:port-number)"
22-
# type: string
23-
# MCP_VENUE_OPS_OGC_PROCESSES_API_ENDPOINT:
24-
# description: "Base URL for the OGC Processes API endpoint in MCP Venue Ops (i.e. http://abc.def.ghi:port-number)"
25-
# type: string
20+
MCP_VENUE_OPS_AIRFLOW_API_ENDPOINT:
21+
description: "Base URL for the Airflow API endpoint in MCP Venue Ops (i.e. http://abc.def.ghi:port-number)"
22+
type: string
23+
MCP_VENUE_OPS_OGC_PROCESSES_API_ENDPOINT:
24+
description: "Base URL for the OGC Processes API endpoint in MCP Venue Ops (i.e. http://abc.def.ghi:port-number)"
25+
type: string
2626

2727
jobs:
2828
smoke-tests:
@@ -67,37 +67,42 @@ jobs:
6767
--airflow-endpoint=${{ github.event.inputs.MCP_VENUE_TEST_AIRFLOW_API_ENDPOINT || vars.MCP_VENUE_TEST_AIRFLOW_API_ENDPOINT }} \
6868
--ogc-processes-endpoint=${{ github.event.inputs.MCP_VENUE_TEST_OGC_PROCESSES_API_ENDPOINT || vars.MCP_VENUE_TEST_OGC_PROCESSES_API_ENDPOINT }}
6969
70-
# - name: MCP Venue Ops - Smoke tests
71-
# id: mcp_venue_ops_smoke_tests
72-
# env:
73-
# UNITY_USER: ${{ secrets.MCP_VENUE_OPS_UNITY_USERNAME }}
74-
# UNITY_PASSWORD: ${{ secrets.MCP_VENUE_OPS_UNITY_PASSWORD }}
75-
# UNITY_CLIENT_ID: ${{ secrets.MCP_VENUE_OPS_UNITY_CLIENTID }}
76-
# continue-on-error: true
77-
# run: |
78-
# pytest -vv -s --gherkin-terminal-reporter \
79-
# unity-test/system/smoke/ \
80-
# --airflow-endpoint=${{ github.event.inputs.MCP_VENUE_OPS_AIRFLOW_API_ENDPOINT || vars.MCP_VENUE_OPS_AIRFLOW_API_ENDPOINT }} \
81-
# --ogc-processes-endpoint=${{ github.event.inputs.MCP_VENUE_OPS_OGC_PROCESSES_API_ENDPOINT || vars.MCP_VENUE_OPS_OGC_PROCESSES_API_ENDPOINT }}
82-
#
70+
- name: MCP Venue Ops - Smoke tests
71+
id: mcp_venue_ops_smoke_tests
72+
env:
73+
UNITY_USER: ${{ secrets.MCP_VENUE_OPS_UNITY_USERNAME }}
74+
UNITY_PASSWORD: ${{ secrets.MCP_VENUE_OPS_UNITY_PASSWORD }}
75+
UNITY_CLIENT_ID: ${{ secrets.MCP_VENUE_OPS_UNITY_CLIENTID }}
76+
continue-on-error: true
77+
run: |
78+
pytest -vv -s --gherkin-terminal-reporter \
79+
unity-test/system/smoke/ \
80+
--airflow-endpoint=${{ github.event.inputs.MCP_VENUE_OPS_AIRFLOW_API_ENDPOINT || vars.MCP_VENUE_OPS_AIRFLOW_API_ENDPOINT }} \
81+
--ogc-processes-endpoint=${{ github.event.inputs.MCP_VENUE_OPS_OGC_PROCESSES_API_ENDPOINT || vars.MCP_VENUE_OPS_OGC_PROCESSES_API_ENDPOINT }}
82+
8383
8484
# Final step to check outcomes and potentially fail the job
8585
- name: Check Smoke Tests Results
8686
if: always()
8787
run: |
8888
dev_status=${{ steps.mcp_venue_dev_smoke_tests.outcome }}
89-
test_status=${{ steps.mcp_venue_test_smoke_tests.outcome }}
9089
echo "Dev Smoke Tests: $dev_status"
90+
test_status=${{ steps.mcp_venue_test_smoke_tests.outcome }}
9191
echo "Test Smoke Tests: $test_status"
92+
ops_status=${{ steps.mcp_venue_ops_smoke_tests.outcome }}
93+
echo "Ops Smoke Tests: $ops_status"
9294
93-
if [ "$dev_status" != "success" ] || [ "$test_status" != "success" ]; then
95+
if [ "$dev_status" != "success" ] || [ "$test_status" != "success" ] || [ "$ops_status" != "success" ]; then
9496
echo "One or more smoke tests failed."
9597
if [ "$dev_status" != "success" ]; then
9698
echo "MCP Venue Dev Smoke Tests failed."
9799
fi
98100
if [ "test_status" != "success" ]; then
99101
echo "MCP Venue Test Smoke Tests failed."
100102
fi
103+
if [ "ops_status" != "success" ]; then
104+
echo "MCP Venue Ops Smoke Tests failed."
105+
fi
101106
exit 1
102107
else
103108
echo "All smoke tests passed."

0 commit comments

Comments
 (0)