File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed
sdk/storage/azure-storage-queue
azure/storage/queue/_shared Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 6
6
- Added support for ` max_messages ` in ` receive_messages() ` to specify the maximum number of messages to receive from the queue.
7
7
8
8
### Other Changes
9
+ - Updated SAS token generation to use the latest supported service version by default. Moving to the latest version
10
+ also included a change to how account SAS is generated to reflect a change made to the service in SAS generation for
11
+ service version 2020-12-06.
9
12
- Updated documentation for ` receive_messages() ` to explain iterator behavior and life-cycle.
10
13
- Added a sample to ` queue_samples_message.py ` (and async-equivalent) showcasing the use of ` max_messages ` in ` receive_messages() ` .
11
14
Original file line number Diff line number Diff line change @@ -211,7 +211,9 @@ def get_value_to_append(query):
211
211
get_value_to_append (QueryStringConstants .SIGNED_EXPIRY ) +
212
212
get_value_to_append (QueryStringConstants .SIGNED_IP ) +
213
213
get_value_to_append (QueryStringConstants .SIGNED_PROTOCOL ) +
214
- get_value_to_append (QueryStringConstants .SIGNED_VERSION ))
214
+ get_value_to_append (QueryStringConstants .SIGNED_VERSION ) +
215
+ '\n ' # Signed Encryption Scope - always empty for queue
216
+ )
215
217
216
218
self ._add_query (QueryStringConstants .SIGNED_SIGNATURE ,
217
219
sign_string (account_key , string_to_sign ))
Original file line number Diff line number Diff line change 10
10
QueueServiceClient ,
11
11
QueueClient
12
12
)
13
- from azure .storage .queue ._serialize import _SUPPORTED_API_VERSIONS
13
+ from azure .storage .queue ._shared . constants import X_MS_VERSION
14
14
from devtools_testutils .storage import StorageTestCase
15
15
16
16
# ------------------------------------------------------------------------------
@@ -19,7 +19,7 @@ class StorageClientTest(StorageTestCase):
19
19
def setUp (self ):
20
20
super (StorageClientTest , self ).setUp ()
21
21
self .api_version_1 = "2019-02-02"
22
- self .api_version_2 = _SUPPORTED_API_VERSIONS [ - 1 ]
22
+ self .api_version_2 = X_MS_VERSION
23
23
24
24
# --Test Cases--------------------------------------------------------------
25
25
Original file line number Diff line number Diff line change 13
13
QueueServiceClient ,
14
14
QueueClient
15
15
)
16
- from azure .storage .queue ._serialize import _SUPPORTED_API_VERSIONS
16
+ from azure .storage .queue ._shared . constants import X_MS_VERSION
17
17
from devtools_testutils .storage .aio import AsyncStorageTestCase
18
18
19
19
# ------------------------------------------------------------------------------
@@ -22,7 +22,7 @@ class StorageClientTest(AsyncStorageTestCase):
22
22
def setUp (self ):
23
23
super (StorageClientTest , self ).setUp ()
24
24
self .api_version_1 = "2019-02-02"
25
- self .api_version_2 = _SUPPORTED_API_VERSIONS [ - 1 ]
25
+ self .api_version_2 = X_MS_VERSION
26
26
27
27
# --Test Cases--------------------------------------------------------------
28
28
You can’t perform that action at this time.
0 commit comments