python-blazarclient 4.1.0__tar.gz → 4.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/AUTHORS +2 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/ChangeLog +8 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/PKG-INFO +1 -1
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/tests/v1/shell_commands/test_leases.py +1 -1
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/utils.py +1 -1
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/v1/shell_commands/leases.py +3 -12
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/python_blazarclient.egg-info/PKG-INFO +1 -1
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/python_blazarclient.egg-info/SOURCES.txt +1 -0
- python-blazarclient-4.2.0/python_blazarclient.egg-info/pbr.json +1 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/python_blazarclient.egg-info/requires.txt +1 -1
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/2023.1.rst +1 -1
- python-blazarclient-4.2.0/releasenotes/source/2024.2.rst +6 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/index.rst +1 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/requirements.txt +1 -1
- python-blazarclient-4.1.0/python_blazarclient.egg-info/pbr.json +0 -1
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/.stestr.conf +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/.zuul.yaml +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/HACKING.rst +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/LICENSE +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/MANIFEST.in +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/README.rst +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/__init__.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/base.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/client.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/command.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/exception.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/i18n.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/osc/__init__.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/osc/plugin.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/shell.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/tests/__init__.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/tests/test_base.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/tests/test_client.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/tests/test_command.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/tests/test_plugin.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/tests/test_shell.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/tests/v1/__init__.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/tests/v1/shell_commands/__init__.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/tests/v1/shell_commands/test_floatingips.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/tests/v1/shell_commands/test_hosts.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/v1/__init__.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/v1/allocations.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/v1/client.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/v1/floatingips.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/v1/hosts.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/v1/leases.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/v1/shell_commands/__init__.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/v1/shell_commands/allocations.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/v1/shell_commands/floatingips.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/v1/shell_commands/hosts.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/version.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/doc/requirements.txt +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/python_blazarclient.egg-info/dependency_links.txt +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/python_blazarclient.egg-info/entry_points.txt +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/python_blazarclient.egg-info/not-zip-safe +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/python_blazarclient.egg-info/top_level.txt +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/notes/.placeholder +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/notes/bug-1777548-6b5c770abc6ac360.yaml +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/notes/bug-1783296-set-start-date-to-now-e329a6923c11432f.yaml +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/notes/default-affinity-value-150947560fd7da3c.yaml +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/notes/drop-python2-c3c1601e92a9b87a.yaml +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/notes/flavor-based-instance-reservation-ec9730ddfeabdf15.yaml +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/notes/floatingip-reservation-update-5823a21516135f17.yaml +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/notes/floatingip-support-d184a565f324d31b.yaml +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/notes/host-allocation-fad8e511cb13c0e8.yaml +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/notes/host-resource-property-9ac5c21bd3ca6699.yaml +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/notes/ksa-loading-9731c570772c826a.yaml +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/notes/openstackclient-support-f591eef2dc3c1a8b.yaml +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/notes/parse-required-floatingips-f79f79d652e371ae.yaml +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/notes/respect-selected-region-a409773f851ccb47.yaml +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/notes/separate-id-parser-argument-from-showcommand-ce92d0c52dd1963e.yaml +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/2023.2.rst +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/2024.1.rst +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/_static/.placeholder +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/_templates/.placeholder +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/conf.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/rocky.rst +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/stein.rst +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/train.rst +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/unreleased.rst +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/ussuri.rst +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/victoria.rst +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/wallaby.rst +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/xena.rst +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/yoga.rst +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/zed.rst +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/setup.cfg +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/setup.py +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/test-requirements.txt +0 -0
- {python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/tox.ini +0 -0
|
@@ -39,8 +39,10 @@ Sergey Lukjanov <slukjanov@mirantis.com>
|
|
|
39
39
|
ShangXiao <shangxiaobj@inspur.com>
|
|
40
40
|
Steve Martinelli <s.martinelli@gmail.com>
|
|
41
41
|
Sylvain Bauza <sylvain.bauza@bull.net>
|
|
42
|
+
Takashi Natsume <takanattie@gmail.com>
|
|
42
43
|
Tetsuro Nakamura <nakamura.tetsuro@lab.ntt.co.jp>
|
|
43
44
|
Tetsuro Nakamura <tetsuro.nakamura.bc@hco.ntt.co.jp>
|
|
45
|
+
Thomas Goirand <zigo@debian.org>
|
|
44
46
|
Tony Breeds <tony@bakeyournoodle.com>
|
|
45
47
|
Vieri <15050873171@163.com>
|
|
46
48
|
ZhijunWei <wzj334965317@outlook.com>
|
|
@@ -28,7 +28,7 @@ FIRST_LEASE = 'd1e43d6d-8f6f-4c2e-b0a9-2982b39dc698'
|
|
|
28
28
|
SECOND_LEASE = '424d21c3-45a2-448a-81ad-32eddc888375'
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
@mock.patch('
|
|
31
|
+
@mock.patch('oslo_utils.timeutils.utcnow', mock_time)
|
|
32
32
|
class CreateLeaseTestCase(tests.TestCase):
|
|
33
33
|
|
|
34
34
|
def setUp(self):
|
|
@@ -22,7 +22,7 @@ from oslo_serialization import jsonutils as json
|
|
|
22
22
|
from blazarclient import exception
|
|
23
23
|
from blazarclient.i18n import _
|
|
24
24
|
|
|
25
|
-
ELAPSED_TIME_REGEX = '^(\d+)([s|m|h|d])$'
|
|
25
|
+
ELAPSED_TIME_REGEX = r'^(\d+)([s|m|h|d])$'
|
|
26
26
|
|
|
27
27
|
LEASE_DATE_FORMAT = '%Y-%m-%dT%H:%M:%S.%f'
|
|
28
28
|
API_DATE_FORMAT = '%Y-%m-%d %H:%M'
|
{python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/v1/shell_commands/leases.py
RENAMED
|
@@ -20,6 +20,7 @@ import re
|
|
|
20
20
|
|
|
21
21
|
from oslo_serialization import jsonutils
|
|
22
22
|
from oslo_utils import strutils
|
|
23
|
+
from oslo_utils import timeutils
|
|
23
24
|
|
|
24
25
|
from blazarclient import command
|
|
25
26
|
from blazarclient import exception
|
|
@@ -64,16 +65,6 @@ CREATE_RESERVATION_KEYS = {
|
|
|
64
65
|
}
|
|
65
66
|
|
|
66
67
|
|
|
67
|
-
def _utc_now():
|
|
68
|
-
"""Wrap datetime.datetime.utcnow so it can be mocked in unit tests.
|
|
69
|
-
|
|
70
|
-
This is required because some of the tests require understanding the
|
|
71
|
-
'current time'; simply mocking utcnow() is made very difficult by
|
|
72
|
-
the many different ways the datetime package is used in this module.
|
|
73
|
-
"""
|
|
74
|
-
return datetime.datetime.utcnow()
|
|
75
|
-
|
|
76
|
-
|
|
77
68
|
class ListLeases(command.ListCommand):
|
|
78
69
|
"""Print a list of leases."""
|
|
79
70
|
resource = 'lease'
|
|
@@ -113,7 +104,7 @@ class CreateLeaseBase(command.CreateCommand):
|
|
|
113
104
|
json_indent = 4
|
|
114
105
|
log = logging.getLogger(__name__ + '.CreateLease')
|
|
115
106
|
default_start = 'now'
|
|
116
|
-
default_end =
|
|
107
|
+
default_end = timeutils.utcnow() + datetime.timedelta(days=1)
|
|
117
108
|
|
|
118
109
|
def get_parser(self, prog_name):
|
|
119
110
|
parser = super(CreateLeaseBase, self).get_parser(prog_name)
|
|
@@ -189,7 +180,7 @@ class CreateLeaseBase(command.CreateCommand):
|
|
|
189
180
|
raise exception.IncorrectLease
|
|
190
181
|
|
|
191
182
|
if parsed_args.start == 'now':
|
|
192
|
-
start =
|
|
183
|
+
start = timeutils.utcnow()
|
|
193
184
|
else:
|
|
194
185
|
start = parsed_args.start
|
|
195
186
|
|
{python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/python_blazarclient.egg-info/SOURCES.txt
RENAMED
|
@@ -71,6 +71,7 @@ releasenotes/notes/separate-id-parser-argument-from-showcommand-ce92d0c52dd1963e
|
|
|
71
71
|
releasenotes/source/2023.1.rst
|
|
72
72
|
releasenotes/source/2023.2.rst
|
|
73
73
|
releasenotes/source/2024.1.rst
|
|
74
|
+
releasenotes/source/2024.2.rst
|
|
74
75
|
releasenotes/source/conf.py
|
|
75
76
|
releasenotes/source/index.rst
|
|
76
77
|
releasenotes/source/rocky.rst
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"git_version": "20c3119", "is_release": true}
|
|
@@ -10,6 +10,6 @@ cliff!=2.9.0,>=2.8.0 # Apache-2.0
|
|
|
10
10
|
PrettyTable>=0.7.1 # BSD
|
|
11
11
|
oslo.i18n>=3.15.3 # Apache-2.0
|
|
12
12
|
oslo.log>=3.36.0 # Apache-2.0
|
|
13
|
-
oslo.utils>=
|
|
13
|
+
oslo.utils>=7.0.0 # Apache-2.0
|
|
14
14
|
keystoneauth1>=3.4.0 # Apache-2.0
|
|
15
15
|
osc-lib>=1.3.0 # Apache-2.0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"git_version": "e1f6650", "is_release": true}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/v1/shell_commands/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/blazarclient/v1/shell_commands/hosts.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/python_blazarclient.egg-info/not-zip-safe
RENAMED
|
File without changes
|
{python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/python_blazarclient.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/_static/.placeholder
RENAMED
|
File without changes
|
{python-blazarclient-4.1.0 → python-blazarclient-4.2.0}/releasenotes/source/_templates/.placeholder
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|