<br>Hello,<br><br>I was facing some problems when running test suite.
Attached are the logs. I made .xcapclient.ini and put in home folder in which there are two
accounts for bob and alice only. Where as my OpenXCAP server have
database openxcap and contains two table and have alice info in
subscribers table. So what other manipulations to be done in order to run
these tests successful.<br>
<br>./test.py<br><br>test400_2 (test_errors.ErrorsTest) ... FAIL<br>test404 (test_errors.ErrorsTest) ... FAIL<br>test405 (test_errors.ErrorsTest) ... FAIL<br>test409 (test_errors.ErrorsTest) ... FAIL<br>test_gibberish (test_errors.ErrorsTest) ... FAIL<br>


test_delete (test_attribute.AttributeTest) ... FAIL<br>test_get (test_attribute.AttributeTest) ... FAIL<br>test_put (test_attribute.AttributeTest) ... FAIL<br>test_has_global (test_global.TestGlobal) ... FAIL<br>test_no_global (test_global.TestGlobal) ... ok<br>


test_schema (test_xcap_caps.XCAPCaps) ... FAIL<br>test_ns_bindings (test_nsbindings.NSBindingsTest) ... FAIL<br>test_pidf_manipulation (test_pidf.PIDFTest) ... FAIL<br>test_conditional_GET (test_etags.ETagTest) ... FAIL<br>


test_conditional_PUT (test_etags.ETagTest) ... FAIL<br>test_conditional_GET (test_etags.ETagTest2) ... FAIL<br>test_conditional_PUT (test_etags.ETagTest2) ... FAIL<br>test_etag_parsing (test_etags.ETagTest2) ... FAIL<br>

test_errors (test_fragment.FragmentTest) ... FAIL<br>
test_success (test_fragment.FragmentTest) ... FAIL<br>test_global_auth (test_auth.AuthTest_org_<div>openmobilealliance_pres_rules) ... ok<br>test_users_auth (test_auth.AuthTest_org_openmobilealliance_pres_rules) ... FAIL<br>
test_global_auth (test_auth.AuthTest_pidf_manipulation) ... ok<br>

test_users_auth (test_auth.AuthTest_pidf_manipulation) ... FAIL<br>test_global_auth (test_auth.AuthTest_pres_rules) ... ok<br>test_users_auth (test_auth.AuthTest_pres_rules) ... FAIL<br>test_global_auth (test_auth.AuthTest_resource_lists) ... ok<br>


test_users_auth (test_auth.AuthTest_resource_lists) ... FAIL<br>test_global_auth (test_auth.AuthTest_rls_services) ... ok<br>test_users_auth (test_auth.AuthTest_rls_services) ... FAIL<br>test_global_auth (test_auth.AuthTest_test_app) ... ok<br>


test_users_auth (test_auth.AuthTest_test_app) ... FAIL<br>test_global_auth (test_auth.AuthTest_watchers) ... ok<br>test_users_auth (test_auth.AuthTest_watchers) ... FAIL<br>test_global_auth (test_auth.AuthTest_xcap_caps) ... ok<br>


test_users_auth (test_auth.AuthTest_xcap_caps) ... FAIL<br>test_operations (test_resourcelists.DocumentTest) ... FAIL<br>test_operations (test_rlsservices.DocumentTest) ... FAIL<br>Testing different ways of inserting an element as described in examples from Section 8.2.3 ... FAIL<br>


Testing PUT requests of form &#39;*[@att=&quot;some&quot;]&#39; which require looking into body of PUT ... FAIL<br>test_replacement (test_element_put.PutElementTest) ... FAIL<br>test_delete (test_element.ElementTest) ... FAIL<br>


test_get (test_element.ElementTest) ... FAIL<br>test_put_error (test_element.ElementTest) ... FAIL<br>test_get (test_watchers.Test) ... FAIL<br><br><br>======================================================================<br>


FAIL: test_pidf_manipulation (test_presrules.PresenceRulesTest)<br>----------------------------------------------------------------------<br>Traceback (most recent call last):<br>  File &quot;/usr/local/lib/python2.6/dist-packages/xcap/test/test_presrules.py&quot;, line 34, in test_pidf_manipulation<br>


    self.getputdelete(&#39;pres-rules&#39;, pres_rules_xml, &#39;application/auth-policy+xml&#39;)<br>  File &quot;/usr/local/lib/python2.6/dist-packages/xcap/test/common.py&quot;, line 206, in getputdelete<br>    self.delete(application, status=[200,404], client=client)<br>


  File &quot;/usr/local/lib/python2.6/dist-packages/xcap/test/common.py&quot;, line 186, in delete<br>    self.assertStatus(r, status)<br>  File &quot;/usr/local/lib/python2.6/dist-packages/xcap/test/common.py&quot;, line 82, in assertStatus<br>


    raise self.failureException(msg)<br>AssertionError: Status (405) not in [200, 404]<br><br>======================================================================<br>FAIL: test400_1 (test_errors.ErrorsTest)<br>----------------------------------------------------------------------<br>


Traceback (most recent call last):<br>  File &quot;/usr/local/lib/python2.6/dist-packages/xcap/test/test_errors.py&quot;, line 34, in test400_1<br>    self.get(&#39;resource-lists&#39;, &#39;/resource-lists/list[@name=&quot;friends&quot;]/external[]/@anchor&#39;, status=400)<br>


  File &quot;/usr/local/lib/python2.6/dist-packages/xcap/test/common.py&quot;, line 147, in get<br>    self.assertStatus(r, status)<br>  File &quot;/usr/local/lib/python2.6/dist-packages/xcap/test/common.py&quot;, line 76, in assertStatus<br>


    raise self.failureException(msg)<br>AssertionError: Status (404) != 400<br><br>======================================================================<br>FAIL: test400_2 (test_errors.ErrorsTest)<br>----------------------------------------------------------------------<br>


Traceback (most recent call last):<br>  File &quot;/usr/local/lib/python2.6/dist-packages/xcap/test/test_errors.py&quot;, line 39, in test400_2<br>    &#39;resource-lists/users/<a href="http://alice@example.com/index.xml%7E%7E" target="_blank">alice@example.com/index.xml~~</a>&#39;)<br>


  File &quot;/usr/local/lib/python2.6/dist-packages/xcap/test/test_errors.py&quot;, line 29, in check<br>    self.assertEqual(r.status, code)<br>AssertionError: 404 != 400<br><br>======================================================================<br>


FAIL: test404 (test_errors.ErrorsTest)<br>----------------------------------------------------------------------<br>Traceback (most recent call last):<br>  File &quot;/usr/local/lib/python2.6/dist-packages/xcap/test/test_errors.py&quot;, line 43, in test404<br>


    self.check(404, &#39;XCAP Root&#39;, &#39;&#39;)<br>  File &quot;/usr/local/lib/python2.6/dist-packages/xcap/test/test_errors.py&quot;, line 30, in check<br>    self.assertInBody(r, message)<br>  File &quot;/usr/local/lib/python2.6/dist-packages/xcap/test/common.py&quot;, line 123, in assertInBody<br>


    raise self.failureException(msg)<br>AssertionError: &#39;XCAP Root&#39; not in body<br>body: &#39;&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML 2.0//EN&quot;&gt;\n&lt;html&gt;&lt;head&gt;\n&lt;title&gt;404 Not Found&lt;/title&gt;\n&lt;/head&gt;&lt;body&gt;\n&lt;h1&gt;Not
Found&lt;/h1&gt;\n&lt;p&gt;The requested URL /xcap-root/ was not found
on this server.&lt;/p&gt;\n&lt;hr&gt;\n&lt;address&gt;Apache Server at localhost Port 80&lt;/address&gt;\n&lt;/body&gt;&lt;/html&gt;\n&#39;<br>
<br>======================================================================<br>FAIL: test405 (test_errors.ErrorsTest)<br>----------------------------------------------------------------------<br>Traceback (most recent call last):<br>


  File &quot;/usr/local/lib/python2.6/dist-packages/xcap/test/test_errors.py&quot;, line 60, in test405<br>    self.assertEqual(r.status, 405)<br>AssertionError: 411 != 405<br><br>======================================================================<br>


FAIL: test409 (test_errors.ErrorsTest)<br>----------------------------------------------------------------------<br>Traceback (most recent call last):<br>  File &quot;/usr/local/lib/python2.6/dist-packages/xcap/test/test_errors.py&quot;, line 24, in test409<br>


    self.put(&#39;resource-lists&#39;, &#39;xxx&#39;, status=409)<br>  File &quot;/usr/local/lib/python2.6/dist-packages/xcap/test/common.py&quot;, line 161, in put<br>    self.assertStatus(r_put, status)<br>  File &quot;/usr/local/lib/python2.6/dist-packages/xcap/test/common.py&quot;, line 76, in assertStatus<br>


    raise self.failureException(msg)<br>AssertionError: Status (405) != 409<br><br>======================================================================<br>FAIL: test_gibberish (test_errors.ErrorsTest)<br>----------------------------------------------------------------------<br>


Traceback (most recent call last):<br>  File &quot;/usr/local/lib/python2.6/dist-packages/xcap/test/test_errors.py&quot;, line 21, in test_gibberish<br>    assert &#39;400 Bad Request&#39; in response, `response`<br>AssertionError: &#39;&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML 2.0//EN&quot;&gt;\n&lt;html&gt;&lt;head&gt;\n&lt;title&gt;501 Method Not Implemented&lt;/title&gt;\n&lt;/head&gt;&lt;body&gt;\n&lt;h1&gt;Method
Not Implemented&lt;/h1&gt;\n&lt;p&gt; to /index.html not
supported.&lt;br /&gt;\n&lt;/p&gt;\n&lt;hr&gt;\n&lt;address&gt;Apache/2.2.12 (Ubuntu) Server at 127.0.0.1 Port 80&lt;/address&gt;\n&lt;/body&gt;&lt;/html&gt;\n&#39;<br>
<br>======================================================================<br>FAIL: test_delete (test_attribute.AttributeTest)<br>----------------------------------------------------------------------<br>Traceback (most recent call last):<br>


  File &quot;/usr/local/lib/python2.6/dist-packages/xcap/test/test_attribute.py&quot;, line 42, in test_delete<br>    self.put(&#39;resource-lists&#39;, resource_list_xml)<br>  File &quot;/usr/local/lib/python2.6/dist-packages/xcap/test/common.py&quot;, line 161, in put<br>


    self.assertStatus(r_put, status)<br>  File &quot;/usr/local/lib/python2.6/dist-packages/xcap/test/common.py&quot;, line 82, in assertStatus<br>    raise self.failureException(msg)<br>AssertionError: Status (405) not in [200, 201]<br>


<br>-------------- cont d -------------<br><br></div><br>-- <br>Regards<br>Jawad Hussain<br><br>