-
Notifications
You must be signed in to change notification settings - Fork 791
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13309 from RusJaI/master
Add integration tests to save advance configs under x-wso2 production and sandbox endpoints.
- Loading branch information
Showing
3 changed files
with
301 additions
and
1 deletion.
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
127 changes: 127 additions & 0 deletions
127
...n/tests-integration/tests-backend/src/test/resources/oas/v2/oas_with_advance_configs.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
{ | ||
"swagger" : "2.0", | ||
"info" : { | ||
"version" : "1.0.0", | ||
"title" : "SwaggerPetstore_v2" | ||
}, | ||
"security" : [ { | ||
"default" : [ ] | ||
} ], | ||
"paths" : { | ||
"/pets" : { | ||
"get" : { | ||
"parameters" : [ ], | ||
"responses" : { | ||
"200" : { | ||
"description" : "OK" | ||
} | ||
}, | ||
"security" : [ { | ||
"default" : [ "SwaggerPetstore_v2" ] | ||
} ], | ||
"x-auth-type" : "Application & Application User", | ||
"x-throttling-tier" : "Unlimited", | ||
"x-wso2-application-security": { | ||
"security-types": ["oauth2"], | ||
"optional": false | ||
} | ||
} | ||
}, | ||
"/pets/{petId}" : { | ||
"get" : { | ||
"parameters" : [ { | ||
"name" : "petId", | ||
"in" : "path", | ||
"required" : true, | ||
"type" : "string" | ||
} ], | ||
"responses" : { | ||
"200" : { | ||
"description" : "OK" | ||
} | ||
}, | ||
"security" : [ { | ||
"default" : [ ] | ||
} ], | ||
"x-auth-type" : "Application & Application User", | ||
"x-throttling-tier" : "Unlimited", | ||
"x-wso2-application-security": { | ||
"security-types": ["oauth2"], | ||
"optional": false | ||
} | ||
} | ||
}, | ||
"/oldpets" : { | ||
"delete" : { | ||
"parameters" : [ ], | ||
"responses" : { | ||
"200" : { | ||
"description" : "OK" | ||
} | ||
}, | ||
"security" : [ { | ||
"default" : [ "SwaggerPetstore_v2" ] | ||
} ], | ||
"x-auth-type" : "Application & Application User", | ||
"x-throttling-tier" : "Unlimited", | ||
"x-wso2-application-security": { | ||
"security-types": ["oauth2"], | ||
"optional": false | ||
} | ||
} | ||
} | ||
}, | ||
"x-wso2-api-key-header": "ApiKey", | ||
"securityDefinitions" : { | ||
"default" : { | ||
"type" : "oauth2", | ||
"authorizationUrl" : "https://test.com", | ||
"flow" : "implicit", | ||
"scopes" : { | ||
"SwaggerPetstore_v2" : "SwaggerPetstore_v2" | ||
}, | ||
"x-scopes-bindings" : { | ||
"SwaggerPetstore_v2" : "admin" | ||
} | ||
} | ||
}, | ||
"x-throttling-tier" : "Unlimited", | ||
"x-wso2-cors" : { | ||
"corsConfigurationEnabled" : true, | ||
"accessControlAllowOrigins" : [ "*" ], | ||
"accessControlAllowCredentials" : false, | ||
"accessControlAllowHeaders" : [ "authorization", "Access-Control-Allow-Origin", "Content-Type", "SOAPAction" ], | ||
"accessControlAllowMethods" : [ "GET", "PUT", "POST", "DELETE", "PATCH", "OPTIONS" ] | ||
}, | ||
"x-wso2-production-endpoints": { | ||
"urls": [ | ||
"https://localhost:9443/publisher-new/apis/create/openapi" | ||
], | ||
"type": "http", | ||
"advanceEndpointConfig": { | ||
"circuitBreakers": { | ||
"maxRetries": 3, | ||
"maxConnectionPools": 1024, | ||
"maxRequests": 75, | ||
"maxPendingRequests": 35, | ||
"maxConnections": 1024 | ||
} | ||
} | ||
}, | ||
"x-wso2-sandbox-endpoints" : { | ||
"urls": [ | ||
"https://localhost:9443/publisher-new/apis/create/openapi" | ||
], | ||
"type": "http", | ||
"advanceEndpointConfig": { | ||
"circuitBreakers": { | ||
"maxRetries": 4, | ||
"maxConnectionPools": 2048, | ||
"maxRequests": 100, | ||
"maxPendingRequests": 25, | ||
"maxConnections": 2048 | ||
} | ||
} | ||
}, | ||
"x-wso2-basePath" : "/SwaggerPetstorev2/1.0.0" | ||
} |
137 changes: 137 additions & 0 deletions
137
...n/tests-integration/tests-backend/src/test/resources/oas/v3/oas_with_advance_configs.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
{ | ||
"openapi" : "3.0.1", | ||
"info" : { | ||
"title" : "SwaggerPetstore_v3", | ||
"version" : "1.0.0" | ||
}, | ||
"servers" : [ { | ||
"url" : "/" | ||
} ], | ||
"security" : [ { | ||
"default" : [ ] | ||
} ], | ||
"paths" : { | ||
"/pets" : { | ||
"get" : { | ||
"responses" : { | ||
"200" : { | ||
"description" : "OK" | ||
} | ||
}, | ||
"security" : [ { | ||
"default" : [ "SwaggerPetstore_v3" ] | ||
} ], | ||
"x-auth-type" : "Application & Application User", | ||
"x-throttling-tier" : "Unlimited", | ||
"x-wso2-application-security": { | ||
"security-types": ["oauth2"], | ||
"optional": false | ||
} | ||
} | ||
}, | ||
"/pets/{petId}" : { | ||
"get" : { | ||
"parameters" : [ { | ||
"name" : "petId", | ||
"in" : "path", | ||
"required" : true, | ||
"style" : "simple", | ||
"explode" : false, | ||
"schema" : { | ||
"type" : "string" | ||
} | ||
} ], | ||
"responses" : { | ||
"200" : { | ||
"description" : "OK" | ||
} | ||
}, | ||
"security" : [ { | ||
"default" : [ ] | ||
} ], | ||
"x-auth-type" : "Application & Application User", | ||
"x-throttling-tier" : "Unlimited", | ||
"x-wso2-application-security": { | ||
"security-types": ["oauth2"], | ||
"optional": false | ||
} | ||
} | ||
}, | ||
"/oldpets" : { | ||
"delete" : { | ||
"responses" : { | ||
"200" : { | ||
"description" : "OK" | ||
} | ||
}, | ||
"security" : [ { | ||
"default" : [ "SwaggerPetstore_v3" ] | ||
} ], | ||
"x-auth-type" : "Application & Application User", | ||
"x-throttling-tier" : "Unlimited", | ||
"x-wso2-application-security": { | ||
"security-types": ["oauth2"], | ||
"optional": false | ||
} | ||
} | ||
} | ||
}, | ||
"components" : { | ||
"securitySchemes" : { | ||
"default" : { | ||
"type" : "oauth2", | ||
"flows" : { | ||
"implicit" : { | ||
"authorizationUrl" : "https://test.com", | ||
"scopes" : { | ||
"SwaggerPetstore_v3" : "SwaggerPetstore_v3" | ||
}, | ||
"x-scopes-bindings" : { | ||
"SwaggerPetstore_v3" : "admin" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"x-wso2-api-key-header": "ApiKey", | ||
"x-throttling-tier" : "Unlimited", | ||
"x-wso2-cors" : { | ||
"corsConfigurationEnabled" : true, | ||
"accessControlAllowOrigins" : [ "*" ], | ||
"accessControlAllowCredentials" : false, | ||
"accessControlAllowHeaders" : [ "authorization", "Access-Control-Allow-Origin", "Content-Type", "SOAPAction" ], | ||
"accessControlAllowMethods" : [ "GET", "PUT", "POST", "DELETE", "PATCH", "OPTIONS" ] | ||
}, | ||
"x-wso2-production-endpoints": { | ||
"urls": [ | ||
"https://localhost:9443/publisher-new/apis/create/openapi" | ||
], | ||
"type": "http", | ||
"advanceEndpointConfig": { | ||
"circuitBreakers": { | ||
"maxRetries": 3, | ||
"maxConnectionPools": 1024, | ||
"maxRequests": 75, | ||
"maxPendingRequests": 35, | ||
"maxConnections": 1024 | ||
} | ||
} | ||
}, | ||
"x-wso2-sandbox-endpoints" : { | ||
"urls": [ | ||
"https://localhost:9443/publisher-new/apis/create/openapi" | ||
], | ||
"type": "http", | ||
"advanceEndpointConfig": { | ||
"circuitBreakers": { | ||
"maxRetries": 4, | ||
"maxConnectionPools": 2048, | ||
"maxRequests": 100, | ||
"maxPendingRequests": 25, | ||
"maxConnections": 2048 | ||
} | ||
} | ||
}, | ||
"x-wso2-basePath" : "/SwaggerPetstorev3/1.0.0" | ||
} |