Hi Dinesh,

I am getting the following exception in
APIMANAGER3363StoreAPIConsoleWithReverseProxy TestCase and  i have attached
the full log file. It seems like bug in  addAPI method. In the test it has
used for add APIs.

org.jaggeryjs.scriptengine.exceptions.ScriptException:
org.mozilla.javascript.WrappedException: Wrapped
org.wso2.carbon.registry.core.secure.AuthorizationFailedException: User
wso2.anonymous.user is not authorized to read the resource
/_system/governance/apimgt/applicationdata/api-docs/
APIMANAGER3363-1.0.0-admin-AT-apimanager3363.com/1.2/api-doc.
(/store/site/blocks/api-doc/ajax/get.jag#101)

Thanks,

Iqbal



On Thu, Apr 23, 2015 at 12:18 PM, Dinesh J Weerakkody <[email protected]>
wrote:

> Hi Irham,
> Regarding APIMANAGER3363StoreAPIConsoleWithReverseProxy TestCase,
>
> This test should be run with load balancer enabled environment and it is
> mentioned in class level comments. Anyway, Can you please share the full
> error log so we can find the root cause.
>
> Thanks
>
> *Dinesh J. Weerakkody*
> Software Engineer
> WSO2 Inc.
> lean | enterprise | middleware
> M : +94 727 361788 | E : [email protected] | W : www.wso2.com
>
> On Wed, Apr 22, 2015 at 12:39 PM, Irham Iqbal <[email protected]> wrote:
>
>>
>> Hi,
>>
>> Currently I am fixing the following APIM UI integration tests failures.
>>
>> Results :
>>
>> Tests run: 26, Failures: 9, Errors: 0, Skipped: 1
>>
>> When i go through the code i found the following lines which may causing
>> the test failures.
>>
>> APIMANAGER3272ExternalLogoutPageTestCase
>>
>>
>>    - Getting an 404 when try to access
>>    https://localhost:9443/store/site/pages/login.jag.
>>    - In the code variable externalLogoutPage has assigned "custom logout
>>    page url".
>>
>>
>> APIMANAGER3344ScopeSpecificTokenTestCase
>>
>>
>>    - Searching Select Scopes link inside My Subscriptions page in the
>>    store but i don't see any select scope link in that page.
>>
>>
>> APIMANAGER3363StoreAPIConsoleWithReverseProxy
>>
>>
>>    - When click on API Console tag getting an exception in log and also
>>    bellowing exception under that tag - 500 : undefined
>>    
>> https://localhost:9443/store/api-docs/admin%40apimanager3363.com/APIMANAGER3363/1.0.0
>>    .
>>
>>
>> APIMANAGER3366MultipleGatewayPublishTestCase
>>
>>    - In the publisher when adding the API in the manage state it's
>>    expecting input.env css selector  but it's not in that page.
>>
>>
>> APIMANAGER3371BusinessInformationClearedWhenAPISavedButton
>>
>>    - In the publisher when adding the API in the manage state it's try
>>    to click on xpath //form[@id='manage_form']/fieldset[3]/legend  but
>>    it's not in that page.
>>
>>
>> APIMANAGER3412DifferentRegistryContextPath
>>
>>
>>    - In the publisher when adding the API in the design state it's try
>>    to find a element by id jsonform-0-elt-production_endpoints but it's
>>    not in that page.
>>
>>
>> APIVersoinStatTestCase
>>
>>
>>    - In the publisher in the all API page when it's empty it's trying to
>>    find versionTxt by id but it's not in that page.
>>
>>
>> TestNameLengthTestCase
>>
>>
>>    - When running this test alone it's working. Some other test/tests
>>    might be the reason of failure of this test case.
>>
>>
>> YouTubeUIPagesTestCase
>>
>>    - testAPIPage.getTestResponseBody() gives <ams:fault xmlns:ams="
>>    
>> http://wso2.org/apimanager/security";><ams:code>900902</ams:code><ams:message>Missing
>>    Credentials</ams:message><ams:description>Required OAuth credentials not
>>    provided. Make sure your API invocation call has a header: "Authorization:
>>    Bearer ACCESS_TOKEN"</ams:description></ams:fault>
>>
>> Thanks,
>> Iqbal
>> --
>> Irham Iqbal
>> Software Engineer - Test Automation
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>> phone: +94 777888452
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>


-- 
Irham Iqbal
Software Engineer - Test Automation
 WSO2, Inc.: http://wso2.com
lean. enterprise. middleware
phone: +94 777888452

Attachment: error.log
Description: Binary data

_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to