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

Use Azure-Storage-Node in Tests #53

Closed
swissarmykirpan opened this issue Jun 26, 2018 · 12 comments
Closed

Use Azure-Storage-Node in Tests #53

swissarmykirpan opened this issue Jun 26, 2018 · 12 comments
Assignees
Labels
enhancement New feature or request TDD Issues related to testing of Azurite

Comments

@swissarmykirpan
Copy link

Rather than having to recreate the wheel with Http requests, why not use
https://github.com/Azure/azure-storage-node ?

@edwin-huber edwin-huber added enhancement New feature or request TDD Issues related to testing of Azurite labels Jul 2, 2018
@edwin-huber
Copy link
Collaborator

Hi @swissarmykirpan, many thanks for the suggestion.
That's a good idea.
Building out the TDD is on our list of things to do.
Right now we are using the .Net Storage SDK to validate the functionality, but a Node version would make life easier.

@edwin-huber
Copy link
Collaborator

Hi @pmanlukas , can you see if we can incorporate this and update the documentation accordingly?

@pmanlukas
Copy link

Sure, i will investigate this week if we can switch to our SDK for that :)

@swissarmykirpan
Copy link
Author

@edwin-huber @pmanlukas I am happy to do this work if that helps :)

@pmanlukas
Copy link

That would be a great suppport :) Then I would suggest you add the changes and make a pull request and we will review it than in time

@edwin-huber
Copy link
Collaborator

@pdressel maybe you can connect with @swissarmykirpan , as you have been looking at this as well?

@swissarmykirpan
Copy link
Author

swissarmykirpan commented Jul 16, 2018

@edwin-huber @pmanlukas the problem with TDD is that effectively we would have the same tests that the node lib already does - or the c# client already does. Rather than re-implementing all of those tests, what if we forked some of the other client libs and then target a docker container with the tests?

@pdressel
Copy link
Contributor

@swissarmykirpan @edwin-huber @pmanlukas I agree, and azure-storage-node already comes with an exhaustive test suite for free. I was able to make it work by including node-azure-storage as a git submodule and writing a small shim to run their tests directly against Azurite via ´npm test´. This works with the existing pipeline without extra integration, and locking and updating the test code via git submodule is also easy to do.

This could nicely complement PR#58, where we could write additional tests specific to Azurite not covered by the external tests. What do you think?

@swissarmykirpan
Copy link
Author

@pdressel where’s the branch/PR then? 😜

@pmanlukas
Copy link

@pdressel is currently debugging the last issues with the storage tests. It is actually working to use his approach, but running the new storage tests showed some new issues in the code :) we keep you updated

@pmanlukas
Copy link

@swissarmykirpan we just merged the first part of the implementation :)

@edwin-huber
Copy link
Collaborator

We now have Azure Storage Node use in the basic testing, and are using azure-storage-node as our external integration tests.
Closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request TDD Issues related to testing of Azurite
Projects
None yet
Development

No branches or pull requests

4 participants