Hi Thanuja,

I have added the fix to look for ERROR level rather than any error keyword.
Please test it and let me know if it fixes the issue.

The new repository URL is [1].

Thanks
Abhishek

[1]. https://github.com/abhishek0198/wso2dockerfiles-test-framework

On Thu, Aug 18, 2016 at 10:49 AM, Abhishek Tiwari <
[email protected]> wrote:

> Hi Thanuja,
>
> Thanks a lot of using the test framework and pointing out the issue. The
> check of errors in carbon log is dumb at this point. I will change it look
> for the correct logging level to find errors.
>
> Imesh,
> Sincerely appreciate code level feedback and creating issues on Github. I
> will address all these shortly.
>
> Thanks
> Abhishek
>
> On Thu, Aug 18, 2016 at 2:39 AM, Thanuja Uruththirakodeeswaran <
> [email protected]> wrote:
>
>> Hi Abhishek,
>>
>> Great work on Dockerfiles test framework!!! I have used the test
>> framework to check the flow of building and running WSO2 BPS 3.5.1 docker
>> image. According to the framework log[1], the test fails because of an
>> error in the carbon server log. But when I check the carbon server log,
>> there were no *ERROR* logs and it has 'error' as part of a word in
>> line[2].
>>
>> For this scenario, we should not make the test to be failed. I think
>> instead of simply grepping the 'error' word as in[3], we should grep the
>> *ERROR* logs.
>>
>> [1].
>> 2016/08/18 14:20:28 main.go:151: Starting test setup up
>> 2016/08/18 14:20:28 main.go:154: Completed test setup up
>> 2016/08/18 14:20:28 main.go:106: Running tests for wso2bps, 3.5.1, using
>> puppet provisioning, under default platform.
>> 2016/08/18 14:20:28 common-utils.go:37: Starting building image...
>> 2016/08/18 14:20:57 common-utils.go:45: Successfully built docker image.
>> 2016/08/18 14:20:57 common-utils.go:85: No errors were found in docker
>> build logs
>> 2016/08/18 14:20:57 common-utils.go:58: Running image...
>> 2016/08/18 14:20:59 common-utils.go:66: Successfully ran docker image.
>> 2016/08/18 14:20:59 common-utils.go:98: No errors were found in docker
>> run logs
>> 2016/08/18 14:20:59 common-utils.go:130: Attempt: 1. Port 9763 is not
>> open in the docker container.
>> 2016/08/18 14:20:59 common-utils.go:133: Sleeping for 2 seconds
>> 2016/08/18 14:21:01 common-utils.go:130: Attempt: 2. Port 9763 is not
>> open in the docker container.
>> 2016/08/18 14:21:01 common-utils.go:133: Sleeping for 4 seconds
>> 2016/08/18 14:21:05 common-utils.go:130: Attempt: 3. Port 9763 is not
>> open in the docker container.
>> 2016/08/18 14:21:05 common-utils.go:133: Sleeping for 6 seconds
>> 2016/08/18 14:21:11 common-utils.go:130: Attempt: 4. Port 9763 is not
>> open in the docker container.
>> 2016/08/18 14:21:11 common-utils.go:133: Sleeping for 8 seconds
>> 2016/08/18 14:21:19 common-utils.go:136: Port 9763 is open in the docker
>> container.
>> 2016/08/18 14:21:19 common-utils.go:136: Port 9443 is open in the docker
>> container.
>> 2016/08/18 14:21:20 common-utils.go:153: Carbon server is up and running.
>> 2016/08/18 14:21:20 common-utils.go:166: Checking Carbon server logs for
>> any errors
>> 2016/08/18 14:21:20 docker-utils.go:105: Successfully copied carbon
>> server logs from docker container
>> 2016/08/18 14:21:20 common-utils.go:173: Errors founds in carbon server
>> logs, please check them under wso2bps3.5.1logs
>> 2016/08/18 14:21:20 main.go:146: Test completed for wso2bps, 3.5.1.
>> 2016/08/18 14:21:20 main.go:158: Starting test clean up
>> 2016/08/18 14:21:20 docker-utils.go:61: Stopping and removing docker
>> container with id: 6f28d71772e6
>> 2016/08/18 14:21:31 docker-utils.go:67: Successfully stopped and removed
>> docker container
>> 2016/08/18 14:21:31 docker-utils.go:43: Removing docker image
>> wso2bps:3.5.1
>> 2016/08/18 14:21:31 docker-utils.go:47: Successfully removed docker image
>> 2016/08/18 14:21:31 main.go:161: Completed test clean up
>>
>> [2].
>> TID: [-1234] [] [2016-08-18 08:51:15,701]  INFO
>> {org.springframework.beans.factory.support.DefaultListableBeanFactory} -
>>  Pre-instantiating singletons in org.springframework.beans.fact
>> ory.support.DefaultListableBeanFactory@38d281d4: defining beans
>> [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProce
>> ssor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor
>> ,org.apache.cxf.bus.spring.BusExtensionPostProcessor,deploym
>> entService,runtimeService,queryRuntimeService,historyService
>> ,formService,processDefinitionService,identityService,manage
>> mentService,statsService,authenticationBean,exceptionHandlerBean,error
>> HandlerBean,jacksonBean]; root of factory hierarchy
>> {org.springframework.beans.factory.support.DefaultListableBeanFactory}
>>
>> [3]. https://github.com/abhishek0198/test-framework/blob/
>> master/common/common-utils.go#L169
>>
>> Thanks.
>>
>>
>> On Fri, Aug 12, 2016 at 3:04 PM, Abhishek Tiwari <
>> [email protected]> wrote:
>>
>>> Here is the correct link:
>>>
>>> https://hangouts.google.com/call/krqijl3e4fc4xa4bpd2vct3quqe
>>>
>>> On Fri, Aug 12, 2016 at 2:03 AM, Abhishek Tiwari <
>>> [email protected]> wrote:
>>>
>>>> The meeting got rescheduled to 3:00pm. Here is the updated hangout link:
>>>>
>>>> https://hangouts.google.com/call/g5q25layaremzfhyli6vbqsv2ye
>>>>
>>>> Thanks
>>>> Abhishek
>>>>
>>>> On Thu, Aug 11, 2016 at 10:37 PM, Abhishek Tiwari <
>>>> [email protected]> wrote:
>>>>
>>>>> Hi Imesh,
>>>>>
>>>>> Yeah 2:30pm IST is perfect.
>>>>>
>>>>> Thanks
>>>>> Abhishek
>>>>>
>>>>> On Thu, Aug 11, 2016 at 9:59 PM, Imesh Gunaratne <[email protected]>
>>>>> wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>> On Fri, Aug 12, 2016 at 10:08 AM, Abhishek Tiwari <
>>>>>> [email protected]> wrote:
>>>>>>
>>>>>>> Hi Mentors,
>>>>>>>
>>>>>>> Just a quick reminder for the Dockerfiles test framework demo today
>>>>>>> afternoon?
>>>>>>>
>>>>>>
>>>>>> ​Would 2:30 PM IST work for you?
>>>>>>
>>>>>> Thanks​
>>>>>>
>>>>>>>
>>>>>>> Thanks
>>>>>>> Abhishek
>>>>>>>
>>>>>>> On Tue, Aug 9, 2016 at 11:00 PM, Abhishek Tiwari <
>>>>>>> [email protected]> wrote:
>>>>>>>
>>>>>>>> HI Vishanth,
>>>>>>>>
>>>>>>>> Friday afternoon works fine with me.
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>> Abhishek
>>>>>>>>
>>>>>>>> On Wed, Aug 10, 2016 at 10:52 AM, Vishanth Balasubramaniam <
>>>>>>>> [email protected]> wrote:
>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> Shall we have the demo on Friday Afternoon (IST)?
>>>>>>>>>
>>>>>>>>> Regards,
>>>>>>>>> Vishanth
>>>>>>>>>
>>>>>>>>> On Tue, Aug 9, 2016 at 4:28 PM, Abhishek Tiwari <
>>>>>>>>> [email protected]> wrote:
>>>>>>>>>
>>>>>>>>>> Hi Mentors,
>>>>>>>>>>
>>>>>>>>>> Dockerfiles test framework is now able to run smoke tests, with
>>>>>>>>>> smoke tests for ESB added at this point. Developers can extend the
>>>>>>>>>> framework to add product specific smoke tests.
>>>>>>>>>>
>>>>>>>>>> Smoke test for ESB are implemented as follows:
>>>>>>>>>> 1. Once a new docker image is deployed and the container is up,
>>>>>>>>>> the script does a login to WSO2 carbon server and maintains cookies 
>>>>>>>>>> so that
>>>>>>>>>> it can use logged in state in subsequent requests.
>>>>>>>>>>
>>>>>>>>>> 2. Creates a new pass-through proxy service. [1]
>>>>>>>>>>
>>>>>>>>>> 3. Validates the newly created proxy service is accessible
>>>>>>>>>> (validates Http response code for the proxy testing url [2])
>>>>>>>>>>
>>>>>>>>>> 4. Removes the newly created proxy service. [3]
>>>>>>>>>>
>>>>>>>>>> I would like to demo the current state of the project, please
>>>>>>>>>> provide your preferred date and time.
>>>>>>>>>>
>>>>>>>>>> Thanks
>>>>>>>>>> Abhishek
>>>>>>>>>>
>>>>>>>>>> [1]. Http post using /carbon/proxyservices/template
>>>>>>>>>> _pass-through.jsp
>>>>>>>>>> [2]. Http get  using /carbon/services/<servicename>?tryit
>>>>>>>>>> [3]. Http get using /carbon/service-mgt/delete_service_groups.jsp
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> *Vishanth Balasubramaniam*
>>>>>>>>> Committer & PMC Member, Apache Stratos,
>>>>>>>>> Software Engineer, WSO2 Inc.; http://wso2.com
>>>>>>>>>
>>>>>>>>> mobile: *+94 77 17 377 18*
>>>>>>>>> about me: *http://about.me/vishanth <http://about.me/vishanth>*
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> *Imesh Gunaratne*
>>>>>> Software Architect
>>>>>> WSO2 Inc: http://wso2.com
>>>>>> T: +94 11 214 5345 M: +94 77 374 2057
>>>>>> W: https://medium.com/@imesh TW: @imesh
>>>>>> lean. enterprise. middleware
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Thanuja Uruththirakodeeswaran
>> Software Engineer
>> WSO2 Inc.;http://wso2.com
>> lean.enterprise.middleware
>>
>> mobile: +94 774363167
>>
>> <http://wso2.com/signature>
>>
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to