Ran the URL script

This commit is contained in:
Mitchell Hynes 2022-02-17 16:01:40 -03:30
parent 4ec492452e
commit 0776ae1f52
2 changed files with 2 additions and 2 deletions

View File

@ -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")),
] ]

View File

@ -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': {