Skip to content

test(all): add mock Lambda events payloads generated by other AWS services #10

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

Merged
merged 1 commit into from
Mar 17, 2021

Conversation

saragerion
Copy link
Contributor

@saragerion saragerion commented Mar 13, 2021

Issue #, if available: N/A

Description of changes:

I added some mock JSON payloads we can use in our tests and to generate types, for all the packages.
These are the same payloads you get in the AWS console UI in the Lambda dashboard when you press on the "Test" button.

Checklist

Breaking change checklist

RFC issue #:

  • Migration process documented
  • Implement warnings (if it can live side by side)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@saragerion saragerion added the all label Mar 13, 2021
saragerion added a commit that referenced this pull request Mar 14, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
* feat(logger): basic logger logic

* feat(logger): logger class, log schema, config service

* refactor(logger): rename sample rate and log event enabled variable

* chore(logger): update linting rules

* chore(logger): ignore dummy resources in linting rules

* chore(tests): add dummy Lambda context, custom lambda event

* chore(logger): include examples folder in compiler options

* refactor(logger): folders structure, logger logic, types

* fix(logger): default attributes for child logger

* refactor(logger): remove unnecessary customConfigService parameters in logger class

* chore(logger): remove sort members linting rule

* refactor(logger): simplified formatter and logger logic, update examples and tests

* refactor(logger): remove redundant constructor in config classes

* fix(logger): use UnformattedAttributes as input type for formatting

* fix(logger): environment attributes, polishing

* chore(logger): set logger metadata as default attributes in examples

* refactor(logger): add context enabled variable

* chore(logger): update test run

* build(logger): test workload - add step to install node modules in packages

* fix(logger): broken GH action for test

* build(logger): edit npm scripts

* build(logger): fix GA yaml

* chore(logger): temporarily lowered logger test coverage

* chore(logger): temporarily lowered logger test coverage for lines

* chore(logger): move aws mock events to lambda-events branch, GH-10

* docs(logger): add usage with code examples

* refactor(logger): error input handling, powertoolAttributes, customAttributes in Logger class
@saragerion saragerion merged commit 11fb85a into main Mar 17, 2021
@saragerion saragerion deleted the lambda-events branch March 17, 2021 10:34
saragerion added a commit that referenced this pull request Mar 23, 2021
saragerion added a commit that referenced this pull request Mar 23, 2021
… sources generated by AWS services (#10)"

This reverts commit bb2635e.
@flochaz flochaz mentioned this pull request Dec 6, 2021
10 tasks
@heitorlessa heitorlessa added the internal PRs that introduce changes in governance, tech debt and chores (linting setup, baseline, etc.) label Jan 5, 2022
@saragerion saragerion self-assigned this Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal PRs that introduce changes in governance, tech debt and chores (linting setup, baseline, etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants