Hi All,

I was working on [1] and tested it. The way I've done it, is, hit the
gateway URL and check the response code is 302. But I realize that was
wrong when the gateway url is once hit it will redirect to IS and it will
always give me 302.

Since the gateway URL is handled by SAML and cookies for the following
flow, the test case will be very lengthy.

*Create app => publish app => login to store => Subscribe the app => test
weather the gateway url is hit*

or

*=> unpublish the app => test weather the app is hit*.

My suggestion is to do as follow.

1)* Create app => login store => test the app is visible in the store (App
is visible only the app is published)*
2) *=> publish app = > login to store => test the app can be subscribed.*
3) *Change the state to unpublish (this will cover other states as well) =>
login to store => test the app is visible in the store*

Over all three test cases will be covered as for LifyCycleTest class.

WDYT ?

[1] https://wso2.org/jira/browse/APPM-125

Cheers


-- 
Kasun Dissanayake
Software Engineer
WSO2 Inc.
Lean | Enterprise | Middleware
Tel - +94 77 086 2860
Skype - kasun.dissanayake4
LinkedIn - lk.linkedin.com/in/kasundis/
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to