[OpenSIPS-Users] Running Openxcap test suite
Jawad hussain
jawad.ssuet at gmail.com
Wed Sep 30 11:18:02 CEST 2009
Hello,
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.
./test.py
test400_2 (test_errors.ErrorsTest) ... FAIL
test404 (test_errors.ErrorsTest) ... FAIL
test405 (test_errors.ErrorsTest) ... FAIL
test409 (test_errors.ErrorsTest) ... FAIL
test_gibberish (test_errors.ErrorsTest) ... FAIL
test_delete (test_attribute.AttributeTest) ... FAIL
test_get (test_attribute.AttributeTest) ... FAIL
test_put (test_attribute.AttributeTest) ... FAIL
test_has_global (test_global.TestGlobal) ... FAIL
test_no_global (test_global.TestGlobal) ... ok
test_schema (test_xcap_caps.XCAPCaps) ... FAIL
test_ns_bindings (test_nsbindings.NSBindingsTest) ... FAIL
test_pidf_manipulation (test_pidf.PIDFTest) ... FAIL
test_conditional_GET (test_etags.ETagTest) ... FAIL
test_conditional_PUT (test_etags.ETagTest) ... FAIL
test_conditional_GET (test_etags.ETagTest2) ... FAIL
test_conditional_PUT (test_etags.ETagTest2) ... FAIL
test_etag_parsing (test_etags.ETagTest2) ... FAIL
test_errors (test_fragment.FragmentTest) ... FAIL
test_success (test_fragment.FragmentTest) ... FAIL
test_global_auth (test_auth.AuthTest_org_openmobilealliance_pres_rules) ...
ok
test_users_auth (test_auth.AuthTest_org_openmobilealliance_pres_rules) ...
FAIL
test_global_auth (test_auth.AuthTest_pidf_manipulation) ... ok
test_users_auth (test_auth.AuthTest_pidf_manipulation) ... FAIL
test_global_auth (test_auth.AuthTest_pres_rules) ... ok
test_users_auth (test_auth.AuthTest_pres_rules) ... FAIL
test_global_auth (test_auth.AuthTest_resource_lists) ... ok
test_users_auth (test_auth.AuthTest_resource_lists) ... FAIL
test_global_auth (test_auth.AuthTest_rls_services) ... ok
test_users_auth (test_auth.AuthTest_rls_services) ... FAIL
test_global_auth (test_auth.AuthTest_test_app) ... ok
test_users_auth (test_auth.AuthTest_test_app) ... FAIL
test_global_auth (test_auth.AuthTest_watchers) ... ok
test_users_auth (test_auth.AuthTest_watchers) ... FAIL
test_global_auth (test_auth.AuthTest_xcap_caps) ... ok
test_users_auth (test_auth.AuthTest_xcap_caps) ... FAIL
test_operations (test_resourcelists.DocumentTest) ... FAIL
test_operations (test_rlsservices.DocumentTest) ... FAIL
Testing different ways of inserting an element as described in examples from
Section 8.2.3 ... FAIL
Testing PUT requests of form '*[@att="some"]' which require looking into
body of PUT ... FAIL
test_replacement (test_element_put.PutElementTest) ... FAIL
test_delete (test_element.ElementTest) ... FAIL
test_get (test_element.ElementTest) ... FAIL
test_put_error (test_element.ElementTest) ... FAIL
test_get (test_watchers.Test) ... FAIL
======================================================================
FAIL: test_pidf_manipulation (test_presrules.PresenceRulesTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/xcap/test/test_presrules.py",
line 34, in test_pidf_manipulation
self.getputdelete('pres-rules', pres_rules_xml,
'application/auth-policy+xml')
File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line
206, in getputdelete
self.delete(application, status=[200,404], client=client)
File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line
186, in delete
self.assertStatus(r, status)
File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line
82, in assertStatus
raise self.failureException(msg)
AssertionError: Status (405) not in [200, 404]
======================================================================
FAIL: test400_1 (test_errors.ErrorsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/xcap/test/test_errors.py",
line 34, in test400_1
self.get('resource-lists',
'/resource-lists/list[@name="friends"]/external[]/@anchor', status=400)
File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line
147, in get
self.assertStatus(r, status)
File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line
76, in assertStatus
raise self.failureException(msg)
AssertionError: Status (404) != 400
======================================================================
FAIL: test400_2 (test_errors.ErrorsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/xcap/test/test_errors.py",
line 39, in test400_2
'resource-lists/users/alice at example.com/index.xml~~<http://alice@example.com/index.xml%7E%7E>
')
File "/usr/local/lib/python2.6/dist-packages/xcap/test/test_errors.py",
line 29, in check
self.assertEqual(r.status, code)
AssertionError: 404 != 400
======================================================================
FAIL: test404 (test_errors.ErrorsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/xcap/test/test_errors.py",
line 43, in test404
self.check(404, 'XCAP Root', '')
File "/usr/local/lib/python2.6/dist-packages/xcap/test/test_errors.py",
line 30, in check
self.assertInBody(r, message)
File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line
123, in assertInBody
raise self.failureException(msg)
AssertionError: 'XCAP Root' not in body
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'
======================================================================
FAIL: test405 (test_errors.ErrorsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/xcap/test/test_errors.py",
line 60, in test405
self.assertEqual(r.status, 405)
AssertionError: 411 != 405
======================================================================
FAIL: test409 (test_errors.ErrorsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/xcap/test/test_errors.py",
line 24, in test409
self.put('resource-lists', 'xxx', status=409)
File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line
161, in put
self.assertStatus(r_put, status)
File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line
76, in assertStatus
raise self.failureException(msg)
AssertionError: Status (405) != 409
======================================================================
FAIL: test_gibberish (test_errors.ErrorsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/xcap/test/test_errors.py",
line 21, in test_gibberish
assert '400 Bad Request' in response, `response`
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'
======================================================================
FAIL: test_delete (test_attribute.AttributeTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/xcap/test/test_attribute.py",
line 42, in test_delete
self.put('resource-lists', resource_list_xml)
File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line
161, in put
self.assertStatus(r_put, status)
File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line
82, in assertStatus
raise self.failureException(msg)
AssertionError: Status (405) not in [200, 201]
-------------- cont d -------------
--
Regards
Jawad Hussain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20090930/6d107284/attachment-0001.htm
More information about the Users
mailing list