-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TT-12957] OAS Uptime Tests migrations (#6852)
### **PR Type** Enhancement, Tests ___ ### **Description** - Renamed `Test` struct to `UptimeTests` for clarity. - Introduced `UptimeTestsServiceDiscovery` with `RecheckWait` field. - Updated methods and logic to support the new struct names. - Adjusted and added corresponding unit tests for the changes. ___ ### **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>upstream.go</strong><dd><code>Refactor and enhance uptime test configuration</code> </dd></summary> <hr> apidef/oas/upstream.go <li>Renamed <code>Test</code> struct to <code>UptimeTests</code>.<br> <li> Added <code>UptimeTestsServiceDiscovery</code> with <code>RecheckWait</code> field.<br> <li> Updated methods <code>Fill</code> and <code>ExtractTo</code> to handle new struct.<br> <li> Introduced <code>NewUptimeTestsServiceDiscovery</code> constructor. </details> </td> <td><a href="https://github.com/TykTechnologies/tyk/pull/6852/files#diff-7b0941c7f37fe5a2a23047e0822a65519ca11c371660f36555b59a60f000e3f4">+33/-19</a> </td> </tr> </table></td></tr><tr><td><strong>Tests</strong></td><td><table> <tr> <td> <details> <summary><strong>upstream_test.go</strong><dd><code>Update unit tests for UptimeTests struct</code> </dd></summary> <hr> apidef/oas/upstream_test.go <li>Renamed test function <code>TestTest</code> to <code>TestUptimeTests</code>.<br> <li> Updated test logic to align with <code>UptimeTests</code> struct. </details> </td> <td><a href="https://github.com/TykTechnologies/tyk/pull/6852/files#diff-222cc254c0c6c09fa0cf50087860b837a0873e2aef3c84ec7d80b1014c149057">+3/-3</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> --------- Co-authored-by: Tit Petric <[email protected]>
- Loading branch information
Showing
8 changed files
with
473 additions
and
70 deletions.
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.