Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# Authors: # Rob Crittenden <rcritten@redhat.com> # # Copyright (C) 2009 Red Hat # see file 'COPYING' for use and warranty information # # This program 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, either version 3 of the License, or # (at your option) any later version. # # 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, see <http://www.gnu.org/licenses/>. Test the `ipaserver/install/ldapupdate.py` module. """
""" The updater works through files only so this is just a thin-wrapper controlling which file we test at any given point.
IMPORTANT NOTE: It is easy for these tests to get out of sync. Any changes made to the update files may require changes to the test cases as well. Some cases pull records from LDAP and do comparisons to ensure that updates have occurred as expected.
The DM password needs to be set in ~/.ipa/.dmpw """
""" Test the LDAP updater. """
else: raise nose.SkipTest("No directory manager password") self.testdir="./" else: raise nose.SkipTest("Unable to find test update files")
""" Reset the updater test data to a known initial state """ except errors.NotFound: # Just means the entry doesn't exist yet modified = True
""" Test the updater with an add directive """
""" Test the updater when adding an attribute to an existing entry """
# The update passed, lets look at the record and see if it is # really updated
""" Test the updater forcing an attribute to a given value """
# The update passed, lets look at the record and see if it is # really updated
""" Test the updater adding a new value to a single-valued attribute """
""" Test the updater adding a new value to a multi-valued attribute """
# The update passed, lets look at the record and see if it is # really updated
""" Test the updater removing a value from a multi-valued attribute """
# The update passed, lets look at the record and see if it is # really updated
""" Test the updater removing a non-existent value from a multi-valued attribute """
# The update passed, lets look at the record and see if it is # really updated
""" Reset the test data to a known initial state """ except errors.NotFound: # Just means the entry doesn't exist yet modified = True
def test_8_badsyntax(self): """ Test the updater with an unknown keyword """
def test_9_badsyntax(self): """ Test the updater with an incomplete line """ |