Started 14 hr ago
Took 17 min on ECS_PRODUCTION-4b521bd8ebe11b

Unstable Build #463 (Oct 2, 2022 1:10:37 AM)

Build Artifacts
platform.zip101.44 MB view
wso2am-micro-gw-linux-3.1.2-SNAPSHOT.zip39.86 MB view
wso2am-micro-gw-macos-3.1.2-SNAPSHOT.zip37.56 MB view
wso2am-micro-gw-toolkit-linux-3.1.2-SNAPSHOT.zip154.51 MB view
wso2am-micro-gw-toolkit-macos-3.1.2-SNAPSHOT.zip152.20 MB view
wso2am-micro-gw-toolkit-windows-3.1.2-SNAPSHOT.zip151.04 MB view
wso2am-micro-gw-windows-3.1.2-SNAPSHOT.zip36.40 MB view
No changes.

Started by timer

Revision: 991dc686ec5ca77fe1b3a152f1784938ad200270
  • refs/remotes/origin/3.1.x
Test Result (56 failures / ±0)Show all failed tests >>>

Identified problems

invokeOauth2ScopeProtectedResource

java.lang.AssertionError: Response code mismatched expected [403] but found [401] at org.wso2.micro.gateway.tests.apikey.APIKeyTestCase.invokeOauth2ScopeProtectedResource(APIKeyTestCase.java:144)

testWithInvalidScopes

java.lang.AssertionError: Response code mismatched expected [403] but found [500]

testWithInvalidSubscription

java.lang.AssertionError: Response code mismatched expected [403] but found [500]

testWithInvalidToken

java.lang.AssertionError: Response code mismatched expected [401] but found [500]

testFailOverEndpointResourceLevelOverride

java.lang.AssertionError: expected [{ "AVAILABLE": 1, "string": 2, "pending": 2, "available": 233539, "PENDING": 1}] but found [{"fault":{"code":900901, "message":"Invalid Credentials", "description":"Invalid Credentials. Make sure you have given the correct access token"}}]

testLoadBalancedEndpointResourceLevelOverride

java.lang.AssertionError: expected [{"id":2, "category":{"id":1, "name":"John Doe"}, "name":"shre", "photoUrls":["ArrayItem1"], "tags":[{"id":1, "name":"TfNSW"}], "status":"hello"}] but found [{"fault":{"code":900901, "message":"Invalid Credentials", "description":"Invalid Credentials. Make sure you have given the correct access token"}}]

testPerAPIEndpointOverride

java.lang.AssertionError: expected [{"id":2, "category":{"id":1, "name":"John Doe"}, "name":"shre", "photoUrls":["ArrayItem1"], "tags":[{"id":1, "name":"TfNSW"}], "status":"hello"}] but found [{"fault":{"code":900901, "message":"Invalid Credentials", "description":"Invalid Credentials. Make sure you have given the correct access token"}}]

testPerResourceEndpointOverride

java.lang.AssertionError: expected [{"id":222222222, "category":{ "id":1, "name":"Test" }, "name":"doggie", "photoUrls":[ "SampleImage1.png" ], "tags":[ { "id":0, "name":"TestTag1" } ], "status":"pending"}] but found [{"fault":{"code":900901, "message":"Invalid Credentials", "description":"Invalid Credentials. Make sure you have given the correct access token"}}]

testFailOverSecureEndpointResourceLevel

java.lang.AssertionError: expected [{ "AVAILABLE": 1, "string": 2, "pending": 2, "available": 233539, "PENDING": 1}] but found [{"fault":{"code":900901, "message":"Invalid Credentials", "description":"Invalid Credentials. Make sure you have given the correct access token"}}] at org.wso2.micro.gateway.tests.endpoints.EndpointWithSecurityTestCase.testFailOverSecureEndpointResourceLevel(EndpointWithSecurityTestCase.java:104)

testLoadBalancedSecureEndpointResourceLevel

java.lang.AssertionError: expected [{"id":2, "category":{"id":1, "name":"John Doe"}, "name":"shre", "photoUrls":["ArrayItem1"], "tags":[{"id":1, "name":"TfNSW"}], "status":"hello"}] but found [{"fault":{"code":900901, "message":"Invalid Credentials", "description":"Invalid Credentials. Make sure you have given the correct access token"}}] at org.wso2.micro.gateway.tests.endpoints.EndpointWithSecurityTestCase.testLoadBalancedSecureEndpointResourceLevel(EndpointWithSecurityTestCase.java:88)

testPerAPISecureEndpoint

java.lang.AssertionError: expected [{"id":2, "category":{"id":1, "name":"John Doe"}, "name":"shre", "photoUrls":["ArrayItem1"], "tags":[{"id":1, "name":"TfNSW"}], "status":"hello"}] but found [{"fault":{"code":900901, "message":"Invalid Credentials", "description":"Invalid Credentials. Make sure you have given the correct access token"}}] at org.wso2.micro.gateway.tests.endpoints.EndpointWithSecurityTestCase.testPerAPISecureEndpoint(EndpointWithSecurityTestCase.java:51)

testPerResourceSecureEndpoint

java.lang.AssertionError: expected [{"id":222222222, "category":{ "id":1, "name":"Test" }, "name":"doggie", "photoUrls":[ "SampleImage1.png" ], "tags":[ { "id":0, "name":"TestTag1" } ], "status":"pending"}] but found [{"fault":{"code":900901, "message":"Invalid Credentials", "description":"Invalid Credentials. Make sure you have given the correct access token"}}] at org.wso2.micro.gateway.tests.endpoints.EndpointWithSecurityTestCase.testPerResourceSecureEndpoint(EndpointWithSecurityTestCase.java:39)

testSecureEndpointWithAuthnFailure

java.lang.AssertionError: expected [{"fault":"Authorization credentials are not provided."}] but found [{"fault":{"code":900901, "message":"Invalid Credentials", "description":"Invalid Credentials. Make sure you have given the correct access token"}}] at org.wso2.micro.gateway.tests.endpoints.EndpointWithSecurityTestCase.testSecureEndpointWithAuthnFailure(EndpointWithSecurityTestCase.java:63)

testSecureEndpointWithAuthzFailure

java.lang.AssertionError: expected [{"fault":"Forbidden."}] but found [{"fault":{"code":900901, "message":"Invalid Credentials", "description":"Invalid Credentials. Make sure you have given the correct access token"}}] at org.wso2.micro.gateway.tests.endpoints.EndpointWithSecurityTestCase.testSecureEndpointWithAuthzFailure(EndpointWithSecurityTestCase.java:76)

testFailOverEndpointResourceLevel

java.lang.AssertionError: expected [{ "AVAILABLE": 1, "string": 2, "pending": 2, "available": 233539, "PENDING": 1}] but found [{"fault":{"code":900901, "message":"Invalid Credentials", "description":"Invalid Credentials. Make sure you have given the correct access token"}}]

testLoadBalancedEndpointResourceLevel

java.lang.AssertionError: expected [{"id":2, "category":{"id":1, "name":"John Doe"}, "name":"shre", "photoUrls":["ArrayItem1"], "tags":[{"id":1, "name":"TfNSW"}], "status":"hello"}] but found [{"fault":{"code":900901, "message":"Invalid Credentials", "description":"Invalid Credentials. Make sure you have given the correct access token"}}]

testPerAPIEndpoint

java.lang.AssertionError: expected [{"id":2, "category":{"id":1, "name":"John Doe"}, "name":"shre", "photoUrls":["ArrayItem1"], "tags":[{"id":1, "name":"TfNSW"}], "status":"hello"}] but found [{"fault":{"code":900901, "message":"Invalid Credentials", "description":"Invalid Credentials. Make sure you have given the correct access token"}}]

testPerResourceEndpoint

java.lang.AssertionError: expected [{"id":222222222, "category":{ "id":1, "name":"Test" }, "name":"doggie", "photoUrls":[ "SampleImage1.png" ], "tags":[ { "id":0, "name":"TestTag1" } ], "status":"pending"}] but found [{"fault":{"code":900901, "message":"Invalid Credentials", "description":"Invalid Credentials. Make sure you have given the correct access token"}}]

testFailOverMultiEndpointAPILevel

java.lang.AssertionError: expected [{"id":111111148, "category":{ "id":0, "name":"ABCD" }, "name":"doggieUpdated", "photoUrls":[ "SampleImage1.png" ], "tags":[ { "id":0, "name":"TestTag1" } ], "status":"pending"}] but found [{"fault":{"code":900901, "message":"Invalid Credentials", "description":"Invalid Credentials. Make sure you have given the correct access token"}}]

testFailOverMultiEndpointResourceLevel

java.lang.AssertionError: expected [{ "AVAILABLE": 1, "string": 2, "pending": 2, "available": 233539, "PENDING": 1}] but found [{"fault":{"code":900901, "message":"Invalid Credentials", "description":"Invalid Credentials. Make sure you have given the correct access token"}}]

testLoadBalancedMultiEndpointAPILevel

java.lang.AssertionError: expected [{"id":222222222, "category":{ "id":1, "name":"Test" }, "name":"doggie", "photoUrls":[ "SampleImage1.png" ], "tags":[ { "id":0, "name":"TestTag1" } ], "status":"pending"}] but found [{"fault":{"code":900901, "message":"Invalid Credentials", "description":"Invalid Credentials. Make sure you have given the correct access token"}}]

testLoadBalancedMultiEndpointResourceLevel

java.lang.AssertionError: expected [{"id":2, "category":{"id":1, "name":"John Doe"}, "name":"shre", "photoUrls":["ArrayItem1"], "tags":[{"id":1, "name":"TfNSW"}], "status":"hello"}] but found [{"fault":{"code":900901, "message":"Invalid Credentials", "description":"Invalid Credentials. Make sure you have given the correct access token"}}]

testEnableSecurityOverriddenResourceLevelWithCorrectAuthHeaderJWT

java.lang.AssertionError: expected [{"id":2, "category":{"id":1, "name":"John Doe"}, "name":"shre", "photoUrls":["ArrayItem1"], "tags":[{"id":1, "name":"TfNSW"}], "status":"hello"}] but found [{"fault":{"code":900901, "message":"Invalid Credentials", "description":"Invalid Credentials. Make sure you have given the correct access token"}}] at org.wso2.micro.gateway.tests.security.DisableSecurityAndCustomAuthHeaderTestCase.testEnableSecurityOverriddenResourceLevelWithCorrectAuthHeader(DisableSecurityAndCustomAuthHeaderTestCase.java:116) at org.wso2.micro.gateway.tests.security.DisableSecurityAndCustomAuthHeaderTestCase.testEnableSecurityOverriddenResourceLevelWithCorrectAuthHeaderJWT(DisableSecurityAndCustomAuthHeaderTestCase.java:87)

testResourceWithMultipleScopesJWT

java.lang.AssertionError: expected [{"id":2, "category":{"id":1, "name":"John Doe"}, "name":"shre", "photoUrls":["ArrayItem1"], "tags":[{"id":1, "name":"TfNSW"}], "status":"hello"}] but found [{"fault":{"code":900901, "message":"Invalid Credentials", "description":"Invalid Credentials. Make sure you have given the correct access token"}}]

testResourceWithSingleScopesJWT

java.lang.AssertionError: expected [{"id":2, "category":{"id":1, "name":"John Doe"}, "name":"shre", "photoUrls":["ArrayItem1"], "tags":[{"id":1, "name":"TfNSW"}], "status":"hello"}] but found [{"fault":{"code":900901, "message":"Invalid Credentials", "description":"Invalid Credentials. Make sure you have given the correct access token"}}]

testResourceWithWrongScopesJWT

java.lang.AssertionError: Response should return the code 900910 for invalid scopes expected [true] but found [false]

testSameTokenWithMultipleResourcesJWT

java.lang.AssertionError: expected [{"id":2, "category":{"id":1, "name":"John Doe"}, "name":"shre", "photoUrls":["ArrayItem1"], "tags":[{"id":1, "name":"TfNSW"}], "status":"hello"}] but found [{"fault":{"code":900901, "message":"Invalid Credentials", "description":"Invalid Credentials. Make sure you have given the correct access token"}}]

testWithoutScopesJWT

java.lang.AssertionError: Response should return the code 900910 for invalid scopes expected [true] but found [false]

testGrpcWithJwtScopesFailureScenario

java.lang.AssertionError: expected [7:The access token does not allow you to access the requested resource] but found [16:Invalid Credentials] at org.wso2.micro.gateway.tests.grpc.BasicGrpcTestCase.testGrpcWithJwtScopesFailureScenario(BasicGrpcTestCase.java:106)

testGrpcWithJwtScopesSuccessScenario

java.lang.AssertionError: expected [response received :sample-request] but found [16:Invalid Credentials] at org.wso2.micro.gateway.tests.grpc.BasicGrpcTestCase.testGrpcWithJwtScopesSuccessScenario(BasicGrpcTestCase.java:114)

testGrpcWithJwtSuccessScenario

java.lang.AssertionError: expected [response received :sample-request] but found [16:Invalid Credentials] at org.wso2.micro.gateway.tests.grpc.BasicGrpcTestCase.testGrpcWithJwtSuccessScenario(BasicGrpcTestCase.java:79)

testMethodLevelThrottling

java.lang.AssertionError: expected [8:Message throttled out] but found [16:Invalid Credentials] at org.wso2.micro.gateway.tests.grpc.BasicGrpcTestCase.testMethodLevelThrottling(BasicGrpcTestCase.java:130)

testServiceLevelThrottling

java.lang.AssertionError: expected [8:Message throttled out] but found [16:Invalid Credentials] at org.wso2.micro.gateway.tests.grpc.BasicGrpcTestCase.testServiceLevelThrottling(BasicGrpcTestCase.java:122)

testResponseJWTGenerationHeader

java.lang.AssertionError: expected ["{"header":"available"}"] but found [{"fault":{"code":900901, "message":"Invalid Credentials", "description":"Invalid Credentials. Make sure you have given the correct access token"}}] at org.wso2.micro.gateway.tests.jwtGenerator.JWTGenerationTestCase.testResponseJWTGenerationHeader(JWTGenerationTestCase.java:82)

testResponseJWTGenerationJWTClaim

java.lang.AssertionError: Response code mismatched expected [200] but found [401] at org.wso2.micro.gateway.tests.jwtGenerator.JWTGenerationTestCase.testResponseJWTGenerationJWTClaim(JWTGenerationTestCase.java:154)

testResponseJWTGenerationSkewTime

java.lang.AssertionError: Response code mismatched expected [200] but found [401] at org.wso2.micro.gateway.tests.jwtGenerator.JWTGenerationTestCase.testResponseJWTGenerationSkewTime(JWTGenerationTestCase.java:94)

testResponseJWTGenerationToken

java.lang.AssertionError: Response code mismatched expected [200] but found [401] at org.wso2.micro.gateway.tests.jwtGenerator.JWTGenerationTestCase.testResponseJWTGenerationToken(JWTGenerationTestCase.java:130)

testApplicationThrottlingWithJwtToken

java.lang.AssertionError: Request should have throttled out with jwt token expected [429] but found [401] at org.wso2.micro.gateway.tests.throttling.DistributedThrottlingTestCase.testApplicationThrottlingWithJwtToken(DistributedThrottlingTestCase.java:194)

testApplicationThrottlingWithOauth2Token

java.lang.AssertionError: Request should have throttled out with oauth token expected [429] but found [500] at org.wso2.micro.gateway.tests.throttling.DistributedThrottlingTestCase.testApplicationThrottlingWithOauth2Token(DistributedThrottlingTestCase.java:200)

testSubscriptionThrottling

java.lang.AssertionError: Request should have throttled out with jwt token expected [429] but found [401] at org.wso2.micro.gateway.tests.throttling.DistributedThrottlingTestCase.testSubscriptionThrottling(DistributedThrottlingTestCase.java:182)

testSubscriptionThrottlingWithStopOnQuotaFalse

java.lang.AssertionError: Request should not throttled out expected [200] but found [401] at org.wso2.micro.gateway.tests.throttling.DistributedThrottlingTestCase.testSubscriptionThrottlingWithStopOnQuotaFalse(DistributedThrottlingTestCase.java:212)

testApiInvokeWithJWT

java.lang.AssertionError: expected [{"type": "production"}] but found [{"fault":{"code":900901, "message":"Invalid Credentials", "description":"Invalid Credentials. Make sure you have given the correct access token"}}] at org.wso2.micro.gateway.tests.security.APIInvokeWithOAuth2andBasicAuthTestCase.invoke(APIInvokeWithOAuth2andBasicAuthTestCase.java:66) at org.wso2.micro.gateway.tests.security.APIInvokeWithOAuth2andBasicAuthTestCase.testApiInvokeWithJWT(APIInvokeWithOAuth2andBasicAuthTestCase.java:45)

testApplicationThrottling

java.lang.AssertionError: Request should have throttled out with jwt token expected [429] but found [401] at org.wso2.micro.gateway.tests.throttling.ThrottlingTestCase.testApplicationThrottling(ThrottlingTestCase.java:149)

testSubscriptionThrottling

java.lang.AssertionError: Request should have throttled out with jwt token expected [429] but found [401] at org.wso2.micro.gateway.tests.throttling.ThrottlingTestCase.testSubscriptionThrottling(ThrottlingTestCase.java:141)

testSubscriptionThrottlingWithStopOnQuotaFalse

java.lang.AssertionError: Request should not throttled out expected [200] but found [401] at org.wso2.micro.gateway.tests.throttling.ThrottlingTestCase.testSubscriptionThrottlingWithStopOnQuotaFalse(ThrottlingTestCase.java:163)

testThrottlingWithNonExistApplicationPolicy

java.lang.AssertionError: Request should not successful with JWT. expected [500] but found [401] at org.wso2.micro.gateway.tests.throttling.ThrottlingTestCase.testThrottlingWithNonExistApplicationPolicy(ThrottlingTestCase.java:192)

testThrottlingWithNonExistSubscriptionPolicy

java.lang.AssertionError: Request should not successful with JWT. expected [500] but found [401] at org.wso2.micro.gateway.tests.throttling.ThrottlingTestCase.testThrottlingWithNonExistSubscriptionPolicy(ThrottlingTestCase.java:173)

testApiInvokeWithJWT

java.lang.AssertionError: expected [{"id":2, "category":{"id":1, "name":"John Doe"}, "name":"shre", "photoUrls":["ArrayItem1"], "tags":[{"id":1, "name":"TfNSW"}], "status":"hello"}] but found [{"fault":{"code":900901, "message":"Invalid Credentials", "description":"Invalid Credentials. Make sure you have given the correct access token"}}]

testThrottlingWithNonExistingPolicy

java.lang.AssertionError: expected [{"fault":{"code":900809, "message":"Internal server error occured", "description":"POLICY ENFORCEMENT ERROR"}}] but found [{"fault":{"code":900901, "message":"Invalid Credentials", "description":"Invalid Credentials. Make sure you have given the correct access token"}}] at org.wso2.micro.gateway.tests.throttling.OpenApiThrottlingTestCase.testThrottlingWithNonExistingPolicy(OpenApiThrottlingTestCase.java:45)

testPerResourceRequestInterceptor

java.lang.AssertionError: expected [{"Intercept":{"RequestCode":"e123", "message":"Successfully intercepted", "description":"Description"}}] but found [{"fault":{"code":900901, "message":"Invalid Credentials", "description":"Invalid Credentials. Make sure you have given the correct access token"}}]

testPerResourceResponseInterceptor

java.lang.AssertionError: expected [ResponseHeader] but found [null]

testRequestInterceptorAPILevel

java.lang.AssertionError: expected [{"APIIntercept":{"RequestCode":"e123", "message":"Successfully intercepted", "description":"Description"}}] but found [{"fault":{"code":900901, "message":"Invalid Credentials", "description":"Invalid Credentials. Make sure you have given the correct access token"}}]

testResponseInterceptorAPILevel

java.lang.AssertionError: expected [PerAPIResponse_Header] but found [null]

testGetRequestJsonBodyInterceptor

java.lang.AssertionError: expected [:application/json:Accept:Cache-Control:Connection:Content-Length:content-type:Host:Pragma::/petstore/v1/user?test=value1&test2=value2:POST:1.1:{test2=value2, test=value1}:value1:{"hello":"world"}] but found [{"fault":{"code":900901, "message":"Invalid Credentials", "description":"Invalid Credentials. Make sure you have given the correct access token"}}] at org.wso2.micro.gateway.tests.interceptor.JavaInterceptorTestCase.testGetRequestJsonBodyInterceptor(JavaInterceptorTestCase.java:45)

testGetRequestXmlBodyInterceptor

java.lang.AssertionError: expected [:text/xml:Accept:Cache-Control:Connection:Content-Length:content-type:Host:Pragma::/petstore/v1/user?test=value1&test2=value2:POST:1.1:{test2=value2, test=value1}:value1:hello] but found [{"fault":{"code":900901, "message":"Invalid Credentials", "description":"Invalid Credentials. Make sure you have given the correct access token"}}] at org.wso2.micro.gateway.tests.interceptor.JavaInterceptorTestCase.testGetRequestXmlBodyInterceptor(JavaInterceptorTestCase.java:66)

testSetResponseXmlBodyInterceptor

java.lang.AssertionError: expected [value1] but found [null] at org.wso2.micro.gateway.tests.interceptor.JavaInterceptorTestCase.testSetResponseXmlBodyInterceptor(JavaInterceptorTestCase.java:77)

Environment Variables(66)16 different
Slave Information(87)9 different
Project Information(15)0 different

Module Builds

Success Micro Gateway Components0.5 sec
Success mgw-interceptor24 sec
Success mgw-jwt-generator4.8 sec
Success Micro Gateway - Parent9.2 sec
Success Micro Gateway Code Generator27 sec
Success org.wso2.micro.gateway.core43 sec
Success org.wso2.micro.gateway.tools1.2 sec
Unstable Micro-GW - Test Integration12 min
Success WSO2 Micro Gateway - Distribution55 sec