maying/azure-sdk-for-node — pull request #1 by maying (2012-11-21 22:04:25+00:00)
Title: Blob snapshot sample automation

This pull request contains
- the automation of the blob snapshot sample
- some changes to the sample itself

This blob snapshot sample was modified in such a way that the test references the sample itself (to avoid duplicating code). Note that the sample is still runnable on it's own.

This new test is added in a new folder called 'endtoend' under the existing 'test' directory.

Here is more details of what has been changed in the sample:
1. Created SnapshotSample class to capture all the constant string (i.e. blob IDs and blob content) and the functions/operations/steps of the sample. This class will be exported out so that the test could use them.
2. Used async's series to manage the control flow of the sample. This changes involves passing in a callback to each of the steps/functions.
3. Modified sample step #6 from 'promoting a snapshot' to 'reading from a snapshot' to demonostrate the common scenario of reading blob content from a snapshot.
4. Added ReadBlobContent and use this throughout the test/sample.