def test_find_version_playbook(self): candidate = Playbook( os.path.join(self.cwd, 'test_cases', 'test_playbook_0.2.yml')) self.assertEqual(candidate.version, '0.2')
def test_yaml_success(self): candidate = Playbook(os.path.join(self.directory, 'yaml_success.yml')) settings = Settings({}) result = yamlreview(candidate, settings) self.assertEqual(len(result.errors), 0)
def review(playbook, settings): install_roles(playbook) syntax_check(playbook) return utils.review(Playbook(playbook), settings)
def test_playbook_expected_version(self): candidate = Playbook(os.path.join(self.cwd, 'test_cases', 'test_playbook_0.2.yml')) self.assertTrue(candidate.expected_version)