From 29b753d498617352ef4bc11eb26abb90c5d5b576 Mon Sep 17 00:00:00 2001 From: Michael William Boldt Date: Fri, 28 Oct 2016 09:31:19 -0500 Subject: [PATCH] Fix acceptance test to account for new template. --- ci/acceptance-tests/bosh_acceptancetest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ci/acceptance-tests/bosh_acceptancetest.py b/ci/acceptance-tests/bosh_acceptancetest.py index 743b86d8..7a6689aa 100644 --- a/ci/acceptance-tests/bosh_acceptancetest.py +++ b/ci/acceptance-tests/bosh_acceptancetest.py @@ -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) @@ -75,4 +76,4 @@ def read_file(filename): return file.read() if __name__ == '__main__': - unittest.main() \ No newline at end of file + unittest.main()