Revision 00ef625c test/py/ganeti.tools.prepare_node_join_unittest.py
b/test/py/ganeti.tools.prepare_node_join_unittest.py | ||
---|---|---|
73 | 73 |
prepare_node_join.VerifyCertificate({}, _verify_fn=NotImplemented) |
74 | 74 |
|
75 | 75 |
def testGivenPrivateKey(self): |
76 |
cert_filename = self._TestDataFilename("cert2.pem")
|
|
76 |
cert_filename = testutils.TestDataFilename("cert2.pem")
|
|
77 | 77 |
cert_pem = utils.ReadFile(cert_filename) |
78 | 78 |
|
79 | 79 |
self.assertRaises(_JoinError, prepare_node_join._VerifyCertificate, |
... | ... | |
90 | 90 |
assert cert.get_subject() |
91 | 91 |
|
92 | 92 |
def testSuccessfulCheck(self): |
93 |
cert_filename = self._TestDataFilename("cert1.pem")
|
|
93 |
cert_filename = testutils.TestDataFilename("cert1.pem")
|
|
94 | 94 |
cert_pem = utils.ReadFile(cert_filename) |
95 | 95 |
prepare_node_join._VerifyCertificate(cert_pem, _check_fn=self._Check) |
96 | 96 |
|
Also available in: Unified diff