moto 4.2.4.dev7__py2.py3-none-any.whl → 4.2.4.dev12__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 CHANGED
@@ -212,7 +212,7 @@ mock_all = MockAll
212
212
  # logging.getLogger('boto').setLevel(logging.CRITICAL)
213
213
 
214
214
  __title__ = "moto"
215
- __version__ = "4.2.4.dev7"
215
+ __version__ = "4.2.4.dev12"
216
216
 
217
217
 
218
218
  try:
moto/ecs/models.py CHANGED
@@ -1138,6 +1138,14 @@ class EC2ContainerServiceBackend(BaseBackend):
1138
1138
  pid_mode: Optional[str] = None,
1139
1139
  ephemeral_storage: Optional[Dict[str, int]] = None,
1140
1140
  ) -> TaskDefinition:
1141
+
1142
+ if requires_compatibilities and "FARGATE" in requires_compatibilities:
1143
+ # TODO need more validation for Fargate
1144
+ if pid_mode and pid_mode != "task":
1145
+ raise EcsClientException(
1146
+ f"Tasks using the Fargate launch type do not support pidMode '{pid_mode}'. The supported value for pidMode is 'task'."
1147
+ )
1148
+
1141
1149
  if family in self.task_definitions:
1142
1150
  last_id = self._get_last_task_definition_revision_id(family)
1143
1151
  revision = (last_id or 0) + 1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: moto
3
- Version: 4.2.4.dev7
3
+ Version: 4.2.4.dev12
4
4
  Home-page: https://github.com/getmoto/moto
5
5
  Author: Steve Pulec
6
6
  Author-email: "spulec@gmail.com"
@@ -1,4 +1,4 @@
1
- moto/__init__.py,sha256=hBILQ-pLuM-4JTFvG4y4wNyU0gWoHRE3OKg4Ny7Zj6c,9688
1
+ moto/__init__.py,sha256=hXnCAw-W8_4DxFPYD_2OGbWvQuY65pYExZPpzRFJVy4,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
@@ -465,7 +465,7 @@ moto/ecr/responses.py,sha256=_QRP-cE_3VWyZa2ycW5Wk62ZhFdFTRko8dWdibaH740,11254
465
465
  moto/ecr/urls.py,sha256=Jopdpj_R-YoiQEnju0JOMGr0KSngapSG4AEWuvn4d4o,188
466
466
  moto/ecs/__init__.py,sha256=Vlgmm7cgwuTSh_q6-SutCLYBzQMzrDK_JbdnDCERnuA,155
467
467
  moto/ecs/exceptions.py,sha256=iUACENQnDUxlQFF_gVX3FsUJrhOWOwRVWNxjUTL6gWc,1814
468
- moto/ecs/models.py,sha256=pggpG8YR_q520oIYYEcoIoL32cybWNv8OTEm4riJ6ss,87317
468
+ moto/ecs/models.py,sha256=pmOKxKjdPI9Fel-o893m5Ww9sXfIlvVrTeoleMlrVqg,87697
469
469
  moto/ecs/responses.py,sha256=5aY9odPSqiTZsuaRwbSNGpoCp-nz1ApHx0_l1BFmBxM,22481
470
470
  moto/ecs/urls.py,sha256=5N3PY2YL5Jeqsyk6oxMJmD87U3McmUVM654oguR7GEA,165
471
471
  moto/efs/__init__.py,sha256=bbbQXziyIlZuVWEGHRtTJ9MmVMx7BGRNH514kxqMs0w,155
@@ -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.4.dev7.dist-info/AUTHORS.md,sha256=dDUhasV8HGSkzb7zj7a0b3alnqY0P1LPOyOUNoo8Mpo,2976
1038
- moto-4.2.4.dev7.dist-info/LICENSE,sha256=8S75_TlqE-kIeGMLG0-rRxxu2ct6SM8quyUWKBYyIY4,10834
1039
- moto-4.2.4.dev7.dist-info/METADATA,sha256=wQK53E-gn0rIAfMsB7B5eOBgVnvEXvYZj2Lir6aoY0U,12101
1040
- moto-4.2.4.dev7.dist-info/WHEEL,sha256=iYlv5fX357PQyRT2o6tw1bN-YcKFFHKqB_LwHO5wP-g,110
1041
- moto-4.2.4.dev7.dist-info/entry_points.txt,sha256=aPovbZuFXCwt8_m2vcolpH4Qr3rOF3yXeRElP9Zkauo,49
1042
- moto-4.2.4.dev7.dist-info/top_level.txt,sha256=TETRKAPcAAvoZDkSkwQiZtTSr-1gzaEAXVm9FmZKj8s,5
1043
- moto-4.2.4.dev7.dist-info/RECORD,,
1037
+ moto-4.2.4.dev12.dist-info/AUTHORS.md,sha256=dDUhasV8HGSkzb7zj7a0b3alnqY0P1LPOyOUNoo8Mpo,2976
1038
+ moto-4.2.4.dev12.dist-info/LICENSE,sha256=8S75_TlqE-kIeGMLG0-rRxxu2ct6SM8quyUWKBYyIY4,10834
1039
+ moto-4.2.4.dev12.dist-info/METADATA,sha256=HwohSN9wWO-wiMOT5lLvpI1cc6RjhGNlzdzPNDfHFlY,12102
1040
+ moto-4.2.4.dev12.dist-info/WHEEL,sha256=iYlv5fX357PQyRT2o6tw1bN-YcKFFHKqB_LwHO5wP-g,110
1041
+ moto-4.2.4.dev12.dist-info/entry_points.txt,sha256=aPovbZuFXCwt8_m2vcolpH4Qr3rOF3yXeRElP9Zkauo,49
1042
+ moto-4.2.4.dev12.dist-info/top_level.txt,sha256=TETRKAPcAAvoZDkSkwQiZtTSr-1gzaEAXVm9FmZKj8s,5
1043
+ moto-4.2.4.dev12.dist-info/RECORD,,