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
Merging to release-5.8: Tyk OAS API definition is not available to Response Plugin if no Request Plugin loaded (#7064)
Tyk OAS API definition is not available to Response Plugin if no Request Plugin loaded (#7064)
### **User description**
<!-- Provide a general summary of your changes in the Title above -->
## Description
Couple of tests were added to meet acceptance criteria
## Related Issue
<!-- This project only accepts pull requests related to open issues. -->
<!-- If suggesting a new feature or change, please discuss it in an
issue first. -->
<!-- If fixing a bug, there should be an issue describing it with steps
to reproduce. -->
<!-- OSS: Please link to the issue here. Tyk: please create/link the
JIRA ticket. -->
## Motivation and Context
<!-- Why is this change required? What problem does it solve? -->
## How This Has Been Tested
<!-- Please describe in detail how you tested your changes -->
<!-- Include details of your testing environment, and the tests -->
<!-- you ran to see how your change affects other areas of the code,
etc. -->
<!-- This information is helpful for reviewers and QA. -->
## Screenshots (if appropriate)
## Types of changes
<!-- What types of changes does your code introduce? Put an `x` in all
the boxes that apply: -->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Refactoring or add test (improvements in base code or adds test
coverage to functionality)
## Checklist
<!-- Go over all the following points, and put an `x` in all the boxes
that apply -->
<!-- If there are no documentation updates required, mark the item as
checked. -->
<!-- Raise up any additional concerns not covered by the checklist. -->
- [ ] I ensured that the documentation is up to date
- [ ] I explained why this PR updates go.mod in detail with reasoning
why it's required
- [ ] I would like a code coverage CI quality gate exception and have
explained why
___
### **PR Type**
Tests
___
### **Description**
- Added acceptance tests for Go-plugin OAS API access in response
plugins
- Tested standalone, chained, and combined request/response plugin
scenarios
- Enhanced test plugins to set additional headers for OAS API info
- Implemented new response plugin for chained middleware validation
___
### **Changes walkthrough** 📝
<table><thead><tr><th></th><th align="left">Relevant
files</th></tr></thead><tbody><tr><td><strong>Tests</strong></td><td><table>
<tr>
<td>
<details>
<summary><strong>mw_go_plugin_test.go</strong><dd><code>Add acceptance
tests for Go-plugin OAS API in response plugins</code></dd></summary>
<hr>
goplugin/mw_go_plugin_test.go
<li>Added three new subtests for Go-plugin OAS API access in response
<br>plugins<br> <li> Tested standalone response plugin, chained response
plugins, and <br>combined request/response plugins<br> <li> Validated
correct OAS API info propagation via custom headers<br> <li> Updated
test paths and header assertions for new scenarios
</details>
</td>
<td><a
href="https://github.com/TykTechnologies/tyk/pull/7064/files#diff-0ad6c75c29b2656d9d5cfa9108d32a3b242c339c1688ce168516ed213a5f482b">+92/-17</a>
</td>
</tr>
<tr>
<td>
<details>
<summary><strong>test_goplugin.go</strong><dd><code>Enhance test plugins
for OAS API header assertions</code>
</dd></summary>
<hr>
test/goplugins/test_goplugin.go
<li>Removed unused XOASDocTitle constant<br> <li> Enhanced
MyPluginAccessingOASAPI and MyResponsePluginAccessingOASAPI <br>to set
extra headers<br> <li> Added new MyResponsePluginAccessingOASAPI2 for
chained response plugin <br>testing
</details>
</td>
<td><a
href="https://github.com/TykTechnologies/tyk/pull/7064/files#diff-6b57b162c0610abdd8c4edf02dab0718ef7daa1c986aeae2e13adf9904ec3459">+12/-7</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