Hi Darshana,

Do you have server log errors when executing the curl?


Thanks,


On Mon, Aug 19, 2013 at 10:45 AM, Dharshana Warusavitharana <
[email protected]> wrote:

> Hi ,
>
> Im getting 302 response for SCIM user creation request please refer the
> curl command and response inlign
>
> [dharshana@localhost tests]$ curl -v -k --user admin:admin --data
> "{"schemas":[],"name":{"familyName":"gunasinghe","givenName":"hasinitg"},"userName":"hasinitg","password":"hasinitg","emails":[{"primary":true,"value":"
> hasini_home.com","type":"home"},{"value":"hasini_work.com","type":"work"}]}"
> --header "Content-Type:application/json"
> https://localhost:9443/wso2/scim/Users
>
>
> * About to connect() to localhost port 9443 (#0)
> *   Trying 127.0.0.1...
> * Connected to localhost (127.0.0.1) port 9443 (#0)
> * Initializing NSS with certpath: sql:/etc/pki/nssdb
> * skipping SSL peer certificate verification
> * SSL connection using TLS_DHE_RSA_WITH_AES_256_CBC_SHA
> * Server certificate:
> * subject: CN=localhost,O=WSO2,L=Mountain View,ST=CA,C=US
> * start date: Feb 19 07:02:26 2010 GMT
> * expire date: Feb 13 07:02:26 2035 GMT
> * common name: localhost
> * issuer: CN=localhost,O=WSO2,L=Mountain View,ST=CA,C=US
> * Server auth using Basic with user 'admin'
> > POST /wso2/scim/Users HTTP/1.1
> > Authorization: Basic YWRtaW46YWRtaW4=
> > User-Agent: curl/7.29.0
> > Host: localhost:9443
> > Accept: */*
> > Content-Type:application/json
> > Content-Length: 186
> >
> * upload completely sent off: 186 out of 186 bytes
> < HTTP/1.1 302 Found
> < Set-Cookie: JSESSIONID=7B67DDEBAFB79144EB9C0201F9582935; Path=/; Secure;
> HttpOnly
> < Set-Cookie: requestedURI=../../wso2/scim/Users; Path=/
> < Location: https://localhost:9443/carbon/admin/login.jsp
> < Content-Type: text/html;charset=UTF-8
> < Content-Length: 0
> < Date: Mon, 19 Aug 2013 05:08:39 GMT
> < Server: WSO2 Carbon Server
> <
>
>
> This leads to SCIM tests failed.
>
> Thank You,
> Dharshana.
>
>
> On Mon, Aug 19, 2013 at 9:45 AM, Chamath Gunawardana <[email protected]>wrote:
>
>> Hi Prabath,
>>
>> I will look into this.
>>
>>
>>
>> Thanks,
>>
>>
>> On Mon, Aug 19, 2013 at 7:54 AM, Krishantha Samaraweera <
>> [email protected]> wrote:
>>
>>> Yes me too noticed it. DharshanaW will work with Chamath to check the
>>> failures.
>>>
>>> Thanks,
>>> Krishantha.
>>>
>>>
>>>
>>> On Mon, Aug 19, 2013 at 4:08 AM, Prabath Siriwardena 
>>> <[email protected]>wrote:
>>>
>>>> All these are failing not because of functional issues... but looks
>>>> like due to issues with the tests it self..
>>>>
>>>> Chamath, can you please check this with Krishantha..
>>>>
>>>> Thanks & regards,
>>>> -Prabath
>>>>
>>>> testAllClaims(org.wso2.carbon.identity.tests.saml.AllClaimURIsTestCase)
>>>>  Time elapsed: 0.206 sec  <<< FAILURE!
>>>> java.rmi.RemoteException: Error while getting claim URIs ; nested
>>>> exception is:
>>>>  org.apache.axis2.AxisFault: The service cannot be found for the
>>>> endpoint reference (EPR)
>>>> https://localhost:9443/services/SAMLSSOConfigService
>>>>  at org.wso2.carbon.automation.api.clients.identity.sso.saml.
>>>> SAMLSSOConfigServiceClient.getClaimURIs(SAMLSSOConfigServiceClient.java
>>>> :68)
>>>>  at org.wso2.carbon.identity.tests.saml.AllClaimURIsTestCase.
>>>> testAllClaims(AllClaimURIsTestCase.java:54)
>>>> Caused by: org.apache.axis2.AxisFault: The service cannot be found forthe 
>>>> endpoint reference (EPR)
>>>> https://localhost:9443/services/SAMLSSOConfigService
>>>>  at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(
>>>> Utils.java:531)
>>>>  
>>>> atorg.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:367)
>>>>  
>>>> atorg.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:413)
>>>> atorg.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:224)
>>>>  at org.apache.axis2.client.OperationClient.execute(
>>>> OperationClient.java:149)
>>>>  at org.wso2.carbon.identity.sso.saml.stub.
>>>> IdentitySAMLSSOConfigServiceStub.getClaimURIs(
>>>> IdentitySAMLSSOConfigServiceStub.java:265)
>>>>  at org.wso2.carbon.automation.api.clients.identity.sso.saml.
>>>> SAMLSSOConfigServiceClient.getClaimURIs(SAMLSSOConfigServiceClient.java
>>>> :66)
>>>>  ... 34 more
>>>>
>>>> initiate(org.wso2.carbon.identity.tests.scim.SCIMServiceProviderUserTestCase)
>>>>  Time elapsed: 0.241 sec  <<< FAILURE!
>>>> java.lang.NullPointerException
>>>>  at org.apache.axiom.om.impl.builder.StAXBuilder.<init
>>>> >(StAXBuilder.java:126)
>>>>  at org.apache.axiom.om.impl.builder.StAXBuilder.<init
>>>> >(StAXBuilder.java:164)
>>>>  at org.apache.axiom.om.impl.builder.StAXOMBuilder.<init
>>>> >(StAXOMBuilder.java:157)
>>>>  at org.wso2.carbon.automation.core.environmentcontext.NodeReader.
>>>> listPlatforms(NodeReader.java:95)
>>>>  at org.wso2.carbon.automation.core.environmentcontext.NodeReader.
>>>> getNodeContext(NodeReader.java:78)
>>>>  at org.wso2.carbon.automation.core.globalcontext.
>>>> GlobalContextInitiator.getNodeContext(GlobalContextInitiator.java:64)
>>>>  at org.wso2.carbon.automation.core.environmentcontext.
>>>> GroupContextProvider.<init>(GroupContextProvider.java:35)
>>>>  at org.wso2.carbon.identity.tests.scim.SCIMServiceProviderUserTestCase
>>>> .initiate(SCIMServiceProviderUserTestCase.java:66)
>>>>
>>>> testInit(org.wso2.carbon.identity.tests.saml.SSOSessionTimeoutTestCase)
>>>>  Time elapsed: 0.166 sec  <<< FAILURE!
>>>> java.io.FileNotFoundException: /Users/prabath/svn/branches/4.2.0
>>>> /platform/products/is/4.5.0
>>>> /modules/integration/tests/src/test/resources/artifacts/IS/conf/identity.xml
>>>> (No such file or directory)
>>>>  at java.io.FileInputStream.open(Native Method)
>>>>  at java.io.FileInputStream.<init>(FileInputStream.java:120)
>>>>  at java.io.FileReader.<init>(FileReader.java:55)
>>>>  at org.wso2.carbon.automation.core.utils.serverutils.
>>>> ServerConfigurationManager.applyConfiguration(
>>>> ServerConfigurationManager.java:154)
>>>>  at org.wso2.carbon.identity.tests.saml.SSOSessionTimeoutTestCase.
>>>> testInit(SSOSessionTimeoutTestCase.java:52)
>>>>
>>>> [2013-08-19 04:02:12,599]  INFO {org.wso2.carbon.automation.core.utils.
>>>> serverutils.ServerUtils} -  Shutting down server..
>>>>
>>>> Results :
>>>>
>>>> Failed tests:   
>>>> testAllClaims(org.wso2.carbon.identity.tests.saml.AllClaimURIsTestCase):
>>>> Error while getting claim URIs ; nested exception is: (..)
>>>>   initiate(org.wso2.carbon.identity.tests.scim.
>>>> SCIMServiceProviderUserTestCase)
>>>>   testInit(org.wso2.carbon.identity.tests.saml.SSOSessionTimeoutTestCase):
>>>> /Users/prabath/svn/branches/4.2.0/platform/products/is/4.5.0
>>>> /modules/integration/tests/src/test/resources/artifacts/IS/conf/identity.xml
>>>> (No such file or directory)
>>>>
>>>>
>>>>
>>>> On Mon, Aug 19, 2013 at 2:02 AM, Prabath Siriwardena 
>>>> <[email protected]>wrote:
>>>>
>>>>> I built the product with the integration tests.. and didn't
>>>>> experience this.. will check..
>>>>>
>>>>> Thanks & regards,
>>>>> -Prabath
>>>>>
>>>>>
>>>>> On Sun, Aug 18, 2013 at 11:32 PM, Krishantha Samaraweera <
>>>>> [email protected]> wrote:
>>>>>
>>>>>>  Failed tests:   initiate(org.wso2.carbon.identity.tests.scim.
>>>>>> SCIMServiceProviderUserTestCase)
>>>>>>
>>>>>> testLogin(org.wso2.carbon.identity.tests.ui.user.mgt.RoleCreationTestCase):
>>>>>> This is not the login page
>>>>>>   testAllClaims(org.wso2.carbon.identity.tests.sso.AllClaimURIsTestCase):
>>>>>> Error while getting claim URIs ; nested exception is: (..)
>>>>>>   testInit(org.wso2.carbon.identity.tests.sso.SSOSessionTimeoutTestCase):
>>>>>> /home/krishantha/svn/trunk/carbon/platform/branches/4.2.0
>>>>>> /products/is/4.5.0
>>>>>> /modules/integration/tests/src/test/resources/artifacts/IS/conf/identity.xml
>>>>>> (No such file or directory)
>>>>>>
>>>>>> Tests run: 15, Failures: 4, Errors: 0, Skipped: 11
>>>>>>
>>>>>> Surefire report is attached.
>>>>>>
>>>>>> Thanks,
>>>>>> Krishantha.
>>>>>>
>>>>>> _______________________________________________
>>>>>> Dev mailing list
>>>>>> [email protected]
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Thanks & Regards,
>>>>> Prabath
>>>>>
>>>>> Mobile : +94 71 809 6732
>>>>>
>>>>> http://blog.facilelogin.com
>>>>> http://RampartFAQ.com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Thanks & Regards,
>>>> Prabath
>>>>
>>>> Mobile : +94 71 809 6732
>>>>
>>>> http://blog.facilelogin.com
>>>> http://RampartFAQ.com
>>>>
>>>
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Best Regards,
>> Chamath Gunawardana
>> Technical Lead; WSO2 Inc.
>> Mobile : +94776322240
>>
>
>
>
> --
>
> Dharshana Warusavitharana
> Senior Software Engineer , Test Automation
> WSO2 Inc. http://wso2.com
> email : [email protected] <[email protected]>
> cell : +94772202595
> blog : http://dharshanaw.blogspot.com
>
> lean . enterprise . middleware
>



-- 
Best Regards,
Chamath Gunawardana
Technical Lead; WSO2 Inc.
Mobile : +94776322240
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to