diff options
author | Rob Austein <sra@hactrn.net> | 2014-02-25 20:46:05 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2014-02-25 20:46:05 +0000 |
commit | de95fb9525bf5f1ced2fb90924b31b78494e1e87 (patch) | |
tree | 7c529a242b334e38a0d78761a0dfad12c452bfcf /rpkid/tests/yamltest.py | |
parent | bf0b63854ec52df692a503eb78e270363f31ebfd (diff) |
Something broke MySQLdb on my laptop during a recent upgrade, and I
have better things to do than shaving that particular yak today. So
I'm committing untested changes (to a development branch that nobody
but me is using) so I can test them on a working development platform.
svn path=/branches/tk671/; revision=5682
Diffstat (limited to 'rpkid/tests/yamltest.py')
-rw-r--r-- | rpkid/tests/yamltest.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/rpkid/tests/yamltest.py b/rpkid/tests/yamltest.py index 1b52ced6..9525a048 100644 --- a/rpkid/tests/yamltest.py +++ b/rpkid/tests/yamltest.py @@ -131,8 +131,6 @@ class router_cert(object): self.keypair = rpki.x509.ECDSA.generate(self.ecparams()) self.pkcs10 = rpki.x509.PKCS10.create( keypair = self.keypair, - cn = "ROUTER-%d" % self.asn[0].min, - sn = self.router_id, eku = (rpki.oids.id_kp_bgpsec_router,)) self.gski = self.pkcs10.gSKI() @@ -141,7 +139,7 @@ class router_cert(object): def __hash__(self): v6 = tuple(self.v6) if self.v6 is not None else None - return tuple(self.asn).__hash__() + router_id.__hash__() + self.gski.__hash__() + return tuple(self.asn).__hash__() + self.router_id.__hash__() + self.gski.__hash__() def __str__(self): return "%s: %s: %s" % (self.asn, self.router_id, self.gski) |