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

Add createReadStream payload support #50

Merged
merged 1 commit into from
Nov 16, 2016
Merged

Add createReadStream payload support #50

merged 1 commit into from
Nov 16, 2016

Conversation

MrHen
Copy link
Collaborator

@MrHen MrHen commented Oct 6, 2016

I have a scenario where I need to test S3 streams. This feature would save me a lot of trouble.

@@ -48,6 +48,7 @@ test('AWS.mock function should mock AWS service and method on the service', func
s3.getObject({Bucket: 'b', notKey: 'k'}, function(err, data) {
st.ok(err);
st.notOk(data);
awsMock.restore('S3', 'getObject');
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm not sure why these were missing and/or necessary but later tests would not get the appropriate mocks unless these restore calls were added.

@codecov-io
Copy link

codecov-io commented Oct 6, 2016

Current coverage is 99.10% (diff: 100%)

No coverage report found for master at b5dc6e9.

Powered by Codecov. Last update b5dc6e9...61afab1

@MrHen
Copy link
Collaborator Author

MrHen commented Oct 10, 2016

@nelsonic not sure what the normal PR procedure is for this repo. Anything in particular I need to do?

@bdruth
Copy link

bdruth commented Oct 13, 2016

👍 Would like to see this as well.

@jonathannaguin
Copy link

When can we expect this to be merged?

@rmatec
Copy link

rmatec commented Oct 31, 2016

This is a very useful feature. Could we have it merged please?

@nelsonic
Copy link
Member

@MrHen thanks very much for adding this feature. (really sorry to keep you waiting for the PR...)
We usually require an update to the Readme to inform others that the feature is available.
But it seems a reasonably "expected" feature to have so happy to merge. thanks!

@nelsonic nelsonic merged commit 9141665 into dwyl:master Nov 16, 2016
@nelsonic
Copy link
Member

@MrHen new version on NPM: aws-sdk-mock@1.6.0 contains your changes. 👍 (thanks again!)

@MrHen MrHen deleted the feature/createReadStream-payloads branch November 16, 2016 22:03
@MrHen
Copy link
Collaborator Author

MrHen commented Nov 16, 2016

@nelsonic Thanks! Sorry for pestering so much. :)

@nelsonic
Copy link
Member

@MrHen not at all. you did a superb job of adding the functionality with tests! ❤️ (thanks!)

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.

None yet

6 participants