Skip to content

Commit

Permalink
Remove redundant CodeSize verify skip
Browse files Browse the repository at this point in the history
Is already part of the default transformer
  • Loading branch information
joe4dev committed Mar 1, 2023
1 parent 6d60f90 commit 25e9a0f
Showing 1 changed file with 18 additions and 23 deletions.
41 changes: 18 additions & 23 deletions tests/integration/awslambda/test_lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,28 +156,24 @@ def fixture_snapshot(snapshot):


# some more common ones that usually don't work in the old provider
if is_old_provider():
pytestmark = pytest.mark.skip_snapshot_verify(
paths=[
"$..Architectures",
"$..EphemeralStorage",
"$..LastUpdateStatus",
"$..MemorySize",
"$..State",
"$..StateReason",
"$..StateReasonCode",
"$..VpcConfig",
"$..CodeSigningConfig",
"$..Environment", # missing
"$..HTTPStatusCode", # 201 vs 200
"$..Layers",
"$..SnapStart",
],
)
else:
pytestmark = pytest.mark.skip_snapshot_verify(
paths=["$..CodeSize"], # FIXME
)
pytestmark = pytest.mark.skip_snapshot_verify(
condition=is_old_provider,
paths=[
"$..Architectures",
"$..EphemeralStorage",
"$..LastUpdateStatus",
"$..MemorySize",
"$..State",
"$..StateReason",
"$..StateReasonCode",
"$..VpcConfig",
"$..CodeSigningConfig",
"$..Environment", # missing
"$..HTTPStatusCode", # 201 vs 200
"$..Layers",
"$..SnapStart",
],
)


class TestLambdaBaseFeatures:
Expand Down Expand Up @@ -208,7 +204,6 @@ def test_large_payloads(self, caplog, lambda_client, create_lambda_function, sna
"$..Tags",
"$..Configuration.RevisionId",
"$..Code.RepositoryType",
"$..CodeSize", # CI reports different code size here,
"$..Layers", # PRO
"$..RuntimeVersionConfig",
],
Expand Down

0 comments on commit 25e9a0f

Please sign in to comment.