From bd6469d53c692effdb04f67ce625b29f2d862d35 Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Thu, 10 Mar 2022 16:47:21 +0100 Subject: [PATCH] Fix references to start and end dates The lease attributes are called start_date and end_date, not start_time and end_time. Change-Id: I77fb08a3811ed1445e31b3552ca23d5bfc43a07d --- blazar/tests/db/sqlalchemy/test_sqlalchemy_api.py | 2 +- doc/source/admin/usage-enforcement.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/blazar/tests/db/sqlalchemy/test_sqlalchemy_api.py b/blazar/tests/db/sqlalchemy/test_sqlalchemy_api.py index 596e8350..3ce9faf2 100644 --- a/blazar/tests/db/sqlalchemy/test_sqlalchemy_api.py +++ b/blazar/tests/db/sqlalchemy/test_sqlalchemy_api.py @@ -332,7 +332,7 @@ class SQLAlchemyDBApiTestCase(tests.DBTestCase): self.assertEqual(['1', '2'], db_api.lease_list()) def test_lease_update(self): - """Update both start_time and name and check lease has been updated.""" + """Update both start_date and name and check lease has been updated.""" result = _create_physical_lease() result = db_api.lease_update(result['id'], values={'name': 'lease_renamed'}) diff --git a/doc/source/admin/usage-enforcement.rst b/doc/source/admin/usage-enforcement.rst index 2ae96f08..f1018586 100644 --- a/doc/source/admin/usage-enforcement.rst +++ b/doc/source/admin/usage-enforcement.rst @@ -39,7 +39,7 @@ as follows: MaxLeaseDurationFilter ---------------------- -This filter simply examines the lease ``start_time`` and ``end_time`` +This filter simply examines the lease ``start_date`` and ``end_date`` attributes and rejects the lease if its duration exceeds a threshold. It supports two configuration options: