Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Increase start-api tests timeouts #7883

Merged
merged 1 commit into from
Feb 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class TestInvalidApiTemplateUsingUnsupportedType(WritableStartApiIntegBaseClass)
"""

@pytest.mark.flaky(reruns=3)
@pytest.mark.timeout(timeout=10, method="thread")
@pytest.mark.timeout(timeout=100, method="thread")
def test_invalid_template(self):
self.assertIn(
"Authorizer 'RequestAuthorizer' with type 'notvalid' is currently not supported. "
Expand Down Expand Up @@ -219,7 +219,7 @@ class TestInvalidHttpTemplateUsingIncorrectPayloadVersion(WritableStartApiIntegB
"""

@pytest.mark.flaky(reruns=3)
@pytest.mark.timeout(timeout=10, method="thread")
@pytest.mark.timeout(timeout=100, method="thread")
def test_invalid_template(self):
self.assertIn(
"Error: Lambda Authorizer 'RequestAuthorizerV2Simple' contains an "
Expand Down Expand Up @@ -254,7 +254,7 @@ class TestInvalidHttpTemplateSimpleResponseWithV1(WritableStartApiIntegBaseClass
"""

@pytest.mark.flaky(reruns=3)
@pytest.mark.timeout(timeout=10, method="thread")
@pytest.mark.timeout(timeout=100, method="thread")
def test_invalid_template(self):
self.assertIn(
"Error: 'EnableSimpleResponses' is only supported for '2.0' "
Expand Down Expand Up @@ -289,7 +289,7 @@ class TestInvalidHttpTemplateUnsupportedType(WritableStartApiIntegBaseClass):
"""

@pytest.mark.flaky(reruns=3)
@pytest.mark.timeout(timeout=10, method="thread")
@pytest.mark.timeout(timeout=100, method="thread")
def test_invalid_template(self):
self.assertIn(
"Authorizer 'RequestAuthorizerV2Simple' with type 'unsupportedtype' is currently "
Expand Down Expand Up @@ -323,7 +323,7 @@ class TestInvalidHttpTemplateInvalidIdentitySources(WritableStartApiIntegBaseCla
"""

@pytest.mark.flaky(reruns=3)
@pytest.mark.timeout(timeout=10, method="thread")
@pytest.mark.timeout(timeout=100, method="thread")
def test_invalid_template(self):
self.assertIn(
"Error: Lambda Authorizer RequestAuthorizerV2Simple does not contain valid identity sources.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class TestUsingSimpleResponseWithV1HttpApi(WritableStartApiIntegBaseClass):
"""

@pytest.mark.flaky(reruns=3)
@pytest.mark.timeout(timeout=10, method="thread")
@pytest.mark.timeout(timeout=100, method="thread")
def test_invalid_template(self):
self.assertIn(
"EnableSimpleResponses must be used with the 2.0 payload "
Expand Down Expand Up @@ -210,7 +210,7 @@ class TestInvalidInvalidVersionHttpApi(WritableStartApiIntegBaseClass):
"""

@pytest.mark.flaky(reruns=3)
@pytest.mark.timeout(timeout=10, method="thread")
@pytest.mark.timeout(timeout=100, method="thread")
def test_invalid_template(self):
self.assertIn(
"Error: Lambda Authorizer 'RequestAuthorizerV2' must contain "
Expand Down Expand Up @@ -261,7 +261,7 @@ class TestUsingInvalidFunctionArnHttpApi(WritableStartApiIntegBaseClass):
"""

@pytest.mark.flaky(reruns=3)
@pytest.mark.timeout(timeout=10, method="thread")
@pytest.mark.timeout(timeout=100, method="thread")
def test_invalid_template(self):
self.assertIn(
"Unable to parse the Lambda ARN for Authorizer 'RequestAuthorizerV2', skipping",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ class TestInvalidSwaggerTemplateUsingUnsupportedType(WritableStartApiIntegBaseCl
"""

@pytest.mark.flaky(reruns=3)
@pytest.mark.timeout(timeout=10, method="thread")
@pytest.mark.timeout(timeout=100, method="thread")
def test_invalid_template(self):
self.assertIn(
"Lambda authorizer 'Authorizer' type 'bad type' is unsupported, skipping",
Expand Down Expand Up @@ -223,7 +223,7 @@ class TestInvalidSwaggerTemplateUsingSimpleResponseWithPayloadV1(WritableStartAp
"""

@pytest.mark.flaky(reruns=3)
@pytest.mark.timeout(timeout=10, method="thread")
@pytest.mark.timeout(timeout=100, method="thread")
def test_invalid_template(self):
self.assertIn(
"Simple responses are only available on HTTP APIs with "
Expand Down Expand Up @@ -264,7 +264,7 @@ class TestInvalidSwaggerTemplateUsingUnsupportedPayloadVersion(WritableStartApiI
"""

@pytest.mark.flaky(reruns=3)
@pytest.mark.timeout(timeout=10, method="thread")
@pytest.mark.timeout(timeout=100, method="thread")
def test_invalid_template(self):
self.assertIn(
"Error: Authorizer 'Authorizer' contains an invalid payload version",
Expand Down Expand Up @@ -304,7 +304,7 @@ class TestInvalidSwaggerTemplateUsingInvalidIdentitySources(WritableStartApiInte
"""

@pytest.mark.flaky(reruns=3)
@pytest.mark.timeout(timeout=10, method="thread")
@pytest.mark.timeout(timeout=100, method="thread")
def test_invalid_template(self):
self.assertIn(
"Error: Identity source 'a.b.c.d.e' for Lambda Authorizer "
Expand Down Expand Up @@ -345,7 +345,7 @@ class TestInvalidSwaggerTemplateUsingTokenWithHttpApi(WritableStartApiIntegBaseC
"""

@pytest.mark.flaky(reruns=3)
@pytest.mark.timeout(timeout=10, method="thread")
@pytest.mark.timeout(timeout=100, method="thread")
def test_invalid_template(self):
self.assertIn(
"Type 'token' for Lambda Authorizer 'Authorizer' is unsupported",
Expand Down
Loading