@@ -176,13 +176,12 @@ jobs:
176176 - name : Start containers for CE
177177 if : inputs.release == 'ce'
178178 env :
179- # End-to-end tests (api, api-livechat, ui) intentionally exercise
180- # deprecated DDP methods — directly through /v1/method.call/:method
181- # in API tests, indirectly via the client UI in UI tests. The
182- # deprecation logger throws under TEST_MODE, so for any e2e run we
183- # set TEST_MODE_API to suppress the throw (it still logs).
184- # Forwarded via docker-compose-ci.yml -> rocketchat container env.
185- TEST_MODE_API : ' true'
179+ # API tests intentionally invoke deprecated DDP methods through
180+ # /v1/method.call/:method. The deprecation logger throws under
181+ # TEST_MODE, so for api/api-livechat runs we set TEST_MODE_API
182+ # to suppress the throw (it still logs). Forwarded via
183+ # docker-compose-ci.yml -> rocketchat container env.
184+ TEST_MODE_API : ${{ (inputs.type == 'api' || inputs.type == 'api-livechat') && 'true' || '' }}
186185 run : |
187186 # when we are testing CE, we only need to start the rocketchat container
188187 DEBUG_LOG_LEVEL=${DEBUG_LOG_LEVEL:-0} docker compose -f docker-compose-ci.yml up -d rocketchat --wait
@@ -193,7 +192,7 @@ jobs:
193192 ENTERPRISE_LICENSE : ${{ inputs.enterprise-license }}
194193 TRANSPORTER : ${{ inputs.transporter }}
195194 COMPOSE_PROFILES : ${{ inputs.type == 'api' && 'api' || '' }}
196- TEST_MODE_API : ' true'
195+ TEST_MODE_API : ${{ (inputs.type == 'api' || inputs.type == 'api-livechat') && ' true' || '' }}
197196 run : |
198197 DEBUG_LOG_LEVEL=${DEBUG_LOG_LEVEL:-0} docker compose -f docker-compose-ci.yml up -d --wait
199198
0 commit comments