Skip to content

fix validation in test for put-subscription-filter with lambda#7894

Merged
steffyP merged 1 commit intomasterfrom
fix_put_filter_subscription_test
Mar 17, 2023
Merged

fix validation in test for put-subscription-filter with lambda#7894
steffyP merged 1 commit intomasterfrom
fix_put_filter_subscription_test

Conversation

@steffyP
Copy link
Member

@steffyP steffyP commented Mar 17, 2023

While adding persistence test for logs, I found that the validation for this test is actually misleading, as it didn't check the lambda-logs which should ensure the actual invocation

@steffyP steffyP temporarily deployed to localstack-ext-tests March 17, 2023 13:21 — with GitHub Actions Inactive
@steffyP steffyP requested a review from dominikschubert March 17, 2023 13:39
@coveralls
Copy link

Coverage Status

Coverage: 85.125% (+0.01%) from 85.113% when pulling a20888a on fix_put_filter_subscription_test into 1dfc637 on master.

Copy link
Member

@dominikschubert dominikschubert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

filtered_events.append(log_event)
assert len(filtered_events) == 2

filtered_events.sort(key=lambda k: k.get("message"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: could be replaced with a sorting transformer

@github-actions
Copy link

LocalStack integration with Pro

       3 files  ±0         3 suites  ±0   1h 41m 28s ⏱️ + 1m 18s
1 806 tests ±0  1 423 ✔️ ±0  383 💤 ±0  0 ±0 
2 524 runs  ±0  1 789 ✔️ ±0  735 💤 ±0  0 ±0 

Results for commit a20888a. ± Comparison against base commit 1dfc637.

@steffyP steffyP merged commit c844c9a into master Mar 17, 2023
@steffyP steffyP deleted the fix_put_filter_subscription_test branch March 17, 2023 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants