Update year in test

parent d66764f6
...@@ -893,7 +893,7 @@ class GenerateSignatureScriptTest(unittest.TestCase): ...@@ -893,7 +893,7 @@ class GenerateSignatureScriptTest(unittest.TestCase):
self.assertEqual('subject= /CN=%s' % self.common_name, result.strip()) self.assertEqual('subject= /CN=%s' % self.common_name, result.strip())
result = subprocess.check_output(['openssl', 'x509', '-noout', '-enddate', result = subprocess.check_output(['openssl', 'x509', '-noout', '-enddate',
'-in', self.certificate]) '-in', self.certificate])
self.assertTrue('2111' in result) self.assertTrue('2112' in result)
def test_generate_key_exists(self): def test_generate_key_exists(self):
self.assertRaises(ValueError, slapos.signature.generateCertificate, self.assertRaises(ValueError, slapos.signature.generateCertificate,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment