Beispiel #1
0
def render(*args):
    dmapi.render_configs(args)
    reactive.set_state('config.complete')
    dmapi.assess_status()
def render(*args):
    dmapi.render_configs(args)
    reactive.set_state('config.complete')
    # change the ownership to 'dmapi'
    chownr('/etc/dmapi', DMAPI_USR, DMAPI_GRP)
    dmapi.assess_status()
 def test_render_configs(self):
     self.patch_object(dmapi.DmapiCharm.singleton, 'render_with_interfaces')
     dmapi.render_configs('interfaces-list')
     self.render_with_interfaces.assert_called_once_with('interfaces-list')