Commit 2bf9054c authored by Łukasz Nowak's avatar Łukasz Nowak

Login as real user.

parent 8d301073
...@@ -22,6 +22,7 @@ class TestSlapOSCoreComputerSlapInterfaceWorkflow(testSlapOSMixin): ...@@ -22,6 +22,7 @@ class TestSlapOSCoreComputerSlapInterfaceWorkflow(testSlapOSMixin):
self.portal.REQUEST['computer_certificate'] = None self.portal.REQUEST['computer_certificate'] = None
def test_generateCertificate(self): def test_generateCertificate(self):
self.login(self.computer.getReference())
self.computer.generateCertificate() self.computer.generateCertificate()
computer_key = self.portal.REQUEST.get('computer_key') computer_key = self.portal.REQUEST.get('computer_key')
computer_certificate = self.portal.REQUEST.get('computer_certificate') computer_certificate = self.portal.REQUEST.get('computer_certificate')
...@@ -30,6 +31,7 @@ class TestSlapOSCoreComputerSlapInterfaceWorkflow(testSlapOSMixin): ...@@ -30,6 +31,7 @@ class TestSlapOSCoreComputerSlapInterfaceWorkflow(testSlapOSMixin):
self.assertTrue(self.computer.getReference() in computer_certificate) self.assertTrue(self.computer.getReference() in computer_certificate)
def test_generateCertificate_twice(self): def test_generateCertificate_twice(self):
self.login(self.computer.getReference())
self.computer.generateCertificate() self.computer.generateCertificate()
computer_key = self.portal.REQUEST.get('computer_key') computer_key = self.portal.REQUEST.get('computer_key')
computer_certificate = self.portal.REQUEST.get('computer_certificate') computer_certificate = self.portal.REQUEST.get('computer_certificate')
......
154 155
\ No newline at end of file \ No newline at end of file
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