Hi Hasintha,

In ESB integration tests, we've used socket server as an endpoint to send
messages. Socket server called "WireMonitor" was implemented to facilitate
message capturing, this server is in test framework at GIT. However it not
available test framework at SVN. If you are working on SVN, please go ahead
and implement your own socket server.

You can find the code at [1].

Thanks,
Krishantha.

[1]
https://github.com/wso2-dev/carbon-platform-integration/blob/master/test-automation-framework/org.wso2.carbon.automation.test.utils/src/main/java/org/wso2/carbon/automation/test/utils/common/WireMonitorServer.java


On Mon, Dec 15, 2014 at 4:28 PM, Johann Nallathamby <[email protected]> wrote:
>
> Hi Krishantha,
>
> We can standup a REST endpoint and listen to HTTP requests. When IS sends
> the notification request this endpoint can persist it to filesystem. The
> framework can then read the file, parse it, assert it and then delete the
> file.
>
> WDYT?
>
> Thanks,
> Johann.
>
> On Mon, Dec 15, 2014 at 11:46 AM, Hasintha Indrajee <[email protected]>
> wrote:
>>
>> Hi all,
>>
>> When a certain operation takes place,  a rest message will be sent to an
>> external endpoint. For an example when a XACML policy update takes place,
>> the information about the updated policy is sent to an external endpoint
>> via a rest call. What would be the way to write integration-tests to this
>> scenario. Are there any samples written ? ie I need to have an external
>> endpoint to consume the message and assert based on the content of the
>> message. The product which the integration test should be written is
>> Identity Server.
>>
>>
>>
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> --
> Thanks & Regards,
>
> *Johann Dilantha Nallathamby*
> Associate Technical Lead & Product Lead of WSO2 Identity Server
> Integration Technologies Team
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - *+94777776950*
> Blog - *http://nallaa.wordpress.com <http://nallaa.wordpress.com>*
>


-- 
Krishantha Samaraweera
Senior Technical Lead - Test Automation
Mobile: +94 77 7759918
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to