~gz/juju-ci-tools/jes_no_upload

« back to all changes in this revision

Viewing changes to test_deploy_stack.py

  • Committer: Aaron Bentley
  • Date: 2015-07-29 18:14:50 UTC
  • mfrom: (1049.1.1 destroy-first)
  • Revision ID: aaron.bentley@canonical.com-20150729181450-uiwf76bgyda219vc
Add --pre-destroy option to deploy_job script.

Show diffs side-by-side

added added

removed removed

Lines of Context:
528
528
            with patch('deploy_stack.deploy_dummy_stack', autospec=True):
529
529
                with patch('deploy_stack.assess_juju_run', autospec=True):
530
530
                    _deploy_job('foo', None, None, '', None, None, None, 'log',
531
 
                                None, None, None, None, None, None, 1, False)
 
531
                                None, None, None, None, None, None, 1, False,
 
532
                                False,)
532
533
        self.assertEqual(bc_mock.mock_calls[0][1][0], 'foo')
533
534
        self.assertEqual(bc_mock.mock_calls[0][1][2], 'log')
534
535
        self.assertEqual(bc_mock.mock_calls[0][1][3], 1)
545
546
            with patch('deploy_stack.deploy_dummy_stack', autospec=True):
546
547
                with patch('deploy_stack.assess_juju_run', autospec=True):
547
548
                    _deploy_job('foo', None, None, '', None, None, None, None,
548
 
                                None, None, None, None, None, None, 0, False)
 
549
                                None, None, None, None, None, None, 0, False,
 
550
                                False)
549
551
        self.assertEqual(bc_mock.call_count, 0)
550
552
 
551
553
 
760
762
            upload_tools=False,
761
763
            with_chaos=0,
762
764
            jes=False,
 
765
            pre_destroy=False,
763
766
        ))
764
767
 
765
768
    def test_upload_tools(self):