summaryrefslogtreecommitdiffstats
path: root/checks
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2009-02-13 13:20:13 -0700
committerRob Crittenden <rcritten@redhat.com>2009-02-17 16:03:10 -0500
commit5ce463104161d4400f891d898f322959bf48c3c8 (patch)
tree1f6f8cb461195eff1c5c663ce8a7503f9d60205c /checks
parent7561e58486067ba27d6f459280d321f34f073ac5 (diff)
downloadfreeipa-5ce463104161d4400f891d898f322959bf48c3c8.tar.gz
freeipa-5ce463104161d4400f891d898f322959bf48c3c8.tar.xz
freeipa-5ce463104161d4400f891d898f322959bf48c3c8.zip
Added a sys.path hack to get checks/check-ra.py working again
Diffstat (limited to 'checks')
-rw-r--r--checks/README2
-rwxr-xr-xchecks/check-ra.py24
2 files changed, 24 insertions, 2 deletions
diff --git a/checks/README b/checks/README
index f58f9c796..e2e7811f4 100644
--- a/checks/README
+++ b/checks/README
@@ -1,3 +1,3 @@
This directory is for integration tests that require a live backend (LDAP,
Certificate Server, etc.). It's named "checks" so nose wont discover tests
-here
+here.
diff --git a/checks/check-ra.py b/checks/check-ra.py
index 23a9498c0..c98314618 100755
--- a/checks/check-ra.py
+++ b/checks/check-ra.py
@@ -1,5 +1,21 @@
#!/usr/bin/python
+"""
+This tests the api.Backend.ra plugin against a test CA server awnuk has runnig.
+It's only accessible from inside the Red Hat firewall. Obviously this needs
+work so the community can also run this test, but it's a start.
+
+Also, awnuk had to help me register the IPA instance I'm running with his
+server. I don't exactly remember the steps, so ping him for help.
+
+ --jderose 2009-02-13
+"""
+
+from os import path
+import sys
+parent = path.dirname(path.dirname(path.abspath(__file__)))
+sys.path.append(parent)
+
from base64 import b64encode, b64decode
from ipalib import api
@@ -22,7 +38,13 @@ xFnXZKkvsT3GjfIe/k687TMG3paTFtKkis+u7z0v6355uJzLpQ==
csr = 'MIIBlDCB/gIBADBVMR0wGwYDVQQKExRVc2Vyc3lzUmVkaGF0LURvbWFpbjEQMA4GA1UECxMHcGtpLWlwYTEiMCAGA1UEAxMZSVBBLVN1YnN5c3RlbS1DZXJ0aWZpY2F0ZTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA3Qmpr81WxbnISmyyhc2ShiPzUvWIrCg5FgJ1QrBl7CRe62Wl/YYiV/DbuMoex1ec7zKfgfSFVFU9/2iwj7Du0sZdXYJNQPdj9yLdPk2tyxdgJuHLdxI0SNgaEFyvmIMP/X9vQN9H5w0/PyrJQscOxc6tbTcYL0ZSSylLQ+diaQECAwEAA'
-api.bootstrap(in_server=True, debug=True)
+api.bootstrap(
+ in_server=True,
+ enable_ra=True,
+ ca_host='a-f8.sjc.redhat.com',
+ debug=True,
+ in_tree=True,
+)
api.finalize()
ra = api.Backend.ra