<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 '*[@att="some"]' 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 "/usr/local/lib/python2.6/dist-packages/xcap/test/test_presrules.py", line 34, in test_pidf_manipulation<br>
self.getputdelete('pres-rules', pres_rules_xml, 'application/auth-policy+xml')<br> File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line 206, in getputdelete<br> self.delete(application, status=[200,404], client=client)<br>
File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line 186, in delete<br> self.assertStatus(r, status)<br> File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", 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 "/usr/local/lib/python2.6/dist-packages/xcap/test/test_errors.py", line 34, in test400_1<br> self.get('resource-lists', '/resource-lists/list[@name="friends"]/external[]/@anchor', status=400)<br>
File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line 147, in get<br> self.assertStatus(r, status)<br> File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", 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 "/usr/local/lib/python2.6/dist-packages/xcap/test/test_errors.py", line 39, in test400_2<br> 'resource-lists/users/<a href="http://alice@example.com/index.xml%7E%7E" target="_blank">alice@example.com/index.xml~~</a>')<br>
File "/usr/local/lib/python2.6/dist-packages/xcap/test/test_errors.py", 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 "/usr/local/lib/python2.6/dist-packages/xcap/test/test_errors.py", line 43, in test404<br>
self.check(404, 'XCAP Root', '')<br> File "/usr/local/lib/python2.6/dist-packages/xcap/test/test_errors.py", line 30, in check<br> self.assertInBody(r, message)<br> File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line 123, in assertInBody<br>
raise self.failureException(msg)<br>AssertionError: 'XCAP Root' not in body<br>body: '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>404 Not Found</title>\n</head><body>\n<h1>Not
Found</h1>\n<p>The requested URL /xcap-root/ was not found
on this server.</p>\n<hr>\n<address>Apache Server at localhost Port 80</address>\n</body></html>\n'<br>
<br>======================================================================<br>FAIL: test405 (test_errors.ErrorsTest)<br>----------------------------------------------------------------------<br>Traceback (most recent call last):<br>
File "/usr/local/lib/python2.6/dist-packages/xcap/test/test_errors.py", 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 "/usr/local/lib/python2.6/dist-packages/xcap/test/test_errors.py", line 24, in test409<br>
self.put('resource-lists', 'xxx', status=409)<br> File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line 161, in put<br> self.assertStatus(r_put, status)<br> File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", 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 "/usr/local/lib/python2.6/dist-packages/xcap/test/test_errors.py", line 21, in test_gibberish<br> assert '400 Bad Request' in response, `response`<br>AssertionError: '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<title>501 Method Not Implemented</title>\n</head><body>\n<h1>Method
Not Implemented</h1>\n<p> to /index.html not
supported.<br />\n</p>\n<hr>\n<address>Apache/2.2.12 (Ubuntu) Server at 127.0.0.1 Port 80</address>\n</body></html>\n'<br>
<br>======================================================================<br>FAIL: test_delete (test_attribute.AttributeTest)<br>----------------------------------------------------------------------<br>Traceback (most recent call last):<br>
File "/usr/local/lib/python2.6/dist-packages/xcap/test/test_attribute.py", line 42, in test_delete<br> self.put('resource-lists', resource_list_xml)<br> File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line 161, in put<br>
self.assertStatus(r_put, status)<br> File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", 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>