Ran the URL script
This commit is contained in:
parent
4ec492452e
commit
0776ae1f52
@ -139,6 +139,7 @@ backend_url_patterns = [
|
|||||||
("sts", re.compile("https?://sts\\.(.*\\.)?amazonaws\\.com")),
|
("sts", re.compile("https?://sts\\.(.*\\.)?amazonaws\\.com")),
|
||||||
("support", re.compile("https?://support\\.(.+)\\.amazonaws\\.com")),
|
("support", re.compile("https?://support\\.(.+)\\.amazonaws\\.com")),
|
||||||
("swf", re.compile("https?://swf\\.(.+)\\.amazonaws\\.com")),
|
("swf", re.compile("https?://swf\\.(.+)\\.amazonaws\\.com")),
|
||||||
|
("textract", re.compile("https?://textract\\.(.+)\\.amazonaws\\.com")),
|
||||||
(
|
(
|
||||||
"timestream-write",
|
"timestream-write",
|
||||||
re.compile("https?://ingest\\.timestream\\.(.+)\\.amazonaws\\.com"),
|
re.compile("https?://ingest\\.timestream\\.(.+)\\.amazonaws\\.com"),
|
||||||
@ -148,7 +149,6 @@ backend_url_patterns = [
|
|||||||
re.compile("https?://ingest\\.timestream\\.(.+)\\.amazonaws\\.com/"),
|
re.compile("https?://ingest\\.timestream\\.(.+)\\.amazonaws\\.com/"),
|
||||||
),
|
),
|
||||||
("transcribe", re.compile("https?://transcribe\\.(.+)\\.amazonaws\\.com")),
|
("transcribe", re.compile("https?://transcribe\\.(.+)\\.amazonaws\\.com")),
|
||||||
("textract", re.compile("https?://textract\\.(.+)\\.amazonaws\\.com")),
|
|
||||||
("wafv2", re.compile("https?://wafv2\\.(.+)\\.amazonaws.com")),
|
("wafv2", re.compile("https?://wafv2\\.(.+)\\.amazonaws.com")),
|
||||||
("xray", re.compile("https?://xray\\.(.+)\\.amazonaws.com")),
|
("xray", re.compile("https?://xray\\.(.+)\\.amazonaws.com")),
|
||||||
]
|
]
|
||||||
|
@ -18,7 +18,7 @@ from moto import mock_textract
|
|||||||
|
|
||||||
@mock_textract
|
@mock_textract
|
||||||
def test_start_document_text_detection():
|
def test_start_document_text_detection():
|
||||||
client = boto3.client("textract", region_name="us-east-2")
|
client = boto3.client("textract", region_name="us-east-1")
|
||||||
resp = client.start_document_text_detection(
|
resp = client.start_document_text_detection(
|
||||||
DocumentLocation={
|
DocumentLocation={
|
||||||
'S3Object': {
|
'S3Object': {
|
||||||
|
Loading…
Reference in New Issue
Block a user