[OpenSIPS-Users] Help to resolve Openxcap test suite errors

Nethra Chander netchander at gmail.com
Mon Jun 13 15:26:53 CEST 2011


Hello,
I have failures reported while executing the test suite of openxcap. Please
find attached the file with the test results.

I have openxcap installed in one box while opensips and opensips-mi-proxy
are installed in another machine.
I dont have mi_xmlrpc module loaded in the opensips server.

The log file in the openxcap server has below errors:

openxcap[22941]: Starting factory <twisted.web.xmlrpc._QueryFactory instance
at 0x23489e0>
openxcap[22941]: error: Error while notifying OpenSIPS management interface
for user 1122 at xxx.com: <Fault -500: 'Command (refreshWatchers) processing
faile$
openxcap[22941]: Stopping factory <twisted.web.xmlrpc._QueryFactory instance
at 0x23489e0>
openxcap[22941]: Starting factory <twisted.web.xmlrpc._QueryFactory instance
at 0x2336998>


While the log file at the opensips end shows the below errors

 opensips-mi-proxy[28624]: Got XMLRPC request from xx.xx.xx.xx:
refreshWatchers (sip:1122 at xxx.com presence 0)
/sbin/opensips[28592]: ERROR:presence:mi_refreshWatchers: no rules doc found
for the user
 /sbin/opensips[28592]: ERROR:mi_datagram:mi_datagram_server: failed to
process the command
 opensips-mi-proxy[28624]: error: Error while processing command
refreshWatchers (sip:1122 at xxx.com presence 0): 500 command failed


Please, can some one assist me in resolving these errors. I guess I am
missing some configuration.
Appreciate any assistance.

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110613/3eb92b90/attachment.htm>
-------------- next part --------------
test_operations1 (test_resourcelists.DocumentTest) ... FAIL
test_operations2 (test_resourcelists.DocumentTest) ... FAIL
test_operations3 (test_resourcelists.DocumentTest) ... ok
test_operations4 (test_resourcelists.DocumentTest) ... ERROR
test_ns_bindings (test_nsbindings.NSBindingsTest) ... ok
test_has_global (test_global.TestGlobal) ... ok
test_no_global (test_global.TestGlobal) ... ok
test_conditional_GET (test_etags.ETagTest) ... ok
test_conditional_PUT (test_etags.ETagTest) ... ok
test_conditional_PUT_2 (test_etags.ETagTest) ... ok
test_conditional_GET (test_etags.ETagTest2) ... ok
test_conditional_PUT (test_etags.ETagTest2) ... ok
test_etag_parsing (test_etags.ETagTest2) ... ok
test_get (test_watchers.Test) ... ok
test_schema (test_xcap_caps.XCAPCaps) ... ok
test_operations1 (test_rlsservices.DocumentTest) ... ok
test_operations2 (test_rlsservices.DocumentTest) ... ok
test_operations3 (test_rlsservices.DocumentTest) ... ok
test_operations4 (test_rlsservices.DocumentTest) ... ok
test_global_auth (test_auth.AuthTest_org_openmobilealliance_pres_rules) ... ok
test_users_auth (test_auth.AuthTest_org_openmobilealliance_pres_rules) ... ok
test_global_auth (test_auth.AuthTest_pidf_manipulation) ... ok
test_users_auth (test_auth.AuthTest_pidf_manipulation) ... ok
test_global_auth (test_auth.AuthTest_pres_rules) ... ok
test_users_auth (test_auth.AuthTest_pres_rules) ... ok
test_global_auth (test_auth.AuthTest_resource_lists) ... ok
test_users_auth (test_auth.AuthTest_resource_lists) ... ok
test_global_auth (test_auth.AuthTest_rls_services) ... ok
test_users_auth (test_auth.AuthTest_rls_services) ... ok
test_global_auth (test_auth.AuthTest_test_app) ... ok
test_users_auth (test_auth.AuthTest_test_app) ... ok
test_global_auth (test_auth.AuthTest_watchers) ... ok
test_users_auth (test_auth.AuthTest_watchers) ... ok
test_global_auth (test_auth.AuthTest_xcap_caps) ... ok
test_users_auth (test_auth.AuthTest_xcap_caps) ... ok
Testing different ways of inserting an element as described in examples from Section 8.2.3 ... ok
Testing PUT requests of form '*[@att="some"]' which require looking into body of PUT ... ok
test_replacement (test_element_put.PutElementTest) ... ok
test_delete (test_attribute.AttributeTest) ... FAIL
test_get (test_attribute.AttributeTest) ... FAIL
test_put (test_attribute.AttributeTest) ... FAIL
test_delete (test_element.ElementTest) ... FAIL
test_get (test_element.ElementTest) ... FAIL
test_put_error (test_element.ElementTest) ... FAIL
test_xpath10_valid (test_xpath.XPathTest) ... ok
test_xpath11_valid (test_xpath.XPathTest) ... ok
test_xpath12_valid (test_xpath.XPathTest) ... ok
test_xpath1_valid (test_xpath.XPathTest) ... ok
test_xpath2_invalid (test_xpath.XPathTest) ... ok
test_xpath3_invalid (test_xpath.XPathTest) ... ok
test_xpath4_invalid (test_xpath.XPathTest) ... ok
test_xpath5_invalid (test_xpath.XPathTest) ... ok
test_xpath6_invalid (test_xpath.XPathTest) ... ok
test_xpath7_invalid (test_xpath.XPathTest) ... ok
test_xpath8_invalid (test_xpath.XPathTest) ... ok
test_xpath9_valid (test_xpath.XPathTest) ... ok
test_pidf_manipulation (test_presrules.PresenceRulesTest) ... ok
test400_1 (test_errors.ErrorsTest) ... ok
test400_2 (test_errors.ErrorsTest) ... ok
test404 (test_errors.ErrorsTest) ... ok
test405 (test_errors.ErrorsTest) ... ok
test409 (test_errors.ErrorsTest) ... ok
test_gibberish (test_errors.ErrorsTest) ... ok
test_pidf_manipulation (test_pidf.PIDFTest) ... ok
test_errors (test_fragment.FragmentTest) ... ok
test_success (test_fragment.FragmentTest) ... ok

======================================================================
ERROR: test_operations4 (test_resourcelists.DocumentTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/xcap/test/test_resourcelists.py", line 122, in test_operations4
    [name] = etree.fromstring(resource_lists_xml_non_unique_list).xpath(field[0])
IndexError: list index out of range

======================================================================
FAIL: test_operations1 (test_resourcelists.DocumentTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/xcap/test/test_resourcelists.py", line 107, in test_operations1
    'application/resource-lists+xml')
  File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line 212, in getputdelete
    self.put(application, document, status=201, content_type_in_GET=content_type, client=client)
  File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line 165, in put
    self.assertStatus(r_put, status)
  File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line 80, in assertStatus
    raise self.failureException(msg)
AssertionError: Status (409) != 201

======================================================================
FAIL: test_operations2 (test_resourcelists.DocumentTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/xcap/test/test_resourcelists.py", line 111, in test_operations2
    'application/resource-lists+xml')
  File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line 212, in getputdelete
    self.put(application, document, status=201, content_type_in_GET=content_type, client=client)
  File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line 165, in put
    self.assertStatus(r_put, status)
  File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line 80, in assertStatus
    raise self.failureException(msg)
AssertionError: Status (409) != 201

======================================================================
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 47, in test_delete
    self.put('resource-lists', resource_list_xml)
  File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line 165, in put
    self.assertStatus(r_put, status)
  File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line 86, in assertStatus
    raise self.failureException(msg)
AssertionError: Status (409) not in [200, 201]

======================================================================
FAIL: test_get (test_attribute.AttributeTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/xcap/test/test_attribute.py", line 27, in test_get
    self.put('resource-lists', resource_list_xml)
  File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line 165, in put
    self.assertStatus(r_put, status)
  File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line 86, in assertStatus
    raise self.failureException(msg)
AssertionError: Status (409) not in [200, 201]

======================================================================
FAIL: test_put (test_attribute.AttributeTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/xcap/test/test_attribute.py", line 56, in test_put
    self.put('resource-lists', resource_list_xml)
  File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line 165, in put
    self.assertStatus(r_put, status)
  File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line 86, in assertStatus
    raise self.failureException(msg)
AssertionError: Status (409) not in [200, 201]

======================================================================
FAIL: test_delete (test_element.ElementTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/xcap/test/test_element.py", line 70, in test_delete
    self.put('resource-lists', xml)
  File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line 165, in put
    self.assertStatus(r_put, status)
  File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line 86, in assertStatus
    raise self.failureException(msg)
AssertionError: Status (409) not in [200, 201]

======================================================================
FAIL: test_get (test_element.ElementTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/xcap/test/test_element.py", line 45, in test_get
    self.put('resource-lists', xml)
  File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line 165, in put
    self.assertStatus(r_put, status)
  File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line 86, in assertStatus
    raise self.failureException(msg)
AssertionError: Status (409) not in [200, 201]

======================================================================
FAIL: test_put_error (test_element.ElementTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/xcap/test/test_element.py", line 96, in test_put_error
    self.put('resource-lists', xml)
  File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line 165, in put
    self.assertStatus(r_put, status)
  File "/usr/local/lib/python2.6/dist-packages/xcap/test/common.py", line 86, in assertStatus
    raise self.failureException(msg)
AssertionError: Status (409) not in [200, 201]

----------------------------------------------------------------------
Ran 66 tests in 4.913s

FAILED (failures=8, errors=1)


More information about the Users mailing list