Skip to content
This repository has been archived by the owner on Apr 17, 2021. It is now read-only.

Update lambdas for testing and include in test run #507

Merged
merged 3 commits into from
Oct 28, 2018

Conversation

alistairjcbrown
Copy link
Collaborator

@alistairjcbrown alistairjcbrown commented Oct 25, 2018

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.

Copy link

@codeclimate codeclimate bot left a 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.

Copy link

@codeclimate codeclimate bot left a 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.

Copy link

@codeclimate codeclimate bot left a 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.

Copy link

@codeclimate codeclimate bot left a 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.

Copy link

@codeclimate codeclimate bot left a 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.

Copy link

@codeclimate codeclimate bot left a 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.

@alistairjcbrown
Copy link
Collaborator Author

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
Copy link
Owner

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?

Copy link
Collaborator Author

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:

So everything should be within the lambdas-test directory, and every RUN will start from there and cd down.

Copy link

@codeclimate codeclimate bot left a 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.

Copy link
Owner

@apoclyps apoclyps left a 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 👍

Copy link

@codeclimate codeclimate bot left a 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.

Copy link

@codeclimate codeclimate bot left a 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.

@codeclimate
Copy link

codeclimate bot commented Oct 28, 2018

Code Climate has analyzed commit 2a69034 and detected 0 issues on this pull request.

View more on Code Climate.

@alistairjcbrown alistairjcbrown merged commit 82d4f52 into master Oct 28, 2018
@alistairjcbrown alistairjcbrown deleted the update-lambda-testing branch October 28, 2018 11:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants