Commit a96ce52e authored by Romain Courteaud's avatar Romain Courteaud

slapos_cloud: no source_administration

parent 904c9815
...@@ -153,7 +153,7 @@ class TestSlapOSCoreComputeNodeSlapInterfaceWorkflow(SlapOSTestCaseMixin): ...@@ -153,7 +153,7 @@ class TestSlapOSCoreComputeNodeSlapInterfaceWorkflow(SlapOSTestCaseMixin):
def test_requestSoftwareRelease_software_release_url_required(self): def test_requestSoftwareRelease_software_release_url_required(self):
self.person_user = self.makePerson(self.project) self.person_user = self.makePerson(self.project)
self.compute_node.edit(source_administration=self.person_user.getRelativeUrl()) self.addProjectProductionManagerAssignment(self.person_user, self.project)
self.tic() self.tic()
self.login(self.person_user.getUserId()) self.login(self.person_user.getUserId())
self.assertRaises(TypeError, self.compute_node.requestSoftwareRelease, self.assertRaises(TypeError, self.compute_node.requestSoftwareRelease,
...@@ -162,7 +162,7 @@ class TestSlapOSCoreComputeNodeSlapInterfaceWorkflow(SlapOSTestCaseMixin): ...@@ -162,7 +162,7 @@ class TestSlapOSCoreComputeNodeSlapInterfaceWorkflow(SlapOSTestCaseMixin):
def test_requestSoftwareRelease_state_required(self): def test_requestSoftwareRelease_state_required(self):
self.person_user = self.makePerson(self.project) self.person_user = self.makePerson(self.project)
self.compute_node.edit(source_administration=self.person_user.getRelativeUrl()) self.addProjectProductionManagerAssignment(self.person_user, self.project)
self.tic() self.tic()
self.login(self.person_user.getUserId()) self.login(self.person_user.getUserId())
url = self.generateNewSoftwareReleaseUrl() url = self.generateNewSoftwareReleaseUrl()
...@@ -172,7 +172,7 @@ class TestSlapOSCoreComputeNodeSlapInterfaceWorkflow(SlapOSTestCaseMixin): ...@@ -172,7 +172,7 @@ class TestSlapOSCoreComputeNodeSlapInterfaceWorkflow(SlapOSTestCaseMixin):
def test_requestSoftwareRelease_available(self): def test_requestSoftwareRelease_available(self):
self.person_user = self.makePerson(self.project) self.person_user = self.makePerson(self.project)
self.compute_node.edit(source_administration=self.person_user.getRelativeUrl()) self.addProjectProductionManagerAssignment(self.person_user, self.project)
self.tic() self.tic()
self.login(self.person_user.getUserId()) self.login(self.person_user.getUserId())
url = self.generateNewSoftwareReleaseUrl() url = self.generateNewSoftwareReleaseUrl()
...@@ -188,7 +188,7 @@ class TestSlapOSCoreComputeNodeSlapInterfaceWorkflow(SlapOSTestCaseMixin): ...@@ -188,7 +188,7 @@ class TestSlapOSCoreComputeNodeSlapInterfaceWorkflow(SlapOSTestCaseMixin):
def test_requestSoftwareRelease_destroyed(self): def test_requestSoftwareRelease_destroyed(self):
self.person_user = self.makePerson(self.project) self.person_user = self.makePerson(self.project)
self.compute_node.edit(source_administration=self.person_user.getRelativeUrl()) self.addProjectProductionManagerAssignment(self.person_user, self.project)
self.tic() self.tic()
self.login(self.person_user.getUserId()) self.login(self.person_user.getUserId())
url = self.generateNewSoftwareReleaseUrl() url = self.generateNewSoftwareReleaseUrl()
...@@ -202,7 +202,7 @@ class TestSlapOSCoreComputeNodeSlapInterfaceWorkflow(SlapOSTestCaseMixin): ...@@ -202,7 +202,7 @@ class TestSlapOSCoreComputeNodeSlapInterfaceWorkflow(SlapOSTestCaseMixin):
def test_requestSoftwareRelease_available_destroyed(self): def test_requestSoftwareRelease_available_destroyed(self):
self.person_user = self.makePerson(self.project) self.person_user = self.makePerson(self.project)
self.compute_node.edit(source_administration=self.person_user.getRelativeUrl()) self.addProjectProductionManagerAssignment(self.person_user, self.project)
self.tic() self.tic()
self.login(self.person_user.getUserId()) self.login(self.person_user.getUserId())
url = self.generateNewSoftwareReleaseUrl() url = self.generateNewSoftwareReleaseUrl()
...@@ -230,7 +230,7 @@ class TestSlapOSCoreComputeNodeSlapInterfaceWorkflow(SlapOSTestCaseMixin): ...@@ -230,7 +230,7 @@ class TestSlapOSCoreComputeNodeSlapInterfaceWorkflow(SlapOSTestCaseMixin):
def test_requestSoftwareRelease_not_indexed(self): def test_requestSoftwareRelease_not_indexed(self):
self.person_user = self.makePerson(self.project) self.person_user = self.makePerson(self.project)
self.compute_node.edit(source_administration=self.person_user.getRelativeUrl()) self.addProjectProductionManagerAssignment(self.person_user, self.project)
self.tic() self.tic()
self.login(self.person_user.getUserId()) self.login(self.person_user.getUserId())
url = self.generateNewSoftwareReleaseUrl() url = self.generateNewSoftwareReleaseUrl()
...@@ -245,7 +245,7 @@ class TestSlapOSCoreComputeNodeSlapInterfaceWorkflow(SlapOSTestCaseMixin): ...@@ -245,7 +245,7 @@ class TestSlapOSCoreComputeNodeSlapInterfaceWorkflow(SlapOSTestCaseMixin):
@expectedFailure @expectedFailure
def test_requestSoftwareRelease_same_transaction(self): def test_requestSoftwareRelease_same_transaction(self):
self.person_user = self.makePerson(self.project) self.person_user = self.makePerson(self.project)
self.compute_node.edit(source_administration=self.person_user.getRelativeUrl()) self.addProjectProductionManagerAssignment(self.person_user, self.project)
self.tic() self.tic()
self.login(self.person_user.getUserId()) self.login(self.person_user.getUserId())
url = self.generateNewSoftwareReleaseUrl() url = self.generateNewSoftwareReleaseUrl()
......
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