lp:~vila/bzr/local-test-server

Created by Vincent Ladeuil and last modified
Get this branch:
bzr branch lp:~vila/bzr/local-test-server
Only Vincent Ladeuil can upload to this branch. If you are Vincent Ladeuil please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Vincent Ladeuil
Project:
Bazaar
Status:
Experimental

Recent revisions

66. By Vincent Ladeuil

Catchup with bzr.dev.

* tests/test_test_server.py:
(load_tests): Catch up with bzr.dev new test parametrization
policy.

* tests/test_server.py:
(load_tests): Catch up with bzr.dev new test parametrization
policy.

* tests/test_config.py:
(load_tests): Catch up with bzr.dev new test parametrization
policy.

* test_server.py:
(get_test_permutations): Use ImportError not DependencyNotPresent.

65. By Vincent Ladeuil

Test suite passing for python-2.5 and 2.6.

* bin/pyftpdlib:
(BZRConformingFTPHandler): Tweak the server to comply with bzr
idiosyncrasies.

64. By Vincent Ladeuil

Fix typo.

* config.py:
(Config.__init__): Oops, use self.name, not name.

63. By Vincent Ladeuil

Add pyftpdlib support, not all bzr tests passing.

* tests/test_utils.py:
(full_scenarios): Add scenario for pyftpdlib.

* test_server.py:
(PyftpdlibFeature): New class.
(Muddleftpd.tearDown): Oops, forgot to delete the symlink.
(Pyftpdlib): Test server serving '/' for anonymous ftp.

* server.py:
(Server._start_by_spawning): Factored out from Vsftpd._start.
(Vsftpd._start): Simplified.
(Pyftpdlib): Spawn a pyftpdlib FTP server.

* configs/pyftpdlib.conf:
Rough configuration options.

* config.py:
(Pyftpdlib): New class.

* bin/pyftpdlib:
Wrapper to start a pyftpdlib FTP server.

62. By Vincent Ladeuil

Tweak required dirs definitions.

* config.py:
(Config.__init__): All 'work' sub-directories are define in the
same way. Use a tuple instead of a dict so that daughter classes
can add required dires more easily and force the name.

61. By Vincent Ladeuil

Cleanup.

* config.py:
(base_dir): Deleted, not used anymore.

60. By Vincent Ladeuil

Get rid of the silly parameter order for server constructor.

* server.py:
(Server.__init__): Swap parameter order since *all* daughter
classes were swapping them anyway.

59. By Vincent Ladeuil

Simply Config classes definitions.

* tests/test_config.py:
(TestBaseConfig.test_ensure_required_dirs_exist): Update tests.

* config.py:
(Config.__init__): Slightly rework parameter handling to simplify
daughter classes.

58. By Vincent Ladeuil

Make the test suite pass, modulo relaxing constraints in bzr.dev (not yet
submitted to bzr core).

* test_server.py:
(LocalTestServer._build_symlink_under_data_dir): Pused up from
LocalHTTPTestServer.
(LocalTestServer.get_url, LocalHTTPTestServer.get_url): Moved from
LocalTestServer, this had nothing to do there since it's using
_symlink_name .
(Muddleftpd): Now serve files throuhg a symlink under data dir as
http servers.
(Muddleftpd._build_base_url): Use anonymous as a user since we
can.
(Muddleftpd.get_url): Point to the symmlink.

* configs/muddleftpd.conf:
Tweaks to allow anonymous login and grant him all rights.

57. By Vincent Ladeuil

Test server test passing.

* tests/test_utils.py:
(full_scenarios): Complete muddleftpd definition.

* test_server.py:
(MuddleftpdFeature, Muddleftpd): New classes.
(get_test_permutations): Add muddleftpd permutation.

* server.py:
(Server._kill_server): Add docstring, return True if zombie
catched.
(Muddleftpd.is_installed): We need ftpwho too.
(Muddleftpd.get_pid): 'ftpwho -p' is the reliable way to get the
pid.
(Muddleftpd._start): Use get_pid() to ensure the server was started.
(Muddleftpd._stop): There is no pidfile.

* configs/muddleftpd.conf:
(scratchfile): Mention that this more or less implies that we run
a single server only.

Branch metadata

Branch format:
Branch format 6
Repository format:
Bazaar pack repository format 1 (needs bzr 0.92)
This branch contains Public information 
Everyone can see this information.

Subscribers

No subscribers.