commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue-common/src/rpc/test server.py test.py


From: Jan Ischebeck
Subject: gnue-common/src/rpc/test server.py test.py
Date: Wed, 15 Oct 2003 10:01:37 -0400

CVSROOT:        /cvsroot/gnue
Module name:    gnue-common
Branch:         
Changes by:     Jan Ischebeck <address@hidden>  03/10/15 10:01:37

Modified files:
        src/rpc/test   : server.py test.py 

Log message:
        update test suite for pyro rpc driver testing

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-common/src/rpc/test/server.py.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-common/src/rpc/test/test.py.diff?tr1=1.1&tr2=1.2&r1=text&r2=text

Patches:
Index: gnue-common/src/rpc/test/server.py
diff -c gnue-common/src/rpc/test/server.py:1.1 
gnue-common/src/rpc/test/server.py:1.2
*** gnue-common/src/rpc/test/server.py:1.1      Mon Sep 22 18:20:39 2003
--- gnue-common/src/rpc/test/server.py  Wed Oct 15 10:01:36 2003
***************
*** 150,155 ****
--- 150,164 ----
    print "Exporting our services via sockets..."
    transports['sockets'] =  { 'port': 8765 }
  
+ #
+ # Use the pyro interface
+ #
+ # This binds to the standart pyro port 
+ #
+ def bind_pyro():
+   print "Exporting our services via sockets..."
+   transports['pyro'] =  { 'port': 8765 }
+ 
  
  
  #
***************
*** 202,207 ****
    bind_xmlrpc()
  #  bind_pw_xmlrpc()
  # bind_sockets()
! 
    run()
  
--- 211,216 ----
    bind_xmlrpc()
  #  bind_pw_xmlrpc()
  # bind_sockets()
!   bind_pyro()
    run()
  
Index: gnue-common/src/rpc/test/test.py
diff -c gnue-common/src/rpc/test/test.py:1.1 
gnue-common/src/rpc/test/test.py:1.2
*** gnue-common/src/rpc/test/test.py:1.1        Mon Sep 22 18:20:39 2003
--- gnue-common/src/rpc/test/test.py    Wed Oct 15 10:01:37 2003
***************
*** 89,94 ****
--- 89,107 ----
  
    test('sockets',params)
  
+ 
+ #
+ # Test the pyro interface
+ #
+ # Expects server.py to be running via pyro
+ #
+ def test_pyro():
+ 
+   params = { 'host': 'localhost',
+              'port': 8766 }
+ 
+   test('pyro',params)
+ 
  def run():
    test_xmlrpc()
  
***************
*** 98,105 ****
  if __name__ == '__main__':
  
    #test_proxy()
!   
!   test_xmlrpc()
    #test_pw_xmlrpc()
    #test_sockets()
  
--- 111,118 ----
  if __name__ == '__main__':
  
    #test_proxy()
!   test_pyro()
!   #test_xmlrpc()
    #test_pw_xmlrpc()
    #test_sockets()
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]