~ionutbalutoiu/charms/trusty/neutron-api/next

« back to all changes in this revision

Viewing changes to unit_tests/test_neutron_api_hooks.py

  • Committer: David Ames
  • Date: 2015-12-17 15:36:42 UTC
  • mfrom: (158.1.1 trunk)
  • Revision ID: david.ames@canonical.com-20151217153642-7pgimtlj74r75a5w
[jamespage, r=thedac] Ensure that apt_update calls are made with fatal=True to detect and source configuration problems.

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
        self.configure_installation_source.assert_called_with(
129
129
            'distro'
130
130
        )
131
 
        self.apt_update.assert_called_with()
 
131
        self.apt_update.assert_called_with(fatal=True)
132
132
        self.apt_install.assert_has_calls([
133
133
            call(_pkgs, fatal=True),
134
134
        ])
151
151
        self.configure_installation_source.assert_called_with(
152
152
            'distro'
153
153
        )
154
 
        self.apt_update.assert_called_with()
 
154
        self.apt_update.assert_called_with(fatal=True)
155
155
        self.apt_install.assert_has_calls([
156
156
            call(_expected_pkgs, fatal=True),
157
157
        ])
184
184
        self._call_hook('install')
185
185
        self.assertTrue(self.execd_preinstall.called)
186
186
        self.configure_installation_source.assert_called_with(repo)
187
 
        self.apt_update.assert_called_with()
 
187
        self.apt_update.assert_called_with(fatal=True)
188
188
        self.apt_install.assert_has_calls([
189
189
            call(_pkgs, fatal=True),
190
190
        ])