aboutsummaryrefslogtreecommitdiff
path: root/myrpki.rototill/yamltest.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2010-03-05 19:52:16 +0000
committerRob Austein <sra@hactrn.net>2010-03-05 19:52:16 +0000
commitfbbd547236a2a1da9912f7967e5993b37a2cc45c (patch)
treeb74195bbac197e3b5085b2c52f3227e93fa1e91a /myrpki.rototill/yamltest.py
parentadc7cf6092eccd858c47e3a67b9a9dce9cf4de22 (diff)
Checkpoint
svn path=/myrpki.rototill/setup.py; revision=3032
Diffstat (limited to 'myrpki.rototill/yamltest.py')
-rw-r--r--myrpki.rototill/yamltest.py19
1 files changed, 16 insertions, 3 deletions
diff --git a/myrpki.rototill/yamltest.py b/myrpki.rototill/yamltest.py
index 8a8d3e23..a8a41b95 100644
--- a/myrpki.rototill/yamltest.py
+++ b/myrpki.rototill/yamltest.py
@@ -376,6 +376,15 @@ class allocation(object):
f.writerows((s.client_handle, s.path("bpki/resources/ca.cer"), s.sia_base)
for s in (db if only_one_pubd else [self] + self.kids))
+ def find_pubd(self):
+ """
+ Walk up tree until we find somebody who runs pubd.
+ """
+ s = self
+ while not s.runs_pubd():
+ s = s.parent
+ return s
+
def dump_conf(self, fn):
"""
Write configuration file for OpenSSL and RPKI tools.
@@ -402,9 +411,7 @@ class allocation(object):
if self.runs_pubd():
r["pubd", "sql-database"] = "pubd%d" % self.engine
- s = self
- while not s.runs_pubd():
- s = s.parent
+ s = self.find_pubd()
r["myrpki", "pubd_server_host"] = "localhost"
r["myrpki", "pubd_server_port"] = str(s.pubd_port)
r["myrpki", "repository_bpki_certificate"] = s.path("bpki/servers/ca.cer")
@@ -620,6 +627,12 @@ for d in db:
d.parent.run_setup("answer_child", d.path("entitydb", "identity.xml"))
print
d.run_setup("process_parent_answer", d.parent.path("entitydb", "children", "%s.xml" % d.name))
+ print
+ p = d.find_pubd()
+ p.run_setup("answer_repository_client", d.path("entitydb", "identity.xml"))
+ print
+ d.run_setup("process_repository_answer", p.path("entitydb", "pubclients", "%s.xml" % d.name))
+ print
print