def testunit_assert_collectd_vsys_setup_WHEN_acl_incomplete(self):
        check_collectd_mlab.VSYSPATH_ACL = os.path.join(
            self.testdata_dir, 'acl_missing_slice_name')

        with self.assertRaises(
                check_collectd_mlab.MissingSliceFromVsysAclError):
            check_collectd_mlab.assert_collectd_vsys_setup()
예제 #2
0
    def testunit_assert_collectd_vsys_setup_WHEN_acl_incomplete(self):
        check_collectd_mlab.VSYSPATH_ACL = os.path.join(
            self.testdata_dir, 'acl_missing_slice_name')

        with self.assertRaises(
                check_collectd_mlab.MissingSliceFromVsysAclError):
            check_collectd_mlab.assert_collectd_vsys_setup()
예제 #3
0
  def testunit_assert_collectd_vsys_setup_WHEN_vsys_acl_is_missing(self):
    check_collectd_mlab.VSYSPATH_ACL = 'does_not_exist'

    with self.assertRaises(check_collectd_mlab.MissingVsysAclError):
      check_collectd_mlab.assert_collectd_vsys_setup()
예제 #4
0
  def testunit_assert_collectd_vsys_setup_WHEN_vsys_slice_is_missing(self):
    check_collectd_mlab.VSYSPATH_SLICE = 'does_not_exist'

    with self.assertRaises(check_collectd_mlab.MissingVsysFrontendError):
      check_collectd_mlab.assert_collectd_vsys_setup()
예제 #5
0
  def testunit_assert_collectd_vsys_setup_WHEN_vsys_backend_is_missing(self):
    check_collectd_mlab.VSYSPATH_BACKEND = 'does_not_exist'

    with self.assertRaises(check_collectd_mlab.MissingVsysBackendError):
      check_collectd_mlab.assert_collectd_vsys_setup()