localstack-core 4.13.2.dev108__py3-none-any.whl → 4.13.2.dev110__py3-none-any.whl
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.
- localstack/services/sqs/provider.py +17 -19
- localstack/version.py +2 -2
- {localstack_core-4.13.2.dev108.dist-info → localstack_core-4.13.2.dev110.dist-info}/METADATA +1 -1
- {localstack_core-4.13.2.dev108.dist-info → localstack_core-4.13.2.dev110.dist-info}/RECORD +9 -10
- {localstack_core-4.13.2.dev108.dist-info → localstack_core-4.13.2.dev110.dist-info}/entry_points.txt +0 -1
- localstack/utils/analytics/service_providers.py +0 -19
- {localstack_core-4.13.2.dev108.data → localstack_core-4.13.2.dev110.data}/scripts/localstack-supervisor +0 -0
- {localstack_core-4.13.2.dev108.dist-info → localstack_core-4.13.2.dev110.dist-info}/WHEEL +0 -0
- {localstack_core-4.13.2.dev108.dist-info → localstack_core-4.13.2.dev110.dist-info}/licenses/LICENSE.txt +0 -0
- {localstack_core-4.13.2.dev108.dist-info → localstack_core-4.13.2.dev110.dist-info}/top_level.txt +0 -0
|
@@ -813,7 +813,7 @@ class SqsProvider(SqsApi, ServiceLifecycleHook):
|
|
|
813
813
|
queue_name, context.region, context.account_id, attributes, tags
|
|
814
814
|
)
|
|
815
815
|
if tags:
|
|
816
|
-
self._tag_queue(
|
|
816
|
+
self._tag_queue(queue, tags)
|
|
817
817
|
|
|
818
818
|
LOG.debug("creating queue key=%s attributes=%s tags=%s", queue_name, attributes, tags)
|
|
819
819
|
|
|
@@ -940,7 +940,7 @@ class SqsProvider(SqsApi, ServiceLifecycleHook):
|
|
|
940
940
|
store.queues[queue.name].shutdown()
|
|
941
941
|
del store.queues[queue.name]
|
|
942
942
|
store.deleted[queue.name] = time.time()
|
|
943
|
-
self._remove_all_queue_tags(
|
|
943
|
+
self._remove_all_queue_tags(queue)
|
|
944
944
|
|
|
945
945
|
def get_queue_attributes(
|
|
946
946
|
self,
|
|
@@ -1492,20 +1492,20 @@ class SqsProvider(SqsApi, ServiceLifecycleHook):
|
|
|
1492
1492
|
return
|
|
1493
1493
|
|
|
1494
1494
|
queue = self._resolve_queue(context, queue_url=queue_url)
|
|
1495
|
-
self._tag_queue(
|
|
1495
|
+
self._tag_queue(queue, tags)
|
|
1496
1496
|
|
|
1497
1497
|
def list_queue_tags(
|
|
1498
1498
|
self, context: RequestContext, queue_url: String, **kwargs
|
|
1499
1499
|
) -> ListQueueTagsResult:
|
|
1500
1500
|
queue = self._resolve_queue(context, queue_url=queue_url)
|
|
1501
|
-
tags = self._get_queue_tags(
|
|
1501
|
+
tags = self._get_queue_tags(queue)
|
|
1502
1502
|
return ListQueueTagsResult(Tags=tags if tags else None)
|
|
1503
1503
|
|
|
1504
1504
|
def untag_queue(
|
|
1505
1505
|
self, context: RequestContext, queue_url: String, tag_keys: TagKeyList, **kwargs
|
|
1506
1506
|
) -> None:
|
|
1507
1507
|
queue = self._resolve_queue(context, queue_url=queue_url)
|
|
1508
|
-
self._untag_queue(
|
|
1508
|
+
self._untag_queue(queue, tag_keys)
|
|
1509
1509
|
|
|
1510
1510
|
def add_permission(
|
|
1511
1511
|
self,
|
|
@@ -1643,23 +1643,21 @@ class SqsProvider(SqsApi, ServiceLifecycleHook):
|
|
|
1643
1643
|
self._cloudwatch_publish_worker.stop()
|
|
1644
1644
|
self._cloudwatch_dispatcher.shutdown()
|
|
1645
1645
|
|
|
1646
|
-
def _get_queue_tags(self,
|
|
1647
|
-
store = self.get_store(account_id, region)
|
|
1648
|
-
return store.tags.get_tags(
|
|
1646
|
+
def _get_queue_tags(self, queue: SqsQueue) -> TagMap:
|
|
1647
|
+
store = self.get_store(queue.account_id, queue.region)
|
|
1648
|
+
return store.tags.get_tags(queue.arn)
|
|
1649
1649
|
|
|
1650
|
-
def _tag_queue(self,
|
|
1651
|
-
store = self.get_store(account_id, region)
|
|
1652
|
-
store.tags.update_tags(
|
|
1650
|
+
def _tag_queue(self, queue: SqsQueue, tags: TagMap) -> None:
|
|
1651
|
+
store = self.get_store(queue.account_id, queue.region)
|
|
1652
|
+
store.tags.update_tags(queue.arn, tags)
|
|
1653
1653
|
|
|
1654
|
-
def _untag_queue(
|
|
1655
|
-
self
|
|
1656
|
-
|
|
1657
|
-
store = self.get_store(account_id, region)
|
|
1658
|
-
store.tags.delete_tags(resource_arn, tag_keys)
|
|
1654
|
+
def _untag_queue(self, queue: SqsQueue, tag_keys: TagKeyList) -> None:
|
|
1655
|
+
store = self.get_store(queue.account_id, queue.region)
|
|
1656
|
+
store.tags.delete_tags(queue.arn, tag_keys)
|
|
1659
1657
|
|
|
1660
|
-
def _remove_all_queue_tags(self,
|
|
1661
|
-
store = self.get_store(account_id, region)
|
|
1662
|
-
store.tags.delete_all_tags(
|
|
1658
|
+
def _remove_all_queue_tags(self, queue: SqsQueue) -> None:
|
|
1659
|
+
store = self.get_store(queue.account_id, queue.region)
|
|
1660
|
+
store.tags.delete_all_tags(queue.arn)
|
|
1663
1661
|
|
|
1664
1662
|
|
|
1665
1663
|
def resolve_queue_location(
|
localstack/version.py
CHANGED
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '4.13.2.
|
|
32
|
-
__version_tuple__ = version_tuple = (4, 13, 2, '
|
|
31
|
+
__version__ = version = '4.13.2.dev110'
|
|
32
|
+
__version_tuple__ = version_tuple = (4, 13, 2, 'dev110')
|
|
33
33
|
|
|
34
34
|
__commit_id__ = commit_id = None
|
|
@@ -4,7 +4,7 @@ localstack/deprecations.py,sha256=g0E-_q3apmHlOET2Gg5_biUtN2b4XygnI5aeeaZm6ZY,15
|
|
|
4
4
|
localstack/openapi.yaml,sha256=jFUzv-NKkJttxb8HRrmKiNYOmJD-zVfPxG3DDMrRwfg,30865
|
|
5
5
|
localstack/plugins.py,sha256=BIJC9dlo0WbP7lLKkCiGtd_2q5oeqiHZohvoRTcejXM,2457
|
|
6
6
|
localstack/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
|
-
localstack/version.py,sha256=
|
|
7
|
+
localstack/version.py,sha256=vw6F21DA6CrS1GB2qLTgn-2UW0XGsXtptkjUWxSN-Fo,723
|
|
8
8
|
localstack/aws/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
localstack/aws/accounts.py,sha256=102zpGowOxo0S6UGMpfjw14QW7WCLVAGsnFK5xFMLoo,3043
|
|
10
10
|
localstack/aws/app.py,sha256=n9bJCfJRuMz_gLGAH430c3bIQXgUXeWO5NPfcdL2MV8,5145
|
|
@@ -765,7 +765,7 @@ localstack/services/sqs/constants.py,sha256=gD3DdhEa1gVv4vmc12pCd44BLcH4BZ8h6W0t
|
|
|
765
765
|
localstack/services/sqs/developer_api.py,sha256=fNQNMqCkDyvobRm8g4-ErXjSYQ4O-myYobXA_RneC9o,8004
|
|
766
766
|
localstack/services/sqs/exceptions.py,sha256=aMmTD1Mex37NKndt6_hpj_d0JAZeN3eX0g7r8BlNO7M,570
|
|
767
767
|
localstack/services/sqs/models.py,sha256=0zYGersz4W_zYFwavyCKx95_Mkh9cGQ2cPCqjMLB8eU,53809
|
|
768
|
-
localstack/services/sqs/provider.py,sha256=
|
|
768
|
+
localstack/services/sqs/provider.py,sha256=QDLuyXr0amxmJTfuXNijwH8IWGl1AdHmthrN6XCKBLk,66642
|
|
769
769
|
localstack/services/sqs/query_api.py,sha256=5elf1kDdWlUuH5FJzhs8vWdiB85fziYvFsbivuN5OQQ,8655
|
|
770
770
|
localstack/services/sqs/queue.py,sha256=6iDnFagdMYDApSpZCLG8gtb6n8tf7icwH9Y9bJiT3kI,1786
|
|
771
771
|
localstack/services/sqs/utils.py,sha256=L8i7g7FxAlP1RyvFOk_N_NNNO-M8HVYQku-QcqoOVKI,10773
|
|
@@ -1273,7 +1273,6 @@ localstack/utils/analytics/events.py,sha256=_YHZf_7nKluUi_ZZfvI4QId3onXKisuAXGIS
|
|
|
1273
1273
|
localstack/utils/analytics/logger.py,sha256=-sA_zjptY7o2kOXP2sDduQPzfNwULYIRnoqwKGgsg2Q,1397
|
|
1274
1274
|
localstack/utils/analytics/metadata.py,sha256=M_h0iXZz-nYs0gNuN-g-sgeYtCMKCQoVDC4vezN7nTY,9169
|
|
1275
1275
|
localstack/utils/analytics/publisher.py,sha256=96DqGgLMgyvB5U7mD_UczJ0Wu9p5ti5hCqH_9UZx5_A,5020
|
|
1276
|
-
localstack/utils/analytics/service_providers.py,sha256=2FwjdfuEED-03Kqi49qrwR2QF7opWF7IsE5VEK90VC8,604
|
|
1277
1276
|
localstack/utils/analytics/service_request_aggregator.py,sha256=FEM4gFLbCmK8HF5-PqqDjE63-VVjbSLQ82ESM-O1poE,3988
|
|
1278
1277
|
localstack/utils/analytics/metrics/__init__.py,sha256=APJa7ulgGseR4dl4EPAhKOEuXxxNiP0f_MwLbNmgc4Y,233
|
|
1279
1278
|
localstack/utils/analytics/metrics/api.py,sha256=5TfPqbvfgikMhQYSoT5hOaxTpNUIJo2iQYFOb0e0DgQ,1595
|
|
@@ -1311,10 +1310,10 @@ localstack/utils/server/tcp_proxy.py,sha256=y2NJAmvftTiAYsLU_8qe4W5LGqwUw21i90Pu
|
|
|
1311
1310
|
localstack/utils/xray/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1312
1311
|
localstack/utils/xray/trace_header.py,sha256=ahXk9eonq7LpeENwlqUEPj3jDOCiVRixhntQuxNor-Q,6209
|
|
1313
1312
|
localstack/utils/xray/traceid.py,sha256=GKO-R2sMMjlrH2UaLPXlQlZ6flbE7ZKb6IZMtMu_M5U,1110
|
|
1314
|
-
localstack_core-4.13.2.
|
|
1315
|
-
localstack_core-4.13.2.
|
|
1316
|
-
localstack_core-4.13.2.
|
|
1317
|
-
localstack_core-4.13.2.
|
|
1318
|
-
localstack_core-4.13.2.
|
|
1319
|
-
localstack_core-4.13.2.
|
|
1320
|
-
localstack_core-4.13.2.
|
|
1313
|
+
localstack_core-4.13.2.dev110.data/scripts/localstack-supervisor,sha256=nm1Il2d6ASyOB6Vo4CRHd90w7TK9FdRl9VPp0NN6hUk,6378
|
|
1314
|
+
localstack_core-4.13.2.dev110.dist-info/licenses/LICENSE.txt,sha256=3PC-9Z69UsNARuQ980gNR_JsLx8uvMjdG6C7cc4LBYs,606
|
|
1315
|
+
localstack_core-4.13.2.dev110.dist-info/METADATA,sha256=VKEnhdPk45qJXtdUIFsQb6cr6yNqo25NJBbgMsHG95I,5868
|
|
1316
|
+
localstack_core-4.13.2.dev110.dist-info/WHEEL,sha256=YCfwYGOYMi5Jhw2fU4yNgwErybb2IX5PEwBKV4ZbdBo,91
|
|
1317
|
+
localstack_core-4.13.2.dev110.dist-info/entry_points.txt,sha256=RjwdVn7iE9ehw76CvnylzfeNbWSKO35HLWkGc1Arx6s,20872
|
|
1318
|
+
localstack_core-4.13.2.dev110.dist-info/top_level.txt,sha256=3sqmK2lGac8nCy8nwsbS5SpIY_izmtWtgaTFKHYVHbI,11
|
|
1319
|
+
localstack_core-4.13.2.dev110.dist-info/RECORD,,
|
{localstack_core-4.13.2.dev108.dist-info → localstack_core-4.13.2.dev110.dist-info}/entry_points.txt
RENAMED
|
@@ -157,7 +157,6 @@ _mount_machine_file = localstack.utils.analytics.metadata:_mount_machine_file
|
|
|
157
157
|
|
|
158
158
|
[localstack.hooks.on_infra_ready]
|
|
159
159
|
_run_init_scripts_on_ready = localstack.runtime.init:_run_init_scripts_on_ready
|
|
160
|
-
publish_provider_assignment = localstack.utils.analytics.service_providers:publish_provider_assignment
|
|
161
160
|
|
|
162
161
|
[localstack.hooks.on_infra_shutdown]
|
|
163
162
|
_run_init_scripts_on_shutdown = localstack.runtime.init:_run_init_scripts_on_shutdown
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
from localstack.runtime import hooks
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
@hooks.on_runtime_ready()
|
|
5
|
-
def publish_provider_assignment():
|
|
6
|
-
"""
|
|
7
|
-
Publishes the service provider assignment to the analytics service.
|
|
8
|
-
"""
|
|
9
|
-
|
|
10
|
-
from localstack.config import SERVICE_PROVIDER_CONFIG
|
|
11
|
-
from localstack.services.plugins import SERVICE_PLUGINS
|
|
12
|
-
from localstack.utils.analytics import log
|
|
13
|
-
|
|
14
|
-
provider_assignment = {
|
|
15
|
-
service: f"localstack.aws.provider/{service}:{SERVICE_PROVIDER_CONFIG[service]}"
|
|
16
|
-
for service in SERVICE_PLUGINS.list_available()
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
log.event("ls_service_provider_assignment", provider_assignment)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{localstack_core-4.13.2.dev108.dist-info → localstack_core-4.13.2.dev110.dist-info}/top_level.txt
RENAMED
|
File without changes
|