コード例 #1
0
 def test_verify_fail(self):
     overstate = salt.overstate.OverState(self.master_config)
     test_stage = {'require': {'webservers': 'mysql'}}
     ret = overstate.verify_stage(test_stage)
     self.assertIn('No "match" argument in stage.', ret)
コード例 #2
0
 def test_verify_stage(self):
     overstate = salt.overstate.OverState(self.master_config)
     test_stage = {'require': {'webservers': 'mysql'}, 'match': '*'}
     ret = overstate.verify_stage(test_stage)
     self.assertDictEqual(test_stage, test_stage)