summaryrefslogtreecommitdiffstats
path: root/checks/check-ra.py
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/check-ra.py
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/check-ra.py')
-rwxr-xr-xchecks/check-ra.py24
1 files changed, 23 insertions, 1 deletions
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