Skip to content

Commit

Permalink
test: Increase start-api tests timeouts
Browse files Browse the repository at this point in the history
The start-api tests take longer on Windows, so we increase the timeout
so they don't fail.
  • Loading branch information
valerena committed Feb 11, 2025
1 parent 6bd3eb5 commit 77a53ad
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
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

0 comments on commit 77a53ad

Please sign in to comment.