summaryrefslogtreecommitdiffstats
path: root/tests/test_install/1_add.update
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2009-09-14 16:12:58 -0400
committerJason Gerard DeRose <jderose@redhat.com>2009-10-05 13:25:42 -0600
commite62bbab37a50fe024977798eb194cbe74bcd3587 (patch)
tree2fa47dea5f8648a1752745d98a59b0b1db78f219 /tests/test_install/1_add.update
parentaa7792a00035c7b7a37726f07a08824d8a4334f8 (diff)
downloadfreeipa-e62bbab37a50fe024977798eb194cbe74bcd3587.tar.gz
freeipa-e62bbab37a50fe024977798eb194cbe74bcd3587.tar.xz
freeipa-e62bbab37a50fe024977798eb194cbe74bcd3587.zip
Let the updater delete entries and add small test harness
In order to run the tests you must put your DM password into ~/.ipa/.dmpw Some tests are expected to generate errors. Don't let any ERROR messages from the updater fool you, watch the pass/fail of the nosetests.
Diffstat (limited to 'tests/test_install/1_add.update')
-rw-r--r--tests/test_install/1_add.update23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/test_install/1_add.update b/tests/test_install/1_add.update
new file mode 100644
index 00000000..7db8ae06
--- /dev/null
+++ b/tests/test_install/1_add.update
@@ -0,0 +1,23 @@
+# Add in a new place in the DIT for our test cases
+
+dn: cn=test, cn=accounts, $SUFFIX
+add:objectClass: top
+add:objectClass: ipaContainer
+add:cn: test
+add:description: Test container
+
+# Add a test user
+dn: uid=tuser, cn=test, cn=accounts, $SUFFIX
+add:objectclass: top
+add:objectclass: person
+add:objectclass: posixaccount
+add:objectclass: krbprincipalaux
+add:objectclass: inetuser
+add:homedirectory: /home/tuser
+add:loginshell: /bin/bash
+add:sn: User
+add:uid: tuser
+add:uidnumber: 999
+add:gidnumber: 999
+add:cn: Test User
+