Skip to content

Commit

Permalink
Adding latency to the tests after making the deployment request
Browse files Browse the repository at this point in the history
  • Loading branch information
O-sura committed Apr 30, 2024
1 parent 2999cd0 commit b84a92e
Show file tree
Hide file tree
Showing 15 changed files with 48 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Feature: API Policy Addition(Interceptor Service)
And the response body should contain "IntercepterServiceAPI"
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down Expand Up @@ -60,6 +61,7 @@ Feature: API Policy Addition(Interceptor Service)
And the response body should contain "IntercepterServiceAPI"
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down Expand Up @@ -108,6 +110,7 @@ Feature: API Policy Addition(Interceptor Service)
And the response body should contain "ReqandResIntercepterServiceAPI"
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down Expand Up @@ -157,6 +160,7 @@ Feature: API Policy Addition(Interceptor Service)
And the response body should contain "ParamVarIntercepterServiceAPI"
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Feature: Creating new versions of the APIs
And the response body should contain "SwaggerPetstore"
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down Expand Up @@ -75,6 +76,7 @@ Feature: Creating new versions of the APIs
And the response body should contain "StarWarsAPI"
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Feature: Backend Security for APIs
And I have a valid Devportal access token
And make the Application Creation request with the name "SampleApp"
Then the response status code should be 201
Then I wait for 40 seconds
And the response body should contain "SampleApp"
And I have a KeyManager
And make the Generate Keys request
Expand Down Expand Up @@ -63,6 +64,7 @@ Feature: Backend Security for APIs
And the response body should contain "StarWarsAPI"
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Feature: Backend Support for APIs
And the response body should contain "SwaggerPetstore"
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down Expand Up @@ -68,6 +69,7 @@ Feature: Backend Support for APIs
And the response body should contain "StarwarsAPI"
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Feature: CORS Policy handling
And the response body should contain "test-cors"
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down Expand Up @@ -95,6 +96,7 @@ Feature: CORS Policy handling
And the response body should contain "StarWarsAPI"
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Feature: API Default Version
And the response body should contain "SwaggerPetstore"
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down Expand Up @@ -59,6 +60,7 @@ Feature: API Default Version
When I use the Payload file "artifacts/payloads/gql_default_version.json"
Then I make the import GraphQLAPI Creation request
Then the response status code should be 201
Then I wait for 40 seconds
And the response body should contain "StarwarsAPI"
And make the API Revision Deployment request
Then the response status code should be 201
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Feature: API Deployment
And the response body should contain "SwaggerPetstore"
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down Expand Up @@ -59,6 +60,7 @@ Feature: API Deployment
And the response body should contain "StarwarsAPI"
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Feature: Testing the internal-key generation and invocation
And the response body should contain "SwaggerPetstore"
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
Then I make an internal key generation request
Expand Down Expand Up @@ -42,6 +43,7 @@ Feature: Testing the internal-key generation and invocation
And the response body should contain "StarwarsAPI"
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
Then I make an internal key generation request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Feature: Test mTLS between client and gateway with client certificate sent in he
Then the response status code should be 201
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down Expand Up @@ -89,6 +90,7 @@ Feature: Test mTLS between client and gateway with client certificate sent in he
Then the response status code should be 201
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down Expand Up @@ -142,6 +144,7 @@ Feature: Test mTLS between client and gateway with client certificate sent in he
Then the response status code should be 201
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down Expand Up @@ -196,6 +199,7 @@ Feature: Test mTLS between client and gateway with client certificate sent in he
Then the response status code should be 201
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
Then I set headers
Expand Down Expand Up @@ -228,6 +232,7 @@ Feature: Test mTLS between client and gateway with client certificate sent in he
Then the response status code should be 201
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I set "invlaidToken" as the new access token
Expand Down Expand Up @@ -262,6 +267,7 @@ Feature: Test mTLS between client and gateway with client certificate sent in he
# Then the response status code should be 201
# And make the API Revision Deployment request
# Then the response status code should be 201
# Then I wait for 40 seconds
# And make the Change Lifecycle request
# Then the response status code should be 200
# Then I set headers
Expand Down Expand Up @@ -295,6 +301,7 @@ Feature: Test mTLS between client and gateway with client certificate sent in he
And the response body should contain "EmployeeServiceAPI"
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I send "GET" request to "https://default.gw.wso2.com:9095/mtls/3.14/employee" with body ""
Expand Down Expand Up @@ -325,6 +332,7 @@ Feature: Test mTLS between client and gateway with client certificate sent in he
Then the response status code should be 201
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down Expand Up @@ -394,6 +402,7 @@ Feature: Test mTLS between client and gateway with client certificate sent in he
Then the response status code should be 201
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Feature: Test mTLS between client and gateway with client certificate sent in he
Then the response status code should be 201
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down Expand Up @@ -71,6 +72,7 @@ Feature: Test mTLS between client and gateway with client certificate sent in he
Then the response status code should be 201
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down Expand Up @@ -134,6 +136,7 @@ Feature: Test mTLS between client and gateway with client certificate sent in he
Then the response status code should be 201
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down Expand Up @@ -186,6 +189,7 @@ Feature: Test mTLS between client and gateway with client certificate sent in he
Then the response status code should be 201
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down Expand Up @@ -242,6 +246,7 @@ Feature: Test mTLS between client and gateway with client certificate sent in he
Then the response status code should be 201
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
Then I set "invalidToken" as the new access token
Expand Down Expand Up @@ -276,6 +281,7 @@ Feature: Test mTLS between client and gateway with client certificate sent in he
Then the response status code should be 201
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down Expand Up @@ -333,6 +339,7 @@ Feature: Test mTLS between client and gateway with client certificate sent in he
Then the response status code should be 201
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
Then I set "invalidToken" as the new access token
Expand Down Expand Up @@ -365,6 +372,7 @@ Feature: Test mTLS between client and gateway with client certificate sent in he
Then the response status code should be 201
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I send "GET" request to "https://default.gw.wso2.com:9095/mtls/3.14/employee/" with body ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Feature: Testing Ratelimit feature
And the response body should contain "SimpleRateLimitAPI"
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down Expand Up @@ -78,6 +79,7 @@ Feature: Testing Ratelimit feature
And the response body should contain "\"throttlingPolicy\":\"TestRatelimit\""
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down Expand Up @@ -151,6 +153,7 @@ Feature: Testing Ratelimit feature
And the response body should contain "StarwarsAPI"
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Feature: API Policy Addition(Interceptor Service)
Then the response status code should be 200
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Feature: Invoking APIs with scopes enabled
And the response body should contain "SwaggerPetstore"
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down Expand Up @@ -63,6 +64,7 @@ Feature: Invoking APIs with scopes enabled
And the response body should contain "StarWarsAPI"
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Feature: Blocking the subscription for a selected application
And the response body should contain "SwaggerPetstore"
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Feature: Test mTLS between client and gateway with client certificate sent in header
Background:
Given The system is ready
Scenario: Deploying APK conf using a valid GraphQL API definition with mTLS mandatory and valid certificate
Scenario: Deploying GraphQL API with mTLS mandatory and valid certificate
And I have a DCR application
And I have a valid Publisher access token
When the definition file "artifacts/definitions/schema_graphql.graphql"
Expand All @@ -14,6 +14,7 @@ Feature: Test mTLS between client and gateway with client certificate sent in he
Then the response status code should be 201
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down Expand Up @@ -56,7 +57,7 @@ Feature: Test mTLS between client and gateway with client certificate sent in he
|200|


Scenario: Deploying APK conf using a valid GraphQL API definition with mTLS mandatory and no certificate
Scenario: Deploying GraphQL API with mTLS mandatory and no certificate
And I have a DCR application
And I have a valid Publisher access token
When the definition file "artifacts/definitions/schema_graphql.graphql"
Expand All @@ -69,6 +70,7 @@ Feature: Test mTLS between client and gateway with client certificate sent in he
Then the response status code should be 201
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down Expand Up @@ -109,7 +111,7 @@ Feature: Test mTLS between client and gateway with client certificate sent in he
And I eventually receive 404 response code, not accepting
|200|

Scenario: Deploying APK conf using a valid GraphQL API definition with OAuth2 mandatory mTLS optional
Scenario: Deploying GraphQL API with OAuth2 mandatory mTLS optional
And I have a DCR application
And I have a valid Publisher access token
When the definition file "artifacts/definitions/schema_graphql.graphql"
Expand All @@ -122,6 +124,7 @@ Feature: Test mTLS between client and gateway with client certificate sent in he
Then the response status code should be 201
And make the API Revision Deployment request
Then the response status code should be 201
Then I wait for 40 seconds
And make the Change Lifecycle request
Then the response status code should be 200
And I have a valid Devportal access token
Expand Down

0 comments on commit b84a92e

Please sign in to comment.