An error occurred fetching the project authors.
  1. 12 Dec, 2002 1 commit
    • Barry Warsaw's avatar
      Get rid of the differences between forking off the zeo server for NT · bc0fdca4
      Barry Warsaw authored
      and Unix.  We actually use the Windows code as the basis for the new
      approach so there's some hope that this will actually work on Windows
      <wink>.  Tim will verify once the checkins are finished.
      
      start_zeo_server(): Is now the blessed way of starting a ZEO server,
      and it primarily takes a ZConfig storage section string as its
      argument.  This it writes to a temp file and passes -C to the
      zeoserver.py script, which parses that temp file and creates the
      underlying storage.  zeoserver.py is responsible for deleting the temp
      file.
      
      zeoserver opens an `admin' port which is used to quit the server, but
      the protocol has been expanded slightly.  The first time the admin
      port is connected to, an ack character is sent from zeoserver.  This
      is necessary to coordinate the tests so that they are assured the
      server is running and responding before it tries to do more.
      Otherwise, some tests were vulnerable to timing bugs where the
      shutdown connect happened before the server was ready to accept them.
      
      The second connect exits the server process just like before.
      
      start_zeo_server() returns a 3-tuple.  The first element is the
      (host,port) tuple of the ZEO server, the second is the (host,port)
      tuple of the admin socket, and the third is the pid of the spawned
      child process.
      
      shutdown_zeo_server(): The blessed way to shut down a zeoserver.py
      process.  Takes an admin (host,port) tuple, connects to that and
      writes a log entry.
      bc0fdca4
  2. 10 Dec, 2002 1 commit
  3. 26 Sep, 2002 2 commits
  4. 13 Sep, 2002 2 commits
  5. 29 Aug, 2002 1 commit
  6. 11 Jun, 2002 1 commit
  7. 15 Mar, 2002 1 commit
  8. 12 Feb, 2002 1 commit
  9. 21 Jan, 2002 1 commit
  10. 11 Jan, 2002 2 commits
  11. 02 Nov, 2001 1 commit
  12. 28 Sep, 2001 1 commit
  13. 07 Sep, 2001 1 commit
  14. 17 Aug, 2001 1 commit
    • Jeremy Hylton's avatar
      Update ZEO connection tests to run on Windows · c67fd0f1
      Jeremy Hylton authored
      forker.py:
          Extend start_zeo_server() on Windows with arg that specifies port,
          which is used to restart the server on the same port.
      
          Remove unnecessary imports.
      
          Set PYTHONPATH for the spawned script.
      
      testZEO.py:
          Refactor ConnectionTests into abstract base class with two platform-
          specific subclasses.
      
          Add goofy test_suite() function, which is goofy because I can't figure
          out how to use unittest any other way.
      
      winserver.py:
          Keep track of storage in ZEOTestServer so that its close() method can be
          called when the server exits.
      c67fd0f1
  15. 16 Aug, 2001 1 commit
    • Jeremy Hylton's avatar
      Add rudiments of a ZEO test framework for Windows · 0be6d6ea
      Jeremy Hylton authored
      winserver.py: A small script that runs a ZEO StorageServer and a ZEOTestServer.
          The ZEOTestServer is used to kill the StorageServer during a unit test's
          teardown phases.  As soon as a client connects to that server, it exits
          the process.
      
      forker.py: Now forks and spawns, depending on os.
          XXX This needs to be cleaned up a lot, since the interfaces on Windows and
          Unix are nothing alike.
      
      testZEO.py:  Add WindowsGenericTests and WindowsZEOFileStorageTests.
          These test cases use the Windows-specific forker interface.  They also
          use getStorageInfo() to describe the storage, rather than getStorage()
          to create the storage.  This is necessary because the storage instance
          is created in a separate process.
      0be6d6ea
  16. 09 May, 2001 2 commits
  17. 08 May, 2001 1 commit
  18. 01 May, 2001 1 commit
  19. 27 Apr, 2001 1 commit