Skip to content

Commit

Permalink
Fix acceptance test to account for new template.
Browse files Browse the repository at this point in the history
  • Loading branch information
mboldt committed Oct 28, 2016
1 parent 6dba86a commit 29b753d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ci/acceptance-tests/bosh_acceptancetest.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ def test_bosh_job_spec_has_no_cf_cli_package(self):
self.assertFalse('cf_cli' in read_yaml(manifest).get('packages', []), manifest)

def test_all_jobs_have_template(self):
self.assertEqual(len(glob.glob('release/jobs/*/templates/*.sh.erb')), len(glob.glob('release/jobs/*')))
# 2 templates for each job: one to run the job, and one with the opsmgr env vars.
self.assertEqual(len(glob.glob('release/jobs/*/templates/*.sh.erb')), 2 * len(glob.glob('release/jobs/*')))

def test_has_complete_cf_cli_package(self):
self.assertEqual(len(glob.glob('release/packages/cf_cli')), 1)
Expand All @@ -75,4 +76,4 @@ def read_file(filename):
return file.read()

if __name__ == '__main__':
unittest.main()
unittest.main()

0 comments on commit 29b753d

Please sign in to comment.