-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding api uuid for related other crs
- Loading branch information
1 parent
3a0cafc
commit f270683
Showing
5 changed files
with
58 additions
and
39 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
34 changes: 34 additions & 0 deletions
34
test/cucumber-tests/src/test/resources/tests/api/resourceInterceptor.feature
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 @@ | ||
Feature: API Deployment with Resource Interceptor | ||
Scenario: Deploying an API | ||
Given The system is ready | ||
And I have a valid subscription | ||
When I use the APK Conf file "artifacts/apk-confs/interceptors/resourceLevelInterptor.apk-conf" | ||
And the definition file "artifacts/definitions/cors_api.yaml" | ||
And make the API deployment request | ||
Then the response status code should be 200 | ||
And the response body should contain "547961eeaafed989119c45ffc13f8b87bfda821d" | ||
And I wait for 1 minute | ||
Then I set headers | ||
|Authorization|bearer ${accessToken}| | ||
And I send "GET" request to "https://default.gw.wso2.com:9095/interceptor/1.0.0/get" with body "" | ||
And the response body should not contain "\"Interceptor-Header\"" | ||
Then the response status code should be 200 | ||
Then the response headers not contains key "interceptor-response-header" | ||
Then I set headers | ||
|Authorization|bearer ${accessToken}| | ||
And I send "GET" request to "https://default.gw.wso2.com:9095/interceptor/1.0.0/headers" with body "" | ||
And the response body should contain | ||
|"Interceptor-Header": "Interceptor-header-value"| | ||
|"Interceptor-Header-Apigroup": "Gold"| | ||
|"Interceptor-Header-Apitier": "Unlimited"| | ||
Then the response status code should be 200 | ||
Then the response headers contains key "interceptor-response-header" and value "Interceptor-Response-header-value" | ||
Scenario Outline: Undeploy an API | ||
Given The system is ready | ||
And I have a valid subscription | ||
When I undeploy the API whose ID is "<apiID>" | ||
Then the response status code should be <expectedStatusCode> | ||
|
||
Examples: | ||
| apiID | expectedStatusCode | | ||
| 547961eeaafed989119c45ffc13f8b87bfda821d | 202 | |