Commit a4b8b535 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_cloud: add method for set computer as Open/Subscription

parent 76b96377
...@@ -142,6 +142,15 @@ class DefaultScenarioMixin(TestSlapOSSecurityMixin): ...@@ -142,6 +142,15 @@ class DefaultScenarioMixin(TestSlapOSSecurityMixin):
server.edit(capacity_scope='open') server.edit(capacity_scope='open')
self.tic() self.tic()
@changeSkin('RJS')
def setServerOpenSubscription(self, server):
server.edit(
allocation_scope='open/subscription')
self.assertEqual('open/subscription', server.getAllocationScope())
self.assertEqual('open', server.getCapacityScope())
server.edit(capacity_scope='open')
self.tic()
@changeSkin('RJS') @changeSkin('RJS')
def setServerOpenPersonal(self, server): def setServerOpenPersonal(self, server):
server.edit( server.edit(
......
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