Posts

Showing posts from 2015

How to change WSO2 BAM admin user password

This guide is for WSO2 BAM 2.5.0 version
To change the default admin password open the user-mgt.xml(<BAM_HOME>/repository/conf/) edit the Password as follows.

<AdminUser><UserName>admin</UserName><Password>newPassword</Password></AdminUser>
Change the admin passwords of below datasources of bam-datasource.xml in <BAM_HOME>/repository/conf/datasources folder accordingly.

WSO2BAM_CASSANDRA_EVENT_INDEX_SOURCE
WSO2BAM_CASSANDRA_DATASOURCE
WSO2BAM_UTIL_DATASOURCE
WSO2BAM_HIVE_INCREMENTAL_DATASOURCE

Now password has changed to a new one.

How to run integration ui tests in WSO2 API Manager

Go to tests-ui folder reside in below path.

/platform/branches/turing/products/apimgt/1.9.0/modules/integration/tests-ui
and run below command
mvn clean install -Dwebdriver.firefox.bin=<path to firefox executable>
make sure to use firefox 22 version. you can get it from [1].
ex:  mvn clean install -Dwebdriver.firefox.bin=/Users/lakshman/Documents/software/fireFox22/Firefox.app/Contents/MacOS/firefox-bin

If you want to debug the test case, you can use -Dmaven.surefire.debug property

ex:
mvn clean install -Dwebdriver.firefox.bin=/Users/lakshman/Documents/software/fireFox22/Firefox.app/Contents/MacOS/firefox-bin -Dmaven.surefire.debug


[1] https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/22.0/

Root cause of getting 404 error when do rest call to google places apis

When we do call any rest api starting with https://maps.googleapis.com(ex: google location api) from an application other than a normal browser I observed we are getting 404 error message as the response. 

What we can do to prevent this

Add host: maps.googleapis.comparameter to the request header when application send rest call to that api

In WSO2 ESB we can use below property before send mediator. It will add above parameter to request header when ESB send rest call to maps.googleapis.com.

<property name="REQUEST_HOST_HEADER" value="maps.googleapis.com" scope="axis2"></property>