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

approval testing #715

Merged
merged 6 commits into from
Dec 4, 2023
Merged

approval testing #715

merged 6 commits into from
Dec 4, 2023

Conversation

tyrcho
Copy link
Contributor

@tyrcho tyrcho commented Nov 29, 2023

to run the tests

pip install boto3 mock approvaltests
python -m unittest discover ./aws/logs_monitoring/

@github-actions github-actions bot added the aws label Nov 29, 2023
@tyrcho tyrcho force-pushed the michel.daviot/approvals branch 3 times, most recently from 01eb7b6 to c1e40f6 Compare November 30, 2023 10:57
@tyrcho tyrcho force-pushed the michel.daviot/approvals branch from c1e40f6 to bd43187 Compare November 30, 2023 10:58
metadata,
)
verify_as_json(list(awslogs_handler(event, context, metadata)))
verify_as_json(metadata, options=NamerFactory.with_parameters("metadata"))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ge0Aja that's a useful pattern when we really want to approve 2 different things in the same test. Ideally there would be only one verify/assert but this is acceptable.

@tyrcho tyrcho marked this pull request as ready for review December 4, 2023 13:05
Copy link
Contributor

@ge0Aja ge0Aja left a comment

Choose a reason for hiding this comment

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

LGTM

@tyrcho tyrcho merged commit cc3236c into master Dec 4, 2023
12 checks passed
@tyrcho tyrcho deleted the michel.daviot/approvals branch December 4, 2023 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants