|
17 | 17 | MCP_VENUE_TEST_OGC_PROCESSES_API_ENDPOINT:
|
18 | 18 | description: "Base URL for the OGC Processes API endpoint in MCP Venue Test (i.e. http://abc.def.ghi:port-number)"
|
19 | 19 | 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 |
26 | 26 |
|
27 | 27 | jobs:
|
28 | 28 | smoke-tests:
|
@@ -67,37 +67,42 @@ jobs:
|
67 | 67 | --airflow-endpoint=${{ github.event.inputs.MCP_VENUE_TEST_AIRFLOW_API_ENDPOINT || vars.MCP_VENUE_TEST_AIRFLOW_API_ENDPOINT }} \
|
68 | 68 | --ogc-processes-endpoint=${{ github.event.inputs.MCP_VENUE_TEST_OGC_PROCESSES_API_ENDPOINT || vars.MCP_VENUE_TEST_OGC_PROCESSES_API_ENDPOINT }}
|
69 | 69 |
|
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 | +
|
83 | 83 |
|
84 | 84 | # Final step to check outcomes and potentially fail the job
|
85 | 85 | - name: Check Smoke Tests Results
|
86 | 86 | if: always()
|
87 | 87 | run: |
|
88 | 88 | dev_status=${{ steps.mcp_venue_dev_smoke_tests.outcome }}
|
89 |
| - test_status=${{ steps.mcp_venue_test_smoke_tests.outcome }} |
90 | 89 | echo "Dev Smoke Tests: $dev_status"
|
| 90 | + test_status=${{ steps.mcp_venue_test_smoke_tests.outcome }} |
91 | 91 | echo "Test Smoke Tests: $test_status"
|
| 92 | + ops_status=${{ steps.mcp_venue_ops_smoke_tests.outcome }} |
| 93 | + echo "Ops Smoke Tests: $ops_status" |
92 | 94 |
|
93 |
| - if [ "$dev_status" != "success" ] || [ "$test_status" != "success" ]; then |
| 95 | + if [ "$dev_status" != "success" ] || [ "$test_status" != "success" ] || [ "$ops_status" != "success" ]; then |
94 | 96 | echo "One or more smoke tests failed."
|
95 | 97 | if [ "$dev_status" != "success" ]; then
|
96 | 98 | echo "MCP Venue Dev Smoke Tests failed."
|
97 | 99 | fi
|
98 | 100 | if [ "test_status" != "success" ]; then
|
99 | 101 | echo "MCP Venue Test Smoke Tests failed."
|
100 | 102 | fi
|
| 103 | + if [ "ops_status" != "success" ]; then |
| 104 | + echo "MCP Venue Ops Smoke Tests failed." |
| 105 | + fi |
101 | 106 | exit 1
|
102 | 107 | else
|
103 | 108 | echo "All smoke tests passed."
|
|
0 commit comments