aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2012-05-04 23:53:54 +0000
committerRob Austein <sra@hactrn.net>2012-05-04 23:53:54 +0000
commit70b403f20e386524c46d611d851ec2ade1427bca (patch)
tree5c7fad30c5480fb4d91df9d9d5cdb2a452f8de40
parent677683695dd063ed7fe80e4abf20dfa9638578e5 (diff)
Don't explode if valid_until isn't set in test configuration.
svn path=/branches/tk33/; revision=4465
-rw-r--r--rpkid/tests/yamltest.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/rpkid/tests/yamltest.py b/rpkid/tests/yamltest.py
index 32434147..12fd7f85 100644
--- a/rpkid/tests/yamltest.py
+++ b/rpkid/tests/yamltest.py
@@ -118,6 +118,8 @@ class allocation_db(list):
self.root.crl_interval = 24 * 60 * 60
if self.root.regen_margin is None:
self.root.regen_margin = 24 * 60 * 60
+ if self.root.base.valid_until is None:
+ self.root.base.valid_until = rpki.sundial.now() + rpki.sundial.timedelta(days = 2)
for a in self:
if a.sia_base is None:
if a.runs_pubd: