Skip to content

Commit 4adf4c5

Browse files
Merge branch 'release-1.42.56'
* release-1.42.56: Bumping version to 1.42.56 Update changelog based on model updates Fix flaky S3 bucket name generation in integration tests (#9778) Add 'wire' as a valid value for cli_timestamp_format. (#9800)
2 parents df5bcef + 08cbdf0 commit 4adf4c5

File tree

10 files changed

+68
-17
lines changed

10 files changed

+68
-17
lines changed

.changes/1.42.56.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
[
2+
{
3+
"category": "``dynamodb``",
4+
"description": "Add AccountID based endpoint metric to endpoint rules.",
5+
"type": "api-change"
6+
},
7+
{
8+
"category": "``emr``",
9+
"description": "Added RECONFIGURING to the InstanceFleetState convenience enum.",
10+
"type": "api-change"
11+
},
12+
{
13+
"category": "``endpoint-rules``",
14+
"description": "Update endpoint-rules command to latest version",
15+
"type": "api-change"
16+
},
17+
{
18+
"category": "``mediaconvert``",
19+
"description": "This release adds the ability to set resolution for the black video generator and also adds the StartJobsQuery and GetJobsQueryResults APIs which allow asynchronous search of job history using new filters.",
20+
"type": "api-change"
21+
},
22+
{
23+
"category": "``meteringmarketplace``",
24+
"description": "Added ClientToken parameter to MeterUsage API for specifying idempotent requests.",
25+
"type": "api-change"
26+
},
27+
{
28+
"category": "timestamps",
29+
"description": "Add ``wire`` as a valid value for ``cli_timestamp_format``.",
30+
"type": "enhancement"
31+
}
32+
]

CHANGELOG.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22
CHANGELOG
33
=========
44

5+
1.42.56
6+
=======
7+
8+
* api-change:``dynamodb``: Add AccountID based endpoint metric to endpoint rules.
9+
* api-change:``emr``: Added RECONFIGURING to the InstanceFleetState convenience enum.
10+
* api-change:``endpoint-rules``: Update endpoint-rules command to latest version
11+
* api-change:``mediaconvert``: This release adds the ability to set resolution for the black video generator and also adds the StartJobsQuery and GetJobsQueryResults APIs which allow asynchronous search of job history using new filters.
12+
* api-change:``meteringmarketplace``: Added ClientToken parameter to MeterUsage API for specifying idempotent requests.
13+
* enhancement:timestamps: Add ``wire`` as a valid value for ``cli_timestamp_format``.
14+
15+
516
1.42.55
617
=======
718

awscli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
import os
2020

21-
__version__ = '1.42.55'
21+
__version__ = '1.42.56'
2222

2323
#
2424
# Get our data path to be added to botocore's search path

awscli/customizations/scalarparse.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,19 @@ def add_timestamp_parser(session):
4949
try:
5050
timestamp_format = session.get_scoped_config().get(
5151
'cli_timestamp_format',
52-
'none')
52+
'wire')
5353
except ProfileNotFound:
5454
# If a --profile is provided that does not exist, loading
5555
# a value from get_scoped_config will crash the CLI.
5656
# This function can be called as the first handler for
5757
# the session-initialized event, which happens before a
5858
# profile can be created, even if the command would have
5959
# successfully created a profile. Instead of crashing here
60-
# on a ProfileNotFound the CLI should just use 'none'.
61-
timestamp_format = 'none'
62-
if timestamp_format == 'none':
60+
# on a ProfileNotFound the CLI should just use 'wire'.
61+
timestamp_format = 'wire'
62+
# We also support 'none' for backwards compatibility reasons, though we
63+
# document 'wire' instead.
64+
if timestamp_format == 'wire' or timestamp_format == 'none':
6365
# For backwards compatibility reasons, we replace botocore's timestamp
6466
# parser (which parses to a datetime.datetime object) with the
6567
# identity function which prints the date exactly the same as it comes
@@ -69,7 +71,7 @@ def add_timestamp_parser(session):
6971
timestamp_parser = iso_format
7072
else:
7173
raise ValueError('Unknown cli_timestamp_format value: %s, valid values'
72-
' are "none" or "iso8601"' % timestamp_format)
74+
' are "none", "wire" or "iso8601"' % timestamp_format)
7375
factory.set_parser_defaults(timestamp_parser=timestamp_parser)
7476

7577

awscli/topics/config-vars.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ The valid values of the ``output`` configuration variable are:
9898
``cli_timestamp_format`` controls the format of timestamps displayed by the AWS CLI.
9999
The valid values of the ``cli_timestamp_format`` configuration variable are:
100100

101-
* none - Display the timestamp exactly as received from the HTTP response.
101+
* wire - Display the timestamp exactly as received from the HTTP response.
102102
* iso8601 - Reformat timestamp using iso8601 in the UTC timezone.
103103

104104
``cli_follow_urlparam`` controls whether or not the CLI will attempt to follow

doc/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
# The short X.Y version.
5353
version = '1.42.'
5454
# The full version, including alpha/beta/rc tags.
55-
release = '1.42.55'
55+
release = '1.42.56'
5656

5757
# The language for content autogenerated by Sphinx. Refer to documentation
5858
# for a list of supported languages.

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ universal = 0
33

44
[metadata]
55
requires_dist =
6-
botocore==1.40.55
6+
botocore==1.40.56
77
docutils>=0.18.1,<=0.19
88
s3transfer>=0.14.0,<0.15.0
99
PyYAML>=3.10,<6.1

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def find_version(*file_paths):
2424

2525

2626
install_requires = [
27-
'botocore==1.40.55',
27+
'botocore==1.40.56',
2828
'docutils>=0.18.1,<=0.19',
2929
's3transfer>=0.14.0,<0.15.0',
3030
'PyYAML>=3.10,<6.1',

tests/integration/test_cli.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
import signal
1515
import os
1616
import tempfile
17-
import random
1817
import shutil
1918

2019
import botocore.session
2120
from awscli.testutils import unittest, aws, BaseS3CLICommand
2221
from awscli.testutils import temporary_file
2322
from awscli.testutils import skip_if_windows
23+
from awscli.testutils import random_bucket_name
2424
from awscli.clidriver import create_clidriver
2525

2626

@@ -159,8 +159,7 @@ def test_param_with_file(self):
159159
def test_streaming_output_operation(self):
160160
d = tempfile.mkdtemp()
161161
self.addCleanup(shutil.rmtree, d)
162-
bucket_name = 'clistream' + str(
163-
int(time.time())) + str(random.randint(1, 100))
162+
bucket_name = random_bucket_name('clistream')
164163

165164
self.put_object(bucket=bucket_name, key='foobar',
166165
content='foobar contents')
@@ -179,8 +178,7 @@ def test_no_sign_request(self):
179178
env_vars['AWS_ACCESS_KEY_ID'] = 'foo'
180179
env_vars['AWS_SECRET_ACCESS_KEY'] = 'bar'
181180

182-
bucket_name = 'nosign' + str(
183-
int(time.time())) + str(random.randint(1, 100))
181+
bucket_name = random_bucket_name('nosign')
184182
self.put_object(bucket_name, 'foo', content='bar',
185183
extra_args={'ACL': 'public-read-write'})
186184

@@ -203,8 +201,7 @@ def test_no_sign_request(self):
203201
def test_no_paginate_arg(self):
204202
d = tempfile.mkdtemp()
205203
self.addCleanup(shutil.rmtree, d)
206-
bucket_name = 'nopaginate' + str(
207-
int(time.time())) + str(random.randint(1, 100))
204+
bucket_name = random_bucket_name('nopaginate')
208205

209206
self.put_object(bucket=bucket_name, key='foobar',
210207
content='foobar contents')

tests/unit/customizations/test_scalarparse.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ def test_choose_none_timestamp_formatter(self):
4949
factory.set_parser_defaults.assert_called_with(
5050
timestamp_parser=scalarparse.identity)
5151

52+
def test_choose_wire_timestamp_formatter(self):
53+
session = mock.Mock(spec=Session)
54+
session.get_scoped_config.return_value = {'cli_timestamp_format':
55+
'wire'}
56+
factory = session.get_component.return_value
57+
scalarparse.add_scalar_parsers(session)
58+
factory.set_parser_defaults.assert_called_with(
59+
timestamp_parser=scalarparse.identity)
60+
5261
def test_choose_iso_timestamp_formatter(self):
5362
session = mock.Mock(spec=Session)
5463
session.get_scoped_config.return_value = {'cli_timestamp_format':

0 commit comments

Comments
 (0)