From 70b403f20e386524c46d611d851ec2ade1427bca Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Fri, 4 May 2012 23:53:54 +0000 Subject: Don't explode if valid_until isn't set in test configuration. svn path=/branches/tk33/; revision=4465 --- rpkid/tests/yamltest.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rpkid/tests/yamltest.py') 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: -- cgit v1.2.3