moto 4.2.3.dev40__py2.py3-none-any.whl → 4.2.3.dev42__py2.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.
- moto/__init__.py +1 -1
- moto/ebs/responses.py +3 -3
- moto/elbv2/models.py +7 -0
- {moto-4.2.3.dev40.dist-info → moto-4.2.3.dev42.dist-info}/METADATA +1 -1
- {moto-4.2.3.dev40.dist-info → moto-4.2.3.dev42.dist-info}/RECORD +10 -10
- {moto-4.2.3.dev40.dist-info → moto-4.2.3.dev42.dist-info}/AUTHORS.md +0 -0
- {moto-4.2.3.dev40.dist-info → moto-4.2.3.dev42.dist-info}/LICENSE +0 -0
- {moto-4.2.3.dev40.dist-info → moto-4.2.3.dev42.dist-info}/WHEEL +0 -0
- {moto-4.2.3.dev40.dist-info → moto-4.2.3.dev42.dist-info}/entry_points.txt +0 -0
- {moto-4.2.3.dev40.dist-info → moto-4.2.3.dev42.dist-info}/top_level.txt +0 -0
moto/__init__.py
CHANGED
moto/ebs/responses.py
CHANGED
|
@@ -24,7 +24,7 @@ class EBSResponse(BaseResponse):
|
|
|
24
24
|
return self.start_snapshot()
|
|
25
25
|
|
|
26
26
|
def snapshot_block(self, request: Any, full_url: str, headers: Any) -> TYPE_RESPONSE: # type: ignore[return]
|
|
27
|
-
self.setup_class(request, full_url, headers)
|
|
27
|
+
self.setup_class(request, full_url, headers, use_raw_body=True)
|
|
28
28
|
if request.method == "PUT":
|
|
29
29
|
return self.put_snapshot_block(full_url, headers)
|
|
30
30
|
if request.method == "GET":
|
|
@@ -59,7 +59,7 @@ class EBSResponse(BaseResponse):
|
|
|
59
59
|
self.setup_class(request, full_url, headers)
|
|
60
60
|
snapshot_id = full_url.split("/")[-1]
|
|
61
61
|
status = self.ebs_backend.complete_snapshot(snapshot_id=snapshot_id)
|
|
62
|
-
return
|
|
62
|
+
return 202, {}, json.dumps(status)
|
|
63
63
|
|
|
64
64
|
def put_snapshot_block(self, full_url: str, headers: Any) -> TYPE_RESPONSE:
|
|
65
65
|
"""
|
|
@@ -82,7 +82,7 @@ class EBSResponse(BaseResponse):
|
|
|
82
82
|
data_length=data_length,
|
|
83
83
|
)
|
|
84
84
|
return (
|
|
85
|
-
|
|
85
|
+
201,
|
|
86
86
|
{
|
|
87
87
|
"x-amz-Checksum": checksum,
|
|
88
88
|
"x-amz-Checksum-Algorithm": checksum_algorithm,
|
moto/elbv2/models.py
CHANGED
|
@@ -822,6 +822,13 @@ class ELBv2Backend(BaseBackend):
|
|
|
822
822
|
raise PriorityInUseError()
|
|
823
823
|
|
|
824
824
|
self._validate_actions(fake_actions)
|
|
825
|
+
for action in fake_actions:
|
|
826
|
+
if action.type == "forward":
|
|
827
|
+
found_arns = self._get_target_group_arns_from(action_data=action.data)
|
|
828
|
+
for arn in found_arns:
|
|
829
|
+
target_group = self.target_groups[arn]
|
|
830
|
+
target_group.load_balancer_arns.append(listener.load_balancer_arn)
|
|
831
|
+
|
|
825
832
|
arn = listener_arn.replace(":listener/", ":listener-rule/")
|
|
826
833
|
arn += f"/{mock_random.get_random_hex(16)}"
|
|
827
834
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
moto/__init__.py,sha256=
|
|
1
|
+
moto/__init__.py,sha256=jb-r1nN0jJgovj3_DWyZXVoZm1OV6zItaQdoJeKyyIU,9689
|
|
2
2
|
moto/backend_index.py,sha256=JDpbrcbt5e30v7D8c5IsxbqIDUXTvm4OuClX6V81cJU,10707
|
|
3
3
|
moto/backends.py,sha256=rC9WUMUUWmVmX7ZEfXpVKAQAw6oI8qYobCEPxP2Zv9U,1805
|
|
4
4
|
moto/server.py,sha256=cp8kIe5jVOm7Z2BlNN2AMbTfrRvLBEKSb4mt7O8nu34,2858
|
|
@@ -236,7 +236,7 @@ moto/dynamodbstreams/responses.py,sha256=EfL3PleoAMvkn0l2dC6Lpau32A1hs7XHWzcDx62
|
|
|
236
236
|
moto/dynamodbstreams/urls.py,sha256=XFYQTtyKxY_QgA2b5eca4lOGb1qDREEeh6TTLrTHI9c,168
|
|
237
237
|
moto/ebs/__init__.py,sha256=ITzN6nBfbrbeB72cWfCVq2PD27HRbEEEPrnUR6u7Puc,179
|
|
238
238
|
moto/ebs/models.py,sha256=chzQC2mEqhxscqqApjy15_8oRd1c4Bm59sI3RSK5-ZQ,4892
|
|
239
|
-
moto/ebs/responses.py,sha256=
|
|
239
|
+
moto/ebs/responses.py,sha256=UR1Awej7D4A1rHbCH8KCG6uv-BP7lkBJLwy8A3BUzHs,5891
|
|
240
240
|
moto/ebs/urls.py,sha256=zDcY0k7SKBJaqYrXNsN2Y4QFQajPJ5caFCDJ0aOzJRE,746
|
|
241
241
|
moto/ec2/__init__.py,sha256=0sMoqYQr5f21v9NopovSlhKFVh5Yy5RPj5I8pGbFlPI,115
|
|
242
242
|
moto/ec2/exceptions.py,sha256=Uxt9B5ilUhFpqB0pvb4-m-6Y9Gcs5oMWlWP-JDrxv5g,25422
|
|
@@ -502,7 +502,7 @@ moto/elb/responses.py,sha256=MP_ustVXguy12pQCiJzFh9RsmMUm9lO6n10uW7XFbII,37696
|
|
|
502
502
|
moto/elb/urls.py,sha256=K5tFLDrGEUW6Lgw3dAdLdSl_Cf7V68CmQmRndoVZTvU,1336
|
|
503
503
|
moto/elbv2/__init__.py,sha256=eQgbAgmbB0p4cfE2UMmjtIikZ8RsPKRG-yO1edhQ9ws,163
|
|
504
504
|
moto/elbv2/exceptions.py,sha256=9HpyVzkZoY9PiLqfULupx0dr5Mv4onMD-KARVtr_r0o,5702
|
|
505
|
-
moto/elbv2/models.py,sha256=
|
|
505
|
+
moto/elbv2/models.py,sha256=WpM_L_1GkT1nLC_TvYl6IlkjnVvOQlzp0v3OmUvdM_M,75039
|
|
506
506
|
moto/elbv2/responses.py,sha256=nyxg68e1sax9CpgFwfan05EJ6tPf1kGiKhSKh1JF7Q8,69189
|
|
507
507
|
moto/elbv2/urls.py,sha256=eXzExA_20VjvnCuz0IqYemrQUBrKoAGkgYNYj7opHhE,164
|
|
508
508
|
moto/elbv2/utils.py,sha256=5M0qRxrOzTFCRJeVD1MvCZmzwP1kv2Skg5tFmScN01A,388
|
|
@@ -1034,10 +1034,10 @@ moto/xray/mock_client.py,sha256=nYl8JVJbl3OY-tnUafkVOG4K4-cFm5bsft3Hxo7fKwI,3809
|
|
|
1034
1034
|
moto/xray/models.py,sha256=0QL6nmhpVVwAiyi9aw4pBwVTRhqPW9oIy2uwPDhPKug,11179
|
|
1035
1035
|
moto/xray/responses.py,sha256=p2xsg2-P9h_1DCyuBC7GenmC5L64tXAX6a-XCb2j5-o,6316
|
|
1036
1036
|
moto/xray/urls.py,sha256=R6T3gMwobWipukWcC1DQ36CU1Rjt6oqBDoe-7HqaIZU,393
|
|
1037
|
-
moto-4.2.3.
|
|
1038
|
-
moto-4.2.3.
|
|
1039
|
-
moto-4.2.3.
|
|
1040
|
-
moto-4.2.3.
|
|
1041
|
-
moto-4.2.3.
|
|
1042
|
-
moto-4.2.3.
|
|
1043
|
-
moto-4.2.3.
|
|
1037
|
+
moto-4.2.3.dev42.dist-info/AUTHORS.md,sha256=dDUhasV8HGSkzb7zj7a0b3alnqY0P1LPOyOUNoo8Mpo,2976
|
|
1038
|
+
moto-4.2.3.dev42.dist-info/LICENSE,sha256=8S75_TlqE-kIeGMLG0-rRxxu2ct6SM8quyUWKBYyIY4,10834
|
|
1039
|
+
moto-4.2.3.dev42.dist-info/METADATA,sha256=cIsWAjF13Lp2QJcspJriRpf_CrHDpTNOGovIG7hP64U,12102
|
|
1040
|
+
moto-4.2.3.dev42.dist-info/WHEEL,sha256=iYlv5fX357PQyRT2o6tw1bN-YcKFFHKqB_LwHO5wP-g,110
|
|
1041
|
+
moto-4.2.3.dev42.dist-info/entry_points.txt,sha256=aPovbZuFXCwt8_m2vcolpH4Qr3rOF3yXeRElP9Zkauo,49
|
|
1042
|
+
moto-4.2.3.dev42.dist-info/top_level.txt,sha256=TETRKAPcAAvoZDkSkwQiZtTSr-1gzaEAXVm9FmZKj8s,5
|
|
1043
|
+
moto-4.2.3.dev42.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|