Rev 2327: (Vincent Ladeuil) Improved infrastructure for password handling. in /home/pqm/archives/thelove/bzr/+trunk/
Canonical.com Patch Queue Manager
pqm at pqm.ubuntu.com
Fri Mar 9 00:38:32 GMT 2007
------------------------------------------------------------
revno: 2327
revision-id: pqm at pqm.ubuntu.com-20070309003830-14e9b007ad653905
parent: pqm at pqm.ubuntu.com-20070308215322-265e2cf0b768f432
parent: john at arbash-meinel.com-20070308220808-3gdl6wjgje0ydbv5
committer: Canonical.com Patch Queue Manager<pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Fri 2007-03-09 00:38:30 +0000
message:
(Vincent Ladeuil) Improved infrastructure for password handling.
modified:
bzrlib/tests/__init__.py selftest.py-20050531073622-8d0e3c8845c97a64
bzrlib/tests/blackbox/__init__.py __init__.py-20051128053524-eba30d8255e08dc3
bzrlib/tests/blackbox/test_reconcile.py test_fix.py-20060223013051-9a188e15a5ee9451
bzrlib/tests/blackbox/test_selftest.py test_selftest.py-20060123024542-01c5f1bbcb596d78
bzrlib/tests/blackbox/test_upgrade.py test_upgrade.py-20060120060132-b41e5ed2f886ad28
bzrlib/tests/test_ui.py test_ui.py-20051130162854-458e667a7414af09
bzrlib/ui/__init__.py ui.py-20050824083933-8cf663c763ba53a9
bzrlib/ui/text.py text.py-20051130153916-2e438cffc8afc478
------------------------------------------------------------
merged: john at arbash-meinel.com-20070308220808-3gdl6wjgje0ydbv5
parent: pqm at pqm.ubuntu.com-20070308215322-265e2cf0b768f432
parent: v.ladeuil+lp at free.fr-20070221144606-qoy01pue1p187j3b
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: jam-integration
timestamp: Thu 2007-03-08 16:08:08 -0600
message:
(Vincent Ladeuil) Improved infrastructure for password handling.
------------------------------------------------------------
merged: v.ladeuil+lp at free.fr-20070221144606-qoy01pue1p187j3b
parent: v.ladeuil+lp at free.fr-20070220080240-ti00ro17rxfqe86z
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: fakestdin
timestamp: Wed 2007-02-21 15:46:06 +0100
message:
Provide a better implementation for testing passwords.
* bzrlib/ui/__init__.py:
(UIFactory.get_login): Deleted.
(CLIUIFactory.get_non_echoed_password): New method allowing
overriding.
* bzrlib/tests/__init__.py:
(TestUIFactory.get_non_echoed_password): Allows password testing
without worrying about echo echo.
* bzrlib/tests/__init__.py:
(TestUIFactory): Moved from bzrlib/tests/blackbox/__init__.py
(FakeStdin): Deleted.
(TestCase.run_bzr_captured): Set and reuse ui.ui_factory.stdin.
* bzrlib/ui/text.py:
(TextUIFactory.get_login): Deleted.
(TextUIFactory.get_password): Moved to CLIUIFactory.
* bzrlib/tests/test_ui.py:
(UITests): Delete get_login tests.
(FakeTextUIFactory): Deleted. Better implementation in
TestUIFactory.
* bzrlib/tests/blackbox/__init__.py:
(TestUIFactory): Moved to bzrlib/tests/__init__.py.
------------------------------------------------------------
merged: v.ladeuil+lp at free.fr-20070220080240-ti00ro17rxfqe86z
parent: v.ladeuil+lp at free.fr-20070220075141-92289xpd1mcfmjaq
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: fakestdin
timestamp: Tue 2007-02-20 09:02:40 +0100
message:
Fix typo.
------------------------------------------------------------
merged: v.ladeuil+lp at free.fr-20070220075141-92289xpd1mcfmjaq
parent: v.ladeuil+lp at free.fr-20070219210827-qcz46is44zdpfjxr
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: fakestdin
timestamp: Tue 2007-02-20 08:51:41 +0100
message:
Take Martin's review comments into account.
------------------------------------------------------------
merged: v.ladeuil+lp at free.fr-20070219210827-qcz46is44zdpfjxr
parent: pqm at pqm.ubuntu.com-20070217025822-306d98c244b53b08
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: fakestdin
timestamp: Mon 2007-02-19 22:08:27 +0100
message:
Add a UIFactory.get_login method, fix tests.
* bzrlib/ui/text.py:
(TextUIFactory.prompt): Made usable for more than get_boolean by
deleting the [y/n] part.
(TextUIFactory.get_login): New method.
* bzrlib/ui/__init__.py:
(UIFactory.get_login): New method.
(CLIUIFactory.get_boolean): Add the [y/n] part deleted from
prompt().
* bzrlib/tests/test_ui.py:
(FakeTextUIFactory): New test class.
(UITests.test_silent_factory): Add no output testing.
(UITests.test_text_factory_ascii_password,
UITests.test_text_factory_utf8_password,
UITests.test_text_factory_ascii_password,
UITests.test_text_factory_utf8_password): New tests replacing
test_text_factory.
(UITests.test_text_factory_prompts_and_clears): Use a
DotsProgressBar so that we can run the tests from a dumb terminal
too.
* bzrlib/tests/__init__.py:
(FakeStdin): New test class.
More information about the bazaar-commits
mailing list