aboutsummaryrefslogtreecommitdiffstats
path: root/lib/python2.7/site-packages/buildbot-0.8.8-py2.7.egg/buildbot/test/unit/test_status_web_auth_HTPasswdAuth.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python2.7/site-packages/buildbot-0.8.8-py2.7.egg/buildbot/test/unit/test_status_web_auth_HTPasswdAuth.py')
-rw-r--r--lib/python2.7/site-packages/buildbot-0.8.8-py2.7.egg/buildbot/test/unit/test_status_web_auth_HTPasswdAuth.py55
1 files changed, 0 insertions, 55 deletions
diff --git a/lib/python2.7/site-packages/buildbot-0.8.8-py2.7.egg/buildbot/test/unit/test_status_web_auth_HTPasswdAuth.py b/lib/python2.7/site-packages/buildbot-0.8.8-py2.7.egg/buildbot/test/unit/test_status_web_auth_HTPasswdAuth.py
deleted file mode 100644
index d27dc193..00000000
--- a/lib/python2.7/site-packages/buildbot-0.8.8-py2.7.egg/buildbot/test/unit/test_status_web_auth_HTPasswdAuth.py
+++ /dev/null
@@ -1,55 +0,0 @@
-# This file is part of Buildbot. Buildbot is free software: you can
-# redistribute it and/or modify it under the terms of the GNU General Public
-# License as published by the Free Software Foundation, version 2.
-#
-# This program is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
-# details.
-#
-# You should have received a copy of the GNU General Public License along with
-# this program; if not, write to the Free Software Foundation, Inc., 51
-# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-#
-# Copyright Buildbot Team Members
-"""
-Test Passwords
-desbuildmaster:yifux5rkzvI5w
-desbuildslave:W8SPURMnCs7Tc
-desbuildbot:IzclhyfHAq6Oc
-"""
-
-
-from twisted.trial import unittest
-
-from buildbot.status.web.auth import HTPasswdAuth
-from buildbot.test.util import compat
-
-class TestHTPasswdAuth(unittest.TestCase):
-
- htpasswd = HTPasswdAuth(__file__)
-
- @compat.skipUnlessPlatformIs('posix') # crypt module
- def test_authenticate_des(self):
- for key in ('buildmaster','buildslave','buildbot'):
- if self.htpasswd.authenticate('des'+key, key) == False:
- self.fail("authenticate failed for '%s'" % ('des'+key))
-
- def test_authenticate_unknown(self):
- if self.htpasswd.authenticate('foo', 'bar') == True:
- self.fail("authenticate succeed for 'foo:bar'")
-
- @compat.skipUnlessPlatformIs('posix') # crypt module
- def test_authenticate_wopassword(self):
- for algo in ('des','md5','sha'):
- if self.htpasswd.authenticate(algo+'buildmaster', '') == True:
- self.fail("authenticate succeed for %s w/o password"
- % (algo+'buildmaster'))
-
- @compat.skipUnlessPlatformIs('posix') # crypt module
- def test_authenticate_wrongpassword(self):
- for algo in ('des','md5','sha'):
- if self.htpasswd.authenticate(algo+'buildmaster', algo) == True:
- self.fail("authenticate succeed for %s w/ wrong password"
- % (algo+'buildmaster'))
-