Exemplo n.º 1
0
 def test_missing_repo(self):
     deliverable_info = {
         'artifact-link-mode': 'none',
         'releases': [
             {'version': '1000.0.0',
              'projects': [
              ]}
         ],
     }
     warnings = []
     errors = []
     validate.validate_new_releases(
         deliverable_info,
         'release-test.yaml',
         self.team_data,
         warnings.append,
         errors.append,
     )
     self.assertEqual(1, len(warnings))
     self.assertEqual(0, len(errors))
Exemplo n.º 2
0
 def test_all_repos(self):
     deliverable_info = {
         'artifact-link-mode': 'none',
         'releases': [
             {'version': '1000.0.0',
              'projects': [
                  {'repo': 'openstack/release-test',
                   'hash': '685da43147c3bedc24906d5a26839550f2e962b1'},
              ]}
         ],
     }
     warnings = []
     errors = []
     validate.validate_new_releases(
         deliverable_info,
         'release-test.yaml',
         self.team_data,
         warnings.append,
         errors.append,
     )
     self.assertEqual(0, len(warnings))
     self.assertEqual(0, len(errors))