stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajkumar Rajaratnam <rajkum...@wso2.com>
Subject Improving the way integration tests check whether the server is ready handle request
Date Tue, 24 Nov 2015 06:11:59 GMT
Hi Devs,

Currently, integrations test is looking at specific log messages to
determine whether the server is ready to handle request or not. I propose
we need to handle this in the following way.

a) exposing an API in mock API to check whether mock iaas is activated or
not.
b) integration tests should be started after getting a positive response
from the above API.

As per our component start up order, the above solution will make sure that
every component is ready to handle requests. This is implemented and
available in 4.1.5 release. More information in [1].

The main reason why I wanted this feature is to be able to write the server
restart test case [2]. If we depends on logs, after server restart,
integration tests will assume that the server is ready to handle requests
because of the previous log messages.

[1] https://issues.apache.org/jira/browse/STRATOS-1628
[2] https://issues.apache.org/jira/browse/STRATOS-1627

Thanks,
Raj.

-- 
Rajkumar Rajaratnam
Committer & PMC Member, Apache Stratos
Software Engineer, WSO2

Mobile : +94777568639
Blog : rajkumarr.com

Mime
View raw message