product-microgateway
product-microgateway copied to clipboard
Eliminate duplicate cluster creation when production and sandbox endpoints are the same
Purpose
Eliminate duplicate cluster creation when production and sandbox endpoints are the same
Issues
Fixes https://github.com/wso2/product-microgateway/issues/3002
Automation tests
- Unit tests added: Yes
- Integration tests added: No
Tested environments
OS: macOS Monterey 12.4 Env (Docker/K8s): Docker 20.10.16 on Rancher Desktop 1.4.1
Maintainers: Check before merge
- [x] Assigned 'Type' label
- [x] Assigned the project
- [x] Validated respective github issues
- [x] Assigned milestone to the github issue(s)
I guess it would be better to add an integration test too. An openapi with both production-endpoints and sandbox endpoints are the same. We do a call based on production token and sandbox token both. Covering the success path is enough.
Shall we update this PR?
@pubudu538 Sure, I'll update this with the proposed changes.