-
Notifications
You must be signed in to change notification settings - Fork 787
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include integration test for audience validation with API products
- Loading branch information
Showing
20 changed files
with
2,809 additions
and
124 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
35 changes: 35 additions & 0 deletions
35
modules/distribution/resources/operation_policies/specifications/apkAddHeader_v1.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,35 @@ | ||
{ | ||
"category": "Mediation", | ||
"version": "v1", | ||
"displayName": "Add Header", | ||
"name": "apkAddHeader", | ||
"description": "This policy allows you to add a new header to the request", | ||
"policyAttributes": [ | ||
{ | ||
"name": "headerName", | ||
"displayName": "Header Name", | ||
"description": "Name of the header to be added", | ||
"validationRegex": "^([a-zA-Z_\\:][a-zA-Z\\d_\\-\\ ]*)$", | ||
"type": "String", | ||
"required": true | ||
}, | ||
{ | ||
"name": "headerValue", | ||
"displayName": "Header Value", | ||
"description": "Value of the header", | ||
"validationRegex": "^.+$", | ||
"type": "String", | ||
"required": true | ||
} | ||
], | ||
"applicableFlows": [ | ||
"request", | ||
"response" | ||
], | ||
"supportedGateways": [ | ||
"ChoreoConnect" | ||
], | ||
"supportedApiTypes": [ | ||
"HTTP" | ||
] | ||
} |
2 changes: 1 addition & 1 deletion
2
...ications/ccCallInterceptorService_v1.json → ...cations/apkCallInterceptorService_v1.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
26 changes: 26 additions & 0 deletions
26
modules/distribution/resources/operation_policies/specifications/apkMirrorRequest_v1.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,26 @@ | ||
{ | ||
"category": "Mediation", | ||
"name": "apkMirrorRequest", | ||
"version": "v1", | ||
"displayName": "Mirror Request", | ||
"description": "This policy allows you to mirror a request to various URLs", | ||
"policyAttributes": [ | ||
{ | ||
"name": "url", | ||
"displayName": "URL", | ||
"description": "URL to mirror the request to", | ||
"validationRegex": "^(([\\w+]+\\:\\/\\/)?([\\w\\d-]+\\.)*[\\w-]+([\\.\\:]\\w+)*([\\/\\?\\=\\&\\#\\.]?[\\w-]+)*\\/?)$", | ||
"type": "String", | ||
"required": true | ||
} | ||
], | ||
"applicableFlows": [ | ||
"request" | ||
], | ||
"supportedGateways": [ | ||
"ChoreoConnect" | ||
], | ||
"supportedApiTypes": [ | ||
"HTTP" | ||
] | ||
} |
34 changes: 34 additions & 0 deletions
34
modules/distribution/resources/operation_policies/specifications/apkRedirectRequest_v1.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,34 @@ | ||
{ | ||
"category": "Mediation", | ||
"name": "apkRedirectRequest", | ||
"version": "v1", | ||
"displayName": "Redirect Request", | ||
"description": "This policy allows you to redirect a request", | ||
"policyAttributes": [ | ||
{ | ||
"name": "url", | ||
"displayName": "URL", | ||
"description": "URL to redirect the request to", | ||
"validationRegex": "^(([\\w+]+\\:\\/\\/)?([\\w\\d-]+\\.)*[\\w-]+([\\.\\:]\\w+)*([\\/\\?\\=\\&\\#\\.]?[\\w-]+)*\\/?)$", | ||
"type": "String", | ||
"required": true | ||
}, | ||
{ | ||
"name": "statusCode", | ||
"displayName": "Status Code", | ||
"description": "Status code to display upon redirecting the request. Must be either 301 or 302", | ||
"validationRegex": "^(301|302)$", | ||
"type": "Integer", | ||
"required": true | ||
} | ||
], | ||
"applicableFlows": [ | ||
"request" | ||
], | ||
"supportedGateways": [ | ||
"ChoreoConnect" | ||
], | ||
"supportedApiTypes": [ | ||
"HTTP" | ||
] | ||
} |
27 changes: 27 additions & 0 deletions
27
modules/distribution/resources/operation_policies/specifications/apkRemove_Header_v1.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,27 @@ | ||
{ | ||
"category": "Mediation", | ||
"name": "apkRemoveHeader", | ||
"version": "v1", | ||
"displayName": "Remove Header", | ||
"description": "This policy allows you to remove a header from the request", | ||
"policyAttributes": [ | ||
{ | ||
"name": "headerName", | ||
"displayName": "Header Name", | ||
"description": "Name of the header to be removed", | ||
"validationRegex": "^([a-zA-Z_\\:][a-zA-Z\\d_\\-\\ ]*)$", | ||
"type": "String", | ||
"required": true | ||
} | ||
], | ||
"applicableFlows": [ | ||
"request", | ||
"response" | ||
], | ||
"supportedGateways": [ | ||
"ChoreoConnect" | ||
], | ||
"supportedApiTypes": [ | ||
"HTTP" | ||
] | ||
} |
2 changes: 1 addition & 1 deletion
2
...s/integration/tests-common/clients/publisher/.openapi-generator/publisher-api.yaml.sha256
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 |
---|---|---|
@@ -1 +1 @@ | ||
932693cf163d497c081af51b44f9825a7ea795ac8a001cc0ebd5e582dab1722d | ||
f22432a7f6a2e79f6244e9360787b60d17a9169f9e91d69368ce8fd2a139ba5d |
Oops, something went wrong.