Azure/azure-sdk-tools — pull request #2587 by yugangw-msft (2014-05-21 22:53:42+00:00)
Title: Managed cache scenario test (can run under mock)

Notes (please read)
1. To get the test run mocked, I will have to fix up the service name and region for 2 reasons so that the http mock will be able to find match
a. The cache service needs parent cloud service whose name will need to calculated based on region and subscription name. If i change region name in test, then mock can't match during playback
b. The PS doesn't have smart matching with randon name, though hydra-spec has, and we can improve
2. I create a static field inside TestMockSupport for 2 reasons
a. The PS has a step of 'resource provider registration' which doesn't go through HTTP mock server, and I need a way to bypass it
b. The pool delay in the command is too significant taht slow down the test badly, and we need a way to bypass it