You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### **User description**
<details open>
<summary><a href="https://tyktech.atlassian.net/browse/TT-14596"
title="TT-14596" target="_blank">TT-14596</a></summary>
<br />
<table>
<tr>
<th>Summary</th>
<td>Investigate flaky amqp integration tests</td>
</tr>
<tr>
<th>Type</th>
<td>
<img alt="Task"
src="https://tyktech.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10318?size=medium"
/>
Task
</td>
</tr>
<tr>
<th>Status</th>
<td>In Dev</td>
</tr>
<tr>
<th>Points</th>
<td>N/A</td>
</tr>
<tr>
<th>Labels</th>
<td>-</td>
</tr>
</table>
</details>
<!--
do not remove this marker as it will break jira-lint's functionality.
added_by_jira_lint
-->
---
This PR adds an aliveness check to be sure RabbitMQ is running and ready
to accept connections before running the integration tests.
___
### **PR Type**
- Enhancement
___
### **Description**
- Add aliveness check function for RabbitMQ health verification
- Define new constants and response struct for aliveness endpoint
- Update TestAMQP to employ the new health check before tests
___
### **Changes walkthrough** 📝
<table><thead><tr><th></th><th align="left">Relevant
files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table>
<tr>
<td>
<details>
<summary><strong>mw_streaming_amqp_test.go</strong><dd><code>Introduce
health check and update test connection flow</code>
</dd></summary>
<hr>
gateway/mw_streaming_amqp_test.go
<li>Introduced constants: AlivenessCheckPath, DefaultVirtualHost,
<br>RabbitmqAdminUsername, RabbitmqAdminPassword<br> <li> Added struct
alivenessCheckResponse for JSON parsing of health <br>response<br> <li>
Created checkRabbitMQAliveness function with retries to ensure
<br>readiness<br> <li> Modified TestAMQP to utilize the new function
instead of hardcoded <br>credentials
</details>
</td>
<td><a
href="https://github.com/TykTechnologies/tyk/pull/7019/files#diff-3599fefd35a5eddd4f464208edce54054fc3e5045d1694473367e834c331f9dc">+69/-2</a>
</td>
</tr>
</table></td></tr></tr></tbody></table>
___
> <details> <summary> Need help?</summary><li>Type <code>/help how to
...</code> in the comments thread for any questions about PR-Agent
usage.</li><li>Check out the <a
href="https://qodo-merge-docs.qodo.ai/usage-guide/">documentation</a>
for more information.</li></details>
0 commit comments