[Zope3-checkins] CVS: Zope3/src/zope/app/services/tests - test_pluggableauth.py:1.1.2.1

Zachery Bir zbir@urbanape.com
Tue, 3 Jun 2003 09:34:08 -0400


Update of /cvs-repository/Zope3/src/zope/app/services/tests
In directory cvs.zope.org:/tmp/cvs-serv21295/src/zope/app/services/tests

Added Files:
      Tag: pluggable_authentication_service-branch
	test_pluggableauth.py 
Log Message:
In directory src/zope/app/browser/services/pluggableauth:

  - src/zope/app/browser/services/pluggableauth/__init__.py

    Adding override for the PluggableAuthenticationService

  - src/zope/app/browser/services/pluggableauth/configure.zcml

    Configuration for the views for PluggableAuthenticationService, 
    BTreePrincipalSource, and SimplePrincipal

    XXX: TODO: - contents.html view for PluggableAuthenticationService
                 and BTreePrincipalSource

               - get BTreePrincipalSource to actually have additional 
                 zmi_views to be more like a container, for example, it 
                 currently does not have a "Contents" tab

               - views for the login challenge

In directory src/zope/app/container:

  - src/zope/app/container/ordered.py

    Implementation of an OrderedContainer

In directory src/zope/app/container/tests:

  - src/zope/app/container/tests/test_ordered.py

    Test module for OrderedContainer (all tests currently in docstrings)

In directory src/zope/app/interfaces/container:

  - src/zope/app/interfaces/container/__init__.py

    Added interface for OrderedContainer

In directory src/zope/app/interfaces/services/pluggableauth:

  - src/zope/app/interfaces/services/pluggableauth/__init__.py

    Interfaces for PluggableAuthenticationService, Read/WritePrincipalSource,
    and UserSchemafied

In directory src/zope/app/services:

  - src/zope/app/services/configure.zcml

    Included the pluggableauth package

In directory src/zope/app/services/pluggableauth:

  - src/zope/app/services/pluggableauth/__init__.py

    Implementation of the PluggableAuthenticationService, BTreePrincipalSource,
    and SimplePrincipal classes

    XXX: TODO: - Wrap all returned items from getPrincipals() in both
                 PluggableAuthenticationService and BTreePrincipalSource
                 so that the ids being handed up are tuplified (in the case
                 of BTreePrincipalSource) and triplified (in the case of
                 PluggableAuthenticationService) to ensure proper uniquity

  - src/zope/app/services/pluggableauth/configure.zcml

    Content directives for the above

In directory src/zope/app/services/tests:

  - src/zope/app/services/tests/test_pluggableauth.py

    Test module for PluggableAuthenticationService, BTreePrincipalSource, and
    SimplePrincipal classes (all available tests currently in docstrings)

    XXX: TODO: - write unit tests for the ContextMethods to ensure proper
                 delegation of Authentication responsibility (perhaps 
                 functional tests, instead?)


=== Added File Zope3/src/zope/app/services/tests/test_pluggableauth.py ===
##############################################################################
#
# Copyright (c) 2003 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""Test the PluggableAuthenticationService.


$Id: test_pluggableauth.py,v 1.1.2.1 2003/06/03 13:34:07 urbanape Exp $
"""

import unittest
from zope.interface import *
from zope.testing.doctestunit import DocTestSuite
from zope.interface import Interface

def test_suite():
    suite = unittest.TestSuite()
    suite.addTest(DocTestSuite("zope.app.services.pluggableauth"))

    return suite

if __name__ == '__main__':
    unittest.main()