-
Notifications
You must be signed in to change notification settings - Fork 17
Update lambdas for testing and include in test run #507
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 9105 lines exceeds the maximum allowed for the inline comments feature.
44d15c8
to
e3e7479
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 9109 lines exceeds the maximum allowed for the inline comments feature.
e3e7479
to
94d124b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 7442 lines exceeds the maximum allowed for the inline comments feature.
94d124b
to
7d60e80
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 5658 lines exceeds the maximum allowed for the inline comments feature.
7d60e80
to
e8f210a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 5431 lines exceeds the maximum allowed for the inline comments feature.
e8f210a
to
92c80cb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 5437 lines exceeds the maximum allowed for the inline comments feature.
I've trimmed this PR down to just the bare bones of introducing the testing setup and having it run on CI. The eventbrite lambda tests will be added in follow-up PRs for easier review. |
@@ -7,3 +7,7 @@ WORKDIR /lambdas-test/ | |||
RUN npm install | |||
|
|||
COPY . /lambdas-test/ | |||
|
|||
RUN cd eventbrite && npm install |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the WORKDIR
is set to /lambdas-test/
will each of these commands need to CD back up a level or is RUN always running from the work director?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@apoclyps Yea, if I understand it correctly:
WORKDIR
"sets the working directory" (https://docs.docker.com/engine/reference/builder/#workdir) that things likeRUN
will execute inRUN
s are isolated (other than persisted side effects, eg. file system changes).
So everything should be within the lambdas-test
directory, and every RUN
will start from there and cd
down.
92c80cb
to
73ab826
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 5437 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job on breaking these down into smaller PRS
LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 9115 lines exceeds the maximum allowed for the inline comments feature.
eb97537
to
2a69034
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 9115 lines exceeds the maximum allowed for the inline comments feature.
Code Climate has analyzed commit 2a69034 and detected 0 issues on this pull request. View more on Code Climate. |
What's Changed
Add initial lambda tests and sets up the tooling to have these run as part of CI. All lambdas currently have only placeholder tests to confirm handler functions are exported.
Follow-up PRs will add lambda specific tests to cover implemented functionality.