Commit abe4268d authored by Romain Courteaud's avatar Romain Courteaud

User can not directly start instance.

parent d04d99bc
...@@ -762,6 +762,9 @@ class TestVifibSlapAllocationScope(TestVifibSlapWebServiceMixin): ...@@ -762,6 +762,9 @@ class TestVifibSlapAllocationScope(TestVifibSlapWebServiceMixin):
def stepSetSequenceSoftwareInstanceStateStopped(self, sequence, **kw): def stepSetSequenceSoftwareInstanceStateStopped(self, sequence, **kw):
sequence['software_instance_state'] = 'stopped' sequence['software_instance_state'] = 'stopped'
def stepSetSequenceSoftwareInstanceStateStarted(self, sequence, **kw):
sequence['software_instance_state'] = 'started'
def test_start_computer_partition_allocation_scope_close(self): def test_start_computer_partition_allocation_scope_close(self):
"""Check that it is possible to request stop of computer partition even """Check that it is possible to request stop of computer partition even
if computer is close""" if computer is close"""
...@@ -815,6 +818,7 @@ class TestVifibSlapAllocationScope(TestVifibSlapWebServiceMixin): ...@@ -815,6 +818,7 @@ class TestVifibSlapAllocationScope(TestVifibSlapWebServiceMixin):
# request as someone else # request as someone else
LoginTestVifibAdmin LoginTestVifibAdmin
SetSoftwareTitleRandom
PersonRequestSoftwareInstance PersonRequestSoftwareInstance
Tic Tic
Logout Logout
...@@ -855,7 +859,8 @@ class TestVifibSlapAllocationScope(TestVifibSlapWebServiceMixin): ...@@ -855,7 +859,8 @@ class TestVifibSlapAllocationScope(TestVifibSlapWebServiceMixin):
# request start and check that it worked # request start and check that it worked
LoginTestVifibAdmin LoginTestVifibAdmin
RequestSoftwareInstanceStart SetSequenceSoftwareInstanceStateStarted
PersonRequestSoftwareInstance
Tic Tic
Logout Logout
......
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