def test_quotas_get_default_taint(self): project = self.useFixture(fixtures.Project(self.openstack)) self.assertRaises(exceptions.Forbidden, self.sentinel.volume.quotas.defaults, project.entity.id)
def test_quotas_get_default(self): project = self.useFixture(fixtures.Project(self.sentinel)) self.sentinel.volume.quotas.defaults(project.entity.id)
def test_quotas_delete(self): project = self.useFixture(fixtures.Project(self.sentinel)) self.sentinel.volume.quotas.update(project.entity.id, **TEST_QUOTA_BODY) self.sentinel.volume.quotas.delete(project.entity.id)
def test_quotas_update_taint(self): project = self.useFixture(fixtures.Project(self.openstack)) self.assertRaises(exceptions.Forbidden, self.sentinel.volume.quotas.update, project.entity.id, **TEST_QUOTA_BODY)
def test_quotas_update(self): project = self.useFixture(fixtures.Project(self.sentinel)) quota = self.sentinel.volume.quotas.update(project.entity.id, **TEST_QUOTA_BODY) self.assertEqual(quota.volumes, TEST_QUOTA)
def test_quotas_get_usage(self): project = self.useFixture(fixtures.Project(self.sentinel)) self.sentinel.volume.quotas.get(project.entity.id, usage=True)