Commit 9447cce7 authored by Łukasz Nowak's avatar Łukasz Nowak

Login before running the test.

parent 63207a7c
...@@ -83,6 +83,7 @@ class TestSlapOSShadow(testSlapOSMixin): ...@@ -83,6 +83,7 @@ class TestSlapOSShadow(testSlapOSMixin):
class TestSlapOSShadowPerson(TestSlapOSShadow): class TestSlapOSShadowPerson(TestSlapOSShadow):
def test_shadow_Person(self): def test_shadow_Person(self):
self.login()
password = str(random.random()) password = str(random.random())
reference = self._generateRandomUniqueReference('Person') reference = self._generateRandomUniqueReference('Person')
shadow_reference = 'SHADOW-%s' % reference shadow_reference = 'SHADOW-%s' % reference
...@@ -103,6 +104,7 @@ class TestSlapOSShadowPerson(TestSlapOSShadow): ...@@ -103,6 +104,7 @@ class TestSlapOSShadowPerson(TestSlapOSShadow):
user.getGroups()) user.getGroups())
def test_shadow_Person_inactive(self): def test_shadow_Person_inactive(self):
self.login()
password = str(random.random()) password = str(random.random())
reference = self._generateRandomUniqueReference('Person') reference = self._generateRandomUniqueReference('Person')
shadow_reference = 'SHADOW-%s' % reference shadow_reference = 'SHADOW-%s' % reference
...@@ -117,6 +119,7 @@ class TestSlapOSShadowPerson(TestSlapOSShadow): ...@@ -117,6 +119,7 @@ class TestSlapOSShadowPerson(TestSlapOSShadow):
class TestSlapOSShadowComputer(TestSlapOSShadow): class TestSlapOSShadowComputer(TestSlapOSShadow):
def test_shadow_Computer(self): def test_shadow_Computer(self):
self.login()
reference = self._generateRandomUniqueReference('Computer') reference = self._generateRandomUniqueReference('Computer')
shadow_reference = 'SHADOW-%s' % reference shadow_reference = 'SHADOW-%s' % reference
...@@ -135,6 +138,7 @@ class TestSlapOSShadowComputer(TestSlapOSShadow): ...@@ -135,6 +138,7 @@ class TestSlapOSShadowComputer(TestSlapOSShadow):
user.getGroups()) user.getGroups())
def test_shadow_Computer_inactive(self): def test_shadow_Computer_inactive(self):
self.login()
reference = self._generateRandomUniqueReference('Computer') reference = self._generateRandomUniqueReference('Computer')
shadow_reference = 'SHADOW-%s' % reference shadow_reference = 'SHADOW-%s' % reference
...@@ -148,6 +152,7 @@ class TestSlapOSShadowComputer(TestSlapOSShadow): ...@@ -148,6 +152,7 @@ class TestSlapOSShadowComputer(TestSlapOSShadow):
class TestSlapOSShadowSoftwareInstance(TestSlapOSShadow): class TestSlapOSShadowSoftwareInstance(TestSlapOSShadow):
portal_type = 'Software Instance' portal_type = 'Software Instance'
def test_active(self): def test_active(self):
self.login()
reference = self._generateRandomUniqueReference(self.portal_type) reference = self._generateRandomUniqueReference(self.portal_type)
shadow_reference = 'SHADOW-%s' % reference shadow_reference = 'SHADOW-%s' % reference
...@@ -166,6 +171,7 @@ class TestSlapOSShadowSoftwareInstance(TestSlapOSShadow): ...@@ -166,6 +171,7 @@ class TestSlapOSShadowSoftwareInstance(TestSlapOSShadow):
user.getGroups()) user.getGroups())
def test_inactive(self): def test_inactive(self):
self.login()
reference = self._generateRandomUniqueReference(self.portal_type) reference = self._generateRandomUniqueReference(self.portal_type)
shadow_reference = 'SHADOW-%s' % reference shadow_reference = 'SHADOW-%s' % reference
......
59 60
\ 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