code gen after adding geo filter

This commit is contained in:
Qinyuan Wan 2016-10-27 18:51:27 -07:00
Родитель cd714a2ea4
Коммит fc7e88e8e5
108 изменённых файлов: 6123 добавлений и 4267 удалений

Просмотреть файл

@ -28,7 +28,7 @@ var mappings = {
},
'cdn': {
'dir': 'cdnManagement/lib',
'source': 'arm-cdn/2016-04-02/swagger/cdn.json',
'source': 'arm-cdn/2016-10-02/swagger/cdn.json',
'ft': 2
},
'compute': {

Просмотреть файл

@ -9,6 +9,7 @@
*/
import { ServiceClientOptions, RequestOptions, ServiceCallback, ServiceClientCredentials } from 'ms-rest';
import * as models from "./models";
import * as operations from "./operations";
declare class CdnManagementClient {
@ -17,7 +18,7 @@ declare class CdnManagementClient {
* Initializes a new instance of the CdnManagementClient class.
* @constructor
*
* @param {credentials} credentials - Gets Azure subscription credentials.
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
*
* @param {string} subscriptionId - Azure Subscription ID.
*
@ -32,7 +33,7 @@ declare class CdnManagementClient {
*
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
*
* @param {string} [options.apiVersion] - Version of the API to be used with the client request. Current version is 2016-04-02
* @param {string} [options.apiVersion] - Version of the API to be used with the client request. Current version is 2016-10-02
*
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
*
@ -60,8 +61,55 @@ declare class CdnManagementClient {
endpoints: operations.Endpoints;
origins: operations.Origins;
customDomains: operations.CustomDomains;
nameAvailability: operations.NameAvailability;
operations: operations.Operations;
}
/**
* Check the availability of a resource name without creating the resource.
* This is needed for resources where name is globally unique, such as a CDN
* endpoint.
*
* @param {string} name The resource name to validate.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {ServiceCallback} [callback] callback function; see ServiceCallback
* doc in ms-rest index.d.ts for details
*/
checkNameAvailability(name: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.CheckNameAvailabilityOutput>): void;
checkNameAvailability(name: string, callback: ServiceCallback<models.CheckNameAvailabilityOutput>): void;
/**
* Lists all of the available CDN REST API operations.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {ServiceCallback} [callback] callback function; see ServiceCallback
* doc in ms-rest index.d.ts for details
*/
listOperations(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.OperationListResult>): void;
listOperations(callback: ServiceCallback<models.OperationListResult>): void;
/**
* Lists all of the available CDN REST API operations.
*
* @param {string} nextPageLink The NextLink from the previous successful call
* to List operation.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {ServiceCallback} [callback] callback function; see ServiceCallback
* doc in ms-rest index.d.ts for details
*/
listOperationsNext(nextPageLink: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.OperationListResult>): void;
listOperationsNext(nextPageLink: string, callback: ServiceCallback<models.OperationListResult>): void;
}
export = CdnManagementClient;

Просмотреть файл

@ -18,6 +18,7 @@ var util = require('util');
var msRest = require('ms-rest');
var msRestAzure = require('ms-rest-azure');
var ServiceClient = msRestAzure.AzureServiceClient;
var WebResource = msRest.WebResource;
var models = require('./models');
var operations = require('./operations');
@ -27,7 +28,7 @@ var operations = require('./operations');
* Initializes a new instance of the CdnManagementClient class.
* @constructor
*
* @param {credentials} credentials - Gets Azure subscription credentials.
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
*
* @param {string} subscriptionId - Azure Subscription ID.
*
@ -42,7 +43,7 @@ var operations = require('./operations');
*
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
*
* @param {string} [options.apiVersion] - Version of the API to be used with the client request. Current version is 2016-04-02
* @param {string} [options.apiVersion] - Version of the API to be used with the client request. Current version is 2016-10-02
*
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
*
@ -52,7 +53,7 @@ var operations = require('./operations');
*
*/
function CdnManagementClient(credentials, subscriptionId, baseUri, options) {
this.apiVersion = '2016-04-02';
this.apiVersion = '2016-10-02';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.generateClientRequestId = true;
@ -89,12 +90,423 @@ function CdnManagementClient(credentials, subscriptionId, baseUri, options) {
this.endpoints = new operations.Endpoints(this);
this.origins = new operations.Origins(this);
this.customDomains = new operations.CustomDomains(this);
this.nameAvailability = new operations.NameAvailability(this);
this.operations = new operations.Operations(this);
this.models = models;
msRest.addSerializationMixin(this);
}
util.inherits(CdnManagementClient, ServiceClient);
/**
* Check the availability of a resource name without creating the resource.
* This is needed for resources where name is globally unique, such as a CDN
* endpoint.
*
* @param {string} name The resource name to validate.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {function} callback
*
* @returns {function} callback(err, result, request, response)
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
* {object} [result] - The deserialized result object.
* See {@link CheckNameAvailabilityOutput} for more
* information.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
CdnManagementClient.prototype.checkNameAvailability = function (name, options, callback) {
var client = this;
if(!callback && typeof options === 'function') {
callback = options;
options = null;
}
if (!callback) {
throw new Error('callback cannot be null.');
}
// Validate
try {
if (this.apiVersion === null || this.apiVersion === undefined || typeof this.apiVersion.valueOf() !== 'string') {
throw new Error('this.apiVersion cannot be null or undefined and it must be of type string.');
}
if (name === null || name === undefined || typeof name.valueOf() !== 'string') {
throw new Error('name cannot be null or undefined and it must be of type string.');
}
if (this.acceptLanguage !== null && this.acceptLanguage !== undefined && typeof this.acceptLanguage.valueOf() !== 'string') {
throw new Error('this.acceptLanguage must be of type string.');
}
} catch (error) {
return callback(error);
}
var checkNameAvailabilityInput = new client.models['CheckNameAvailabilityInput']();
try {
if (name !== null && name !== undefined)
{
checkNameAvailabilityInput.name = name;
}
} catch (error) {
return callback(error);
}
// Construct URL
var baseUrl = this.baseUri;
var requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'providers/Microsoft.Cdn/checkNameAvailability';
var queryParameters = [];
queryParameters.push('api-version=' + encodeURIComponent(this.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
// Create HTTP transport objects
var httpRequest = new WebResource();
httpRequest.method = 'POST';
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
if (this.generateClientRequestId) {
httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();
}
if (this.acceptLanguage !== undefined && this.acceptLanguage !== null) {
httpRequest.headers['accept-language'] = this.acceptLanguage;
}
if(options) {
for(var headerName in options['customHeaders']) {
if (options['customHeaders'].hasOwnProperty(headerName)) {
httpRequest.headers[headerName] = options['customHeaders'][headerName];
}
}
}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
// Serialize Request
var requestContent = null;
var requestModel = null;
try {
if (checkNameAvailabilityInput !== null && checkNameAvailabilityInput !== undefined) {
var requestModelMapper = new client.models['CheckNameAvailabilityInput']().mapper();
requestModel = client.serialize(requestModelMapper, checkNameAvailabilityInput, 'checkNameAvailabilityInput');
requestContent = JSON.stringify(requestModel);
}
} catch (error) {
var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' +
'payload - "%s"', error.message, util.inspect(checkNameAvailabilityInput, {depth: null})));
return callback(serializationError);
}
httpRequest.body = requestContent;
// Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) {
return callback(err);
}
var statusCode = response.statusCode;
if (statusCode !== 200) {
var error = new Error(responseBody);
error.statusCode = response.statusCode;
error.request = msRest.stripRequest(httpRequest);
error.response = msRest.stripResponse(response);
if (responseBody === '') responseBody = null;
var parsedErrorResponse;
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
var resultMapper = new client.models['ErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
error.message = util.format('Error "%s" occurred in deserializing the responseBody ' +
'- "%s" for the default response.', defaultError.message, responseBody);
return callback(error);
}
return callback(error);
}
// Create Result
var result = null;
if (responseBody === '') responseBody = null;
// Deserialize Response
if (statusCode === 200) {
var parsedResponse = null;
try {
parsedResponse = JSON.parse(responseBody);
result = JSON.parse(responseBody);
if (parsedResponse !== null && parsedResponse !== undefined) {
var resultMapper = new client.models['CheckNameAvailabilityOutput']().mapper();
result = client.deserialize(resultMapper, parsedResponse, 'result');
}
} catch (error) {
var deserializationError = new Error(util.format('Error "%s" occurred in deserializing the responseBody - "%s"', error, responseBody));
deserializationError.request = msRest.stripRequest(httpRequest);
deserializationError.response = msRest.stripResponse(response);
return callback(deserializationError);
}
}
return callback(null, result, httpRequest, response);
});
};
/**
* Lists all of the available CDN REST API operations.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {function} callback
*
* @returns {function} callback(err, result, request, response)
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
* {object} [result] - The deserialized result object.
* See {@link OperationListResult} for more information.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
CdnManagementClient.prototype.listOperations = function (options, callback) {
var client = this;
if(!callback && typeof options === 'function') {
callback = options;
options = null;
}
if (!callback) {
throw new Error('callback cannot be null.');
}
// Validate
try {
if (this.apiVersion === null || this.apiVersion === undefined || typeof this.apiVersion.valueOf() !== 'string') {
throw new Error('this.apiVersion cannot be null or undefined and it must be of type string.');
}
if (this.acceptLanguage !== null && this.acceptLanguage !== undefined && typeof this.acceptLanguage.valueOf() !== 'string') {
throw new Error('this.acceptLanguage must be of type string.');
}
} catch (error) {
return callback(error);
}
// Construct URL
var baseUrl = this.baseUri;
var requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'providers/Microsoft.Cdn/operations';
var queryParameters = [];
queryParameters.push('api-version=' + encodeURIComponent(this.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
// Create HTTP transport objects
var httpRequest = new WebResource();
httpRequest.method = 'GET';
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
if (this.generateClientRequestId) {
httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();
}
if (this.acceptLanguage !== undefined && this.acceptLanguage !== null) {
httpRequest.headers['accept-language'] = this.acceptLanguage;
}
if(options) {
for(var headerName in options['customHeaders']) {
if (options['customHeaders'].hasOwnProperty(headerName)) {
httpRequest.headers[headerName] = options['customHeaders'][headerName];
}
}
}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;
// Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) {
return callback(err);
}
var statusCode = response.statusCode;
if (statusCode !== 200) {
var error = new Error(responseBody);
error.statusCode = response.statusCode;
error.request = msRest.stripRequest(httpRequest);
error.response = msRest.stripResponse(response);
if (responseBody === '') responseBody = null;
var parsedErrorResponse;
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
var resultMapper = new client.models['ErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
error.message = util.format('Error "%s" occurred in deserializing the responseBody ' +
'- "%s" for the default response.', defaultError.message, responseBody);
return callback(error);
}
return callback(error);
}
// Create Result
var result = null;
if (responseBody === '') responseBody = null;
// Deserialize Response
if (statusCode === 200) {
var parsedResponse = null;
try {
parsedResponse = JSON.parse(responseBody);
result = JSON.parse(responseBody);
if (parsedResponse !== null && parsedResponse !== undefined) {
var resultMapper = new client.models['OperationListResult']().mapper();
result = client.deserialize(resultMapper, parsedResponse, 'result');
}
} catch (error) {
var deserializationError = new Error(util.format('Error "%s" occurred in deserializing the responseBody - "%s"', error, responseBody));
deserializationError.request = msRest.stripRequest(httpRequest);
deserializationError.response = msRest.stripResponse(response);
return callback(deserializationError);
}
}
return callback(null, result, httpRequest, response);
});
};
/**
* Lists all of the available CDN REST API operations.
*
* @param {string} nextPageLink The NextLink from the previous successful call
* to List operation.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {function} callback
*
* @returns {function} callback(err, result, request, response)
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
* {object} [result] - The deserialized result object.
* See {@link OperationListResult} for more information.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
CdnManagementClient.prototype.listOperationsNext = function (nextPageLink, options, callback) {
var client = this;
if(!callback && typeof options === 'function') {
callback = options;
options = null;
}
if (!callback) {
throw new Error('callback cannot be null.');
}
// Validate
try {
if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') {
throw new Error('nextPageLink cannot be null or undefined and it must be of type string.');
}
if (this.acceptLanguage !== null && this.acceptLanguage !== undefined && typeof this.acceptLanguage.valueOf() !== 'string') {
throw new Error('this.acceptLanguage must be of type string.');
}
} catch (error) {
return callback(error);
}
// Construct URL
var requestUrl = '{nextLink}';
requestUrl = requestUrl.replace('{nextLink}', nextPageLink);
// Create HTTP transport objects
var httpRequest = new WebResource();
httpRequest.method = 'GET';
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
if (this.generateClientRequestId) {
httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();
}
if (this.acceptLanguage !== undefined && this.acceptLanguage !== null) {
httpRequest.headers['accept-language'] = this.acceptLanguage;
}
if(options) {
for(var headerName in options['customHeaders']) {
if (options['customHeaders'].hasOwnProperty(headerName)) {
httpRequest.headers[headerName] = options['customHeaders'][headerName];
}
}
}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;
// Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) {
return callback(err);
}
var statusCode = response.statusCode;
if (statusCode !== 200) {
var error = new Error(responseBody);
error.statusCode = response.statusCode;
error.request = msRest.stripRequest(httpRequest);
error.response = msRest.stripResponse(response);
if (responseBody === '') responseBody = null;
var parsedErrorResponse;
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
var resultMapper = new client.models['ErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
error.message = util.format('Error "%s" occurred in deserializing the responseBody ' +
'- "%s" for the default response.', defaultError.message, responseBody);
return callback(error);
}
return callback(error);
}
// Create Result
var result = null;
if (responseBody === '') responseBody = null;
// Deserialize Response
if (statusCode === 200) {
var parsedResponse = null;
try {
parsedResponse = JSON.parse(responseBody);
result = JSON.parse(responseBody);
if (parsedResponse !== null && parsedResponse !== undefined) {
var resultMapper = new client.models['OperationListResult']().mapper();
result = client.deserialize(resultMapper, parsedResponse, 'result');
}
} catch (error) {
var deserializationError = new Error(util.format('Error "%s" occurred in deserializing the responseBody - "%s"', error, responseBody));
deserializationError.request = msRest.stripRequest(httpRequest);
deserializationError.response = msRest.stripResponse(response);
return callback(deserializationError);
}
}
return callback(null, result, httpRequest, response);
});
};
module.exports = CdnManagementClient;

Просмотреть файл

@ -15,11 +15,9 @@
* Initializes a new instance of the CheckNameAvailabilityInput class.
* @constructor
* Input of CheckNameAvailability API.
*
* @member {string} name The resource name to validate.
*
* @member {string} type The type of the resource whose name is to be
* validated. Possible values include: 'Microsoft.Cdn/Profiles/Endpoints'
*
*/
function CheckNameAvailabilityInput() {
}
@ -47,10 +45,11 @@ CheckNameAvailabilityInput.prototype.mapper = function () {
},
type: {
required: true,
isConstant: true,
serializedName: 'type',
defaultValue: 'Microsoft.Cdn/Profiles/Endpoints',
type: {
name: 'Enum',
allowedValues: [ 'Microsoft.Cdn/Profiles/Endpoints' ]
name: 'String'
}
}
}

Просмотреть файл

@ -15,6 +15,7 @@
* Initializes a new instance of the CheckNameAvailabilityOutput class.
* @constructor
* Output of check name availability API.
*
* @member {boolean} [nameAvailable] Indicates whether the name is available.
*
* @member {string} [reason] The reason why the name is not available.

Просмотреть файл

@ -21,6 +21,7 @@ var util = require('util');
* CDN CustomDomain represents a mapping between a user specified domain name
* and a CDN endpoint. This is to use custom domain names to represent the
* URLs for branding purposes.
*
* @member {string} hostName The host name of the custom domain. Must be a
* domain name.
*
@ -28,7 +29,7 @@ var util = require('util');
* Possible values include: 'Creating', 'Active', 'Deleting'
*
* @member {string} [provisioningState] Provisioning status of the custom
* domain. Possible values include: 'Creating', 'Succeeded', 'Failed'
* domain.
*
*/
function CustomDomain() {
@ -75,6 +76,27 @@ CustomDomain.prototype.mapper = function () {
name: 'String'
}
},
location: {
required: true,
serializedName: 'location',
type: {
name: 'String'
}
},
tags: {
required: false,
serializedName: 'tags',
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
hostName: {
required: true,
serializedName: 'properties.hostName',
@ -87,16 +109,15 @@ CustomDomain.prototype.mapper = function () {
readOnly: true,
serializedName: 'properties.resourceState',
type: {
name: 'Enum',
allowedValues: [ 'Creating', 'Active', 'Deleting' ]
name: 'String'
}
},
provisioningState: {
required: false,
readOnly: true,
serializedName: 'properties.provisioningState',
type: {
name: 'Enum',
allowedValues: [ 'Creating', 'Succeeded', 'Failed' ]
name: 'String'
}
}
}

Просмотреть файл

@ -16,7 +16,7 @@ var util = require('util');
* @class
* Initializes a new instance of the CustomDomainListResult class.
* @constructor
* @member {array} [value] List of CDN CustomDomains within an endpoint.
* @member {string} [nextLink] URL to get the next set of results.
*
*/
function CustomDomainListResult() {
@ -52,6 +52,13 @@ CustomDomainListResult.prototype.mapper = function () {
}
}
}
},
nextLink: {
required: false,
serializedName: 'nextLink',
type: {
name: 'String'
}
}
}
}

Просмотреть файл

@ -10,25 +10,19 @@
'use strict';
var models = require('./index');
var util = require('util');
/**
* @class
* Initializes a new instance of the CustomDomainParameters class.
* @constructor
* CustomDomain properties required for custom domain creation or update.
*
* @member {string} hostName The host name of the custom domain. Must be a
* domain name.
*
*/
function CustomDomainParameters() {
CustomDomainParameters['super_'].call(this);
}
util.inherits(CustomDomainParameters, models['BaseResource']);
/**
* Defines the metadata of CustomDomainParameters
*

Просмотреть файл

@ -19,6 +19,7 @@ var util = require('util');
* Initializes a new instance of the DeepCreatedOrigin class.
* @constructor
* Deep created origins within a CDN endpoint.
*
* @member {string} name Origin name
*
* @member {string} hostName The address of the origin. Domain names, IPv4
@ -68,6 +69,10 @@ DeepCreatedOrigin.prototype.mapper = function () {
httpPort: {
required: false,
serializedName: 'properties.httpPort',
constraints: {
InclusiveMaximum: 65535,
InclusiveMinimum: 1
},
type: {
name: 'Number'
}
@ -75,6 +80,10 @@ DeepCreatedOrigin.prototype.mapper = function () {
httpsPort: {
required: false,
serializedName: 'properties.httpsPort',
constraints: {
InclusiveMaximum: 65535,
InclusiveMinimum: 1
},
type: {
name: 'Number'
}

Просмотреть файл

@ -22,9 +22,7 @@ var util = require('util');
* information regarding caching behaviors and origins. The CDN endpoint is
* exposed using the URL format <endpointname>.azureedge.net by default, but
* custom domains can also be created.
* @member {string} [hostName] The host name of the endpoint
* {endpointName}.{DNSZone}
*
*
* @member {string} [originHostHeader] The host header the CDN provider will
* send along with content requests to origins. The default value is the host
* name of the origin.
@ -35,16 +33,17 @@ var util = require('util');
* compression will be applied. The value for the elements should be a valid
* MIME type.
*
* @member {boolean} [isCompressionEnabled] Indicates whether the compression
* is enabled. Default value is false. If compression is enabled, the content
* transferred from cdn endpoint to end user will be compressed. The
* requested content must be larger than 1 byte and smaller than 1 MB.
* @member {boolean} [isCompressionEnabled] Indicates whether content
* compression is enabled. Default value is false. If compression is enabled,
* the content transferred from the CDN endpoint to the end user will be
* compressed. The requested content must be larger than 1 byte and smaller
* than 1 MB.
*
* @member {boolean} [isHttpAllowed] Indicates whether HTTP traffic is allowed
* on the endpoint. Default value is true. At least one protocol (HTTP or
* HTTPS) must be allowed.
*
* @member {boolean} [isHttpsAllowed] Indicates whether https traffic is
* @member {boolean} [isHttpsAllowed] Indicates whether HTTPS traffic is
* allowed on the endpoint. Default value is true. At least one protocol
* (HTTP or HTTPS) must be allowed.
*
@ -52,7 +51,12 @@ var util = require('util');
* caching behavior. Possible values include: 'IgnoreQueryString',
* 'BypassCaching', 'UseQueryString', 'NotSet'
*
* @member {array} [origins] The set of origins for the CDN endpoint. When
* @member {array} [geoFilters] The list of geo filters for the CDN endpoint.
*
* @member {string} [hostName] The host name of the endpoint
* {endpointName}.{DNSZone}
*
* @member {array} origins The set of origins for the CDN endpoint. When
* multiple origins exist, the first origin will be used as primary and rest
* will be used as failover options.
*
@ -61,14 +65,13 @@ var util = require('util');
* 'Stopping'
*
* @member {string} [provisioningState] Provisioning status of the endpoint.
* Possible values include: 'Creating', 'Succeeded', 'Failed'
*
*/
function Endpoint() {
Endpoint['super_'].call(this);
}
util.inherits(Endpoint, models['TrackedResource']);
util.inherits(Endpoint, models['Resource']);
/**
* Defines the metadata of Endpoint
@ -116,7 +119,7 @@ Endpoint.prototype.mapper = function () {
}
},
tags: {
required: true,
required: false,
serializedName: 'tags',
type: {
name: 'Dictionary',
@ -129,14 +132,6 @@ Endpoint.prototype.mapper = function () {
}
}
},
hostName: {
required: false,
readOnly: true,
serializedName: 'properties.hostName',
type: {
name: 'String'
}
},
originHostHeader: {
required: false,
serializedName: 'properties.originHostHeader',
@ -194,8 +189,31 @@ Endpoint.prototype.mapper = function () {
allowedValues: [ 'IgnoreQueryString', 'BypassCaching', 'UseQueryString', 'NotSet' ]
}
},
origins: {
geoFilters: {
required: false,
serializedName: 'properties.geoFilters',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'GeoFilterElementType',
type: {
name: 'Composite',
className: 'GeoFilter'
}
}
}
},
hostName: {
required: false,
readOnly: true,
serializedName: 'properties.hostName',
type: {
name: 'String'
}
},
origins: {
required: true,
serializedName: 'properties.origins',
type: {
name: 'Sequence',
@ -214,16 +232,15 @@ Endpoint.prototype.mapper = function () {
readOnly: true,
serializedName: 'properties.resourceState',
type: {
name: 'Enum',
allowedValues: [ 'Creating', 'Deleting', 'Running', 'Starting', 'Stopped', 'Stopping' ]
name: 'String'
}
},
provisioningState: {
required: false,
readOnly: true,
serializedName: 'properties.provisioningState',
type: {
name: 'Enum',
allowedValues: [ 'Creating', 'Succeeded', 'Failed' ]
name: 'String'
}
}
}

Просмотреть файл

@ -16,7 +16,7 @@ var util = require('util');
* @class
* Initializes a new instance of the EndpointListResult class.
* @constructor
* @member {array} [value] List of CDN endpoints within a profile
* @member {string} [nextLink] URL to get the next set of results.
*
*/
function EndpointListResult() {
@ -52,6 +52,13 @@ EndpointListResult.prototype.mapper = function () {
}
}
}
},
nextLink: {
required: false,
serializedName: 'nextLink',
type: {
name: 'String'
}
}
}
}

Просмотреть файл

@ -19,6 +19,7 @@ var util = require('util');
* Initializes a new instance of the EndpointUpdateParameters class.
* @constructor
* Endpoint properties required for new endpoint creation.
*
* @member {object} [tags] Endpoint tags
*
* @member {string} [originHostHeader] The host header the CDN provider will
@ -49,6 +50,8 @@ var util = require('util');
* caching behavior. Possible values include: 'IgnoreQueryString',
* 'BypassCaching', 'UseQueryString', 'NotSet'
*
* @member {array} [geoFilters] The list of geo filters for the CDN endpoint.
*
*/
function EndpointUpdateParameters() {
EndpointUpdateParameters['super_'].call(this);
@ -140,6 +143,21 @@ EndpointUpdateParameters.prototype.mapper = function () {
name: 'Enum',
allowedValues: [ 'IgnoreQueryString', 'BypassCaching', 'UseQueryString', 'NotSet' ]
}
},
geoFilters: {
required: false,
serializedName: 'properties.geoFilters',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'GeoFilterElementType',
type: {
name: 'Composite',
className: 'GeoFilter'
}
}
}
}
}
}

Просмотреть файл

@ -0,0 +1,80 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
var util = require('util');
/**
* @class
* Initializes a new instance of the GeoFilter class.
* @constructor
* Geo filter of a CDN endpoint.
*
* @member {string} relativePath Relative path applicable to geo filter. (e.g.
* '/mypictures', '/mypicture/kitty.jpg', and etc.)
*
* @member {string} action Action of the geo filter.
*
* @member {array} countryCodes Two letter country codes of the geo filter.
* (e.g. AU, MX, and etc.)
*
*/
function GeoFilter() {
}
/**
* Defines the metadata of GeoFilter
*
* @returns {object} metadata of GeoFilter
*
*/
GeoFilter.prototype.mapper = function () {
return {
required: false,
serializedName: 'GeoFilter',
type: {
name: 'Composite',
className: 'GeoFilter',
modelProperties: {
relativePath: {
required: true,
serializedName: 'relativePath',
type: {
name: 'String'
}
},
action: {
required: true,
serializedName: 'action',
type: {
name: 'String'
}
},
countryCodes: {
required: true,
serializedName: 'countryCodes',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
}
}
}
};
};
module.exports = GeoFilter;

Просмотреть файл

@ -6,40 +6,35 @@
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
// TODO: Include PageTemplateModels here too?? Probably
*/
import * as msRestAzure from 'ms-rest-azure';
exports.BaseResource = msRestAzure.BaseResource;
exports.CloudError = msRestAzure.CloudError;
/**
* @class
* Initializes a new instance of the Resource class.
* @constructor
* The Resource definition.
*
* @member {string} [id] Resource ID
*
* @member {string} [name] Resource name
*
* @member {string} [type] Resource type
*
*/
export interface Resource extends BaseResource {
id?: string;
name?: string;
type?: string;
}
/**
* @class
* Initializes a new instance of the TrackedResource class.
* @constructor
* ARM tracked resource
* @member {string} location Resource location
*
* @member {object} tags Resource tags
* @member {object} [tags] Resource tags
*
*/
export interface TrackedResource extends Resource {
location: string;
tags: { [propertyName: string]: string };
export interface Resource extends BaseResource {
id?: string;
name?: string;
type?: string;
location: string;
tags?: { [propertyName: string]: string };
}
/**
@ -50,23 +45,23 @@ export interface TrackedResource extends Resource {
* CDN API. This allows users to set up a logical grouping of endpoints in
* addition to creating shared configuration settings and selecting pricing
* tiers and providers.
* @member {object} [sku] The SKU (pricing tier) of the CDN profile.
*
* @member {object} sku The SKU (pricing tier) of the CDN profile.
*
* @member {string} [sku.name] Name of the pricing tier. Possible values
* include: 'Standard_Verizon', 'Premium_Verizon', 'Custom_Verizon',
* 'Standard_Akamai'
* 'Standard_Akamai', 'Standard_ChinaCdn'
*
* @member {string} [resourceState] Resource status of the profile. Possible
* values include: 'Creating', 'Active', 'Deleting', 'Disabled'
*
* @member {string} [provisioningState] Provisioning status of the profile.
* Possible values include: 'Creating', 'Succeeded', 'Failed'
*
*/
export interface Profile extends TrackedResource {
sku?: Sku;
resourceState?: string;
provisioningState?: string;
export interface Profile extends Resource {
sku: Sku;
resourceState?: string;
provisioningState?: string;
}
/**
@ -74,34 +69,14 @@ export interface Profile extends TrackedResource {
* Initializes a new instance of the Sku class.
* @constructor
* The SKU (pricing tier) of the CDN profile.
*
* @member {string} [name] Name of the pricing tier. Possible values include:
* 'Standard_Verizon', 'Premium_Verizon', 'Custom_Verizon', 'Standard_Akamai'
* 'Standard_Verizon', 'Premium_Verizon', 'Custom_Verizon',
* 'Standard_Akamai', 'Standard_ChinaCdn'
*
*/
export interface Sku {
name?: string;
}
/**
* @class
* Initializes a new instance of the ProfileCreateParameters class.
* @constructor
* Profile properties required for profile creation.
* @member {string} location Profile location
*
* @member {object} [tags] Profile tags
*
* @member {object} sku The SKU (pricing tier) of the CDN profile.
*
* @member {string} [sku.name] Name of the pricing tier. Possible values
* include: 'Standard_Verizon', 'Premium_Verizon', 'Custom_Verizon',
* 'Standard_Akamai'
*
*/
export interface ProfileCreateParameters extends BaseResource {
location: string;
tags?: { [propertyName: string]: string };
sku: Sku;
name?: string;
}
/**
@ -109,11 +84,12 @@ export interface ProfileCreateParameters extends BaseResource {
* Initializes a new instance of the ProfileUpdateParameters class.
* @constructor
* Profile properties required for profile update.
*
* @member {object} tags Profile tags
*
*/
export interface ProfileUpdateParameters extends BaseResource {
tags: { [propertyName: string]: string };
tags: { [propertyName: string]: string };
}
/**
@ -121,12 +97,13 @@ export interface ProfileUpdateParameters extends BaseResource {
* Initializes a new instance of the SsoUri class.
* @constructor
* SSO URI required to login to third party web portal.
*
* @member {string} [ssoUriValue] The URI used to login to third party web
* portal.
*
*/
export interface SsoUri {
ssoUriValue?: string;
ssoUriValue?: string;
}
/**
@ -137,9 +114,7 @@ export interface SsoUri {
* information regarding caching behaviors and origins. The CDN endpoint is
* exposed using the URL format <endpointname>.azureedge.net by default, but
* custom domains can also be created.
* @member {string} [hostName] The host name of the endpoint
* {endpointName}.{DNSZone}
*
*
* @member {string} [originHostHeader] The host header the CDN provider will
* send along with content requests to origins. The default value is the host
* name of the origin.
@ -150,92 +125,6 @@ export interface SsoUri {
* compression will be applied. The value for the elements should be a valid
* MIME type.
*
* @member {boolean} [isCompressionEnabled] Indicates whether the compression
* is enabled. Default value is false. If compression is enabled, the content
* transferred from cdn endpoint to end user will be compressed. The
* requested content must be larger than 1 byte and smaller than 1 MB.
*
* @member {boolean} [isHttpAllowed] Indicates whether HTTP traffic is allowed
* on the endpoint. Default value is true. At least one protocol (HTTP or
* HTTPS) must be allowed.
*
* @member {boolean} [isHttpsAllowed] Indicates whether https traffic is
* allowed on the endpoint. Default value is true. At least one protocol
* (HTTP or HTTPS) must be allowed.
*
* @member {string} [queryStringCachingBehavior] Defines the query string
* caching behavior. Possible values include: 'IgnoreQueryString',
* 'BypassCaching', 'UseQueryString', 'NotSet'
*
* @member {array} [origins] The set of origins for the CDN endpoint. When
* multiple origins exist, the first origin will be used as primary and rest
* will be used as failover options.
*
* @member {string} [resourceState] Resource status of the endpoint. Possible
* values include: 'Creating', 'Deleting', 'Running', 'Starting', 'Stopped',
* 'Stopping'
*
* @member {string} [provisioningState] Provisioning status of the endpoint.
* Possible values include: 'Creating', 'Succeeded', 'Failed'
*
*/
export interface Endpoint extends TrackedResource {
hostName?: string;
originHostHeader?: string;
originPath?: string;
contentTypesToCompress?: string[];
isCompressionEnabled?: boolean;
isHttpAllowed?: boolean;
isHttpsAllowed?: boolean;
queryStringCachingBehavior?: string;
origins?: DeepCreatedOrigin[];
resourceState?: string;
provisioningState?: string;
}
/**
* @class
* Initializes a new instance of the DeepCreatedOrigin class.
* @constructor
* Deep created origins within a CDN endpoint.
* @member {string} name Origin name
*
* @member {string} hostName The address of the origin. Domain names, IPv4
* addresses, and IPv6 addresses are supported.
*
* @member {number} [httpPort] The value of the HTTP port. Must be between 1
* and 65535
*
* @member {number} [httpsPort] The value of the HTTPS port. Must be between 1
* and 65535
*
*/
export interface DeepCreatedOrigin extends BaseResource {
name: string;
hostName: string;
httpPort?: number;
httpsPort?: number;
}
/**
* @class
* Initializes a new instance of the EndpointCreateParameters class.
* @constructor
* Endpoint properties required for new endpoint creation.
* @member {string} location Endpoint location
*
* @member {object} [tags] Endpoint tags
*
* @member {string} [originHostHeader] The host header CDN provider will send
* along with content requests to origins. The default value is the host name
* of the origin.
*
* @member {string} [originPath] The path used for origin requests.
*
* @member {array} [contentTypesToCompress] List of content types on which
* compression will be applied. The value for the elements should be a valid
* MIME type.
*
* @member {boolean} [isCompressionEnabled] Indicates whether content
* compression is enabled. Default value is false. If compression is enabled,
* the content transferred from the CDN endpoint to the end user will be
@ -246,7 +135,7 @@ export interface DeepCreatedOrigin extends BaseResource {
* on the endpoint. Default value is true. At least one protocol (HTTP or
* HTTPS) must be allowed.
*
* @member {boolean} [isHttpsAllowed] Indicates whether https traffic is
* @member {boolean} [isHttpsAllowed] Indicates whether HTTPS traffic is
* allowed on the endpoint. Default value is true. At least one protocol
* (HTTP or HTTPS) must be allowed.
*
@ -254,22 +143,60 @@ export interface DeepCreatedOrigin extends BaseResource {
* caching behavior. Possible values include: 'IgnoreQueryString',
* 'BypassCaching', 'UseQueryString', 'NotSet'
*
* @member {array} [geoFilters] The list of geo filters for the CDN endpoint.
*
* @member {string} [hostName] The host name of the endpoint
* {endpointName}.{DNSZone}
*
* @member {array} origins The set of origins for the CDN endpoint. When
* multiple origins exist, the first origin will be used as primary and rest
* will be used as failover options.
*
* @member {string} [resourceState] Resource status of the endpoint. Possible
* values include: 'Creating', 'Deleting', 'Running', 'Starting', 'Stopped',
* 'Stopping'
*
* @member {string} [provisioningState] Provisioning status of the endpoint.
*
*/
export interface EndpointCreateParameters extends BaseResource {
location: string;
tags?: { [propertyName: string]: string };
originHostHeader?: string;
originPath?: string;
contentTypesToCompress?: string[];
isCompressionEnabled?: boolean;
isHttpAllowed?: boolean;
isHttpsAllowed?: boolean;
queryStringCachingBehavior?: string;
origins: DeepCreatedOrigin[];
export interface Endpoint extends Resource {
originHostHeader?: string;
originPath?: string;
contentTypesToCompress?: string[];
isCompressionEnabled?: boolean;
isHttpAllowed?: boolean;
isHttpsAllowed?: boolean;
queryStringCachingBehavior?: string;
geoFilters?: GeoFilter[];
hostName?: string;
origins: DeepCreatedOrigin[];
resourceState?: string;
provisioningState?: string;
}
/**
* @class
* Initializes a new instance of the DeepCreatedOrigin class.
* @constructor
* Deep created origins within a CDN endpoint.
*
* @member {string} name Origin name
*
* @member {string} hostName The address of the origin. Domain names, IPv4
* addresses, and IPv6 addresses are supported.
*
* @member {number} [httpPort] The value of the HTTP port. Must be between 1
* and 65535
*
* @member {number} [httpsPort] The value of the HTTPS port. Must be between 1
* and 65535
*
*/
export interface DeepCreatedOrigin extends BaseResource {
name: string;
hostName: string;
httpPort?: number;
httpsPort?: number;
}
/**
@ -277,6 +204,7 @@ export interface EndpointCreateParameters extends BaseResource {
* Initializes a new instance of the EndpointUpdateParameters class.
* @constructor
* Endpoint properties required for new endpoint creation.
*
* @member {object} [tags] Endpoint tags
*
* @member {string} [originHostHeader] The host header the CDN provider will
@ -307,16 +235,40 @@ export interface EndpointCreateParameters extends BaseResource {
* caching behavior. Possible values include: 'IgnoreQueryString',
* 'BypassCaching', 'UseQueryString', 'NotSet'
*
* @member {array} [geoFilters] The list of geo filters for the CDN endpoint.
*
*/
export interface EndpointUpdateParameters extends BaseResource {
tags?: { [propertyName: string]: string };
originHostHeader?: string;
originPath?: string;
contentTypesToCompress?: string[];
isCompressionEnabled?: boolean;
isHttpAllowed?: boolean;
isHttpsAllowed?: boolean;
queryStringCachingBehavior?: string;
tags?: { [propertyName: string]: string };
originHostHeader?: string;
originPath?: string;
contentTypesToCompress?: string[];
isCompressionEnabled?: boolean;
isHttpAllowed?: boolean;
isHttpsAllowed?: boolean;
queryStringCachingBehavior?: string;
geoFilters?: GeoFilter[];
}
/**
* @class
* Initializes a new instance of the GeoFilter class.
* @constructor
* Geo filter of a CDN endpoint.
*
* @member {string} relativePath Relative path applicable to geo filter. (e.g.
* '/mypictures', '/mypicture/kitty.jpg', and etc.)
*
* @member {string} action Action of the geo filter.
*
* @member {array} countryCodes Two letter country codes of the geo filter.
* (e.g. AU, MX, and etc.)
*
*/
export interface GeoFilter {
relativePath: string;
action: string;
countryCodes: string[];
}
/**
@ -324,12 +276,13 @@ export interface EndpointUpdateParameters extends BaseResource {
* Initializes a new instance of the PurgeParameters class.
* @constructor
* Parameters required for endpoint purge.
*
* @member {array} contentPaths The path to the content to be purged. Can
* describe a file path or a wild card directory.
*
*/
export interface PurgeParameters {
contentPaths: string[];
contentPaths: string[];
}
/**
@ -337,12 +290,13 @@ export interface PurgeParameters {
* Initializes a new instance of the LoadParameters class.
* @constructor
* Parameters required for endpoint load.
*
* @member {array} contentPaths The path to the content to be loaded. Should
* describe a file path.
*
*/
export interface LoadParameters {
contentPaths: string[];
contentPaths: string[];
}
/**
@ -353,6 +307,7 @@ export interface LoadParameters {
* edge nodes represented by an endpoint do not have the requested content
* cached, they attempt to fetch it from one or more of the configured
* origins.
*
* @member {string} hostName The address of the origin. Domain names, IPv4
* addresses, and IPv6 addresses are supported.
*
@ -366,23 +321,23 @@ export interface LoadParameters {
* values include: 'Creating', 'Active', 'Deleting'
*
* @member {string} [provisioningState] Provisioning status of the origin.
* Possible values include: 'Creating', 'Succeeded', 'Failed'
*
*/
export interface Origin extends Resource {
hostName: string;
httpPort?: number;
httpsPort?: number;
resourceState?: string;
provisioningState?: string;
hostName: string;
httpPort?: number;
httpsPort?: number;
resourceState?: string;
provisioningState?: string;
}
/**
* @class
* Initializes a new instance of the OriginParameters class.
* Initializes a new instance of the OriginUpdateParameters class.
* @constructor
* Origin properties needed for origin creation or update.
* @member {string} hostName The address of the origin. Domain names, IPv4
*
* @member {string} [hostName] The address of the origin. Domain names, IPv4
* addresses, and IPv6 addresses are supported.
*
* @member {number} [httpPort] The value of the HTTP port. Must be between 1
@ -392,10 +347,10 @@ export interface Origin extends Resource {
* and 65535.
*
*/
export interface OriginParameters extends BaseResource {
hostName: string;
httpPort?: number;
httpsPort?: number;
export interface OriginUpdateParameters extends BaseResource {
hostName?: string;
httpPort?: number;
httpsPort?: number;
}
/**
@ -405,6 +360,7 @@ export interface OriginParameters extends BaseResource {
* CDN CustomDomain represents a mapping between a user specified domain name
* and a CDN endpoint. This is to use custom domain names to represent the
* URLs for branding purposes.
*
* @member {string} hostName The host name of the custom domain. Must be a
* domain name.
*
@ -412,13 +368,13 @@ export interface OriginParameters extends BaseResource {
* Possible values include: 'Creating', 'Active', 'Deleting'
*
* @member {string} [provisioningState] Provisioning status of the custom
* domain. Possible values include: 'Creating', 'Succeeded', 'Failed'
* domain.
*
*/
export interface CustomDomain extends Resource {
hostName: string;
resourceState?: string;
provisioningState?: string;
hostName: string;
resourceState?: string;
provisioningState?: string;
}
/**
@ -426,12 +382,13 @@ export interface CustomDomain extends Resource {
* Initializes a new instance of the CustomDomainParameters class.
* @constructor
* CustomDomain properties required for custom domain creation or update.
*
* @member {string} hostName The host name of the custom domain. Must be a
* domain name.
*
*/
export interface CustomDomainParameters extends BaseResource {
hostName: string;
export interface CustomDomainParameters {
hostName: string;
}
/**
@ -439,12 +396,13 @@ export interface CustomDomainParameters extends BaseResource {
* Initializes a new instance of the ValidateCustomDomainInput class.
* @constructor
* Input of the custom domain to be validated.
*
* @member {string} hostName The host name of the custom domain. Must be a
* domain name.
*
*/
export interface ValidateCustomDomainInput {
hostName: string;
hostName: string;
}
/**
@ -452,6 +410,7 @@ export interface ValidateCustomDomainInput {
* Initializes a new instance of the ValidateCustomDomainOutput class.
* @constructor
* Output of custom domain validation.
*
* @member {boolean} [customDomainValidated] Indicates whether the custom
* domain is validated or not.
*
@ -462,9 +421,9 @@ export interface ValidateCustomDomainInput {
*
*/
export interface ValidateCustomDomainOutput {
customDomainValidated?: boolean;
reason?: string;
message?: string;
customDomainValidated?: boolean;
reason?: string;
message?: string;
}
/**
@ -472,15 +431,12 @@ export interface ValidateCustomDomainOutput {
* Initializes a new instance of the CheckNameAvailabilityInput class.
* @constructor
* Input of CheckNameAvailability API.
*
* @member {string} name The resource name to validate.
*
* @member {string} type The type of the resource whose name is to be
* validated. Possible values include: 'Microsoft.Cdn/Profiles/Endpoints'
*
*/
export interface CheckNameAvailabilityInput {
name: string;
type: string;
name: string;
}
/**
@ -488,6 +444,7 @@ export interface CheckNameAvailabilityInput {
* Initializes a new instance of the CheckNameAvailabilityOutput class.
* @constructor
* Output of check name availability API.
*
* @member {boolean} [nameAvailable] Indicates whether the name is available.
*
* @member {string} [reason] The reason why the name is not available.
@ -497,9 +454,9 @@ export interface CheckNameAvailabilityInput {
*
*/
export interface CheckNameAvailabilityOutput {
nameAvailable?: boolean;
reason?: string;
message?: string;
nameAvailable?: boolean;
reason?: string;
message?: string;
}
/**
@ -507,6 +464,7 @@ export interface CheckNameAvailabilityOutput {
* Initializes a new instance of the Operation class.
* @constructor
* CDN REST API operation
*
* @member {string} [name] Operation name: {provider}/{resource}/{operation}
*
* @member {object} [display]
@ -521,8 +479,8 @@ export interface CheckNameAvailabilityOutput {
*
*/
export interface Operation {
name?: string;
display?: OperationDisplay;
name?: string;
display?: OperationDisplay;
}
/**
@ -538,9 +496,9 @@ export interface Operation {
*
*/
export interface OperationDisplay {
provider?: string;
resource?: string;
operation?: string;
provider?: string;
resource?: string;
operation?: string;
}
/**
@ -554,6 +512,62 @@ export interface OperationDisplay {
*
*/
export interface ErrorResponse {
code?: string;
message?: string;
code?: string;
message?: string;
}
/**
* @class
* Initializes a new instance of the ProfileListResult class.
* @constructor
* @member {string} [nextLink] URL to get the next set of results.
*
*/
export interface ProfileListResult extends Array<Profile> {
nextLink?: string;
}
/**
* @class
* Initializes a new instance of the EndpointListResult class.
* @constructor
* @member {string} [nextLink] URL to get the next set of results.
*
*/
export interface EndpointListResult extends Array<Endpoint> {
nextLink?: string;
}
/**
* @class
* Initializes a new instance of the OriginListResult class.
* @constructor
* @member {string} [nextLink] URL to get the next set of results.
*
*/
export interface OriginListResult extends Array<Origin> {
nextLink?: string;
}
/**
* @class
* Initializes a new instance of the CustomDomainListResult class.
* @constructor
* @member {string} [nextLink] URL to get the next set of results.
*
*/
export interface CustomDomainListResult extends Array<CustomDomain> {
nextLink?: string;
}
/**
* @class
* Initializes a new instance of the OperationListResult class.
* @constructor
* @member {string} [nextLink] URL to get the next set of results.
*
*/
export interface OperationListResult extends Array<Operation> {
nextLink?: string;
}

Просмотреть файл

@ -19,20 +19,18 @@ var msRestAzure = require('ms-rest-azure');
exports.BaseResource = msRestAzure.BaseResource;
exports.CloudError = msRestAzure.CloudError;
exports.Resource = require('./resource');
exports.TrackedResource = require('./trackedResource');
exports.Profile = require('./profile');
exports.Sku = require('./sku');
exports.ProfileCreateParameters = require('./profileCreateParameters');
exports.ProfileUpdateParameters = require('./profileUpdateParameters');
exports.SsoUri = require('./ssoUri');
exports.Endpoint = require('./endpoint');
exports.DeepCreatedOrigin = require('./deepCreatedOrigin');
exports.EndpointCreateParameters = require('./endpointCreateParameters');
exports.EndpointUpdateParameters = require('./endpointUpdateParameters');
exports.GeoFilter = require('./geoFilter');
exports.PurgeParameters = require('./purgeParameters');
exports.LoadParameters = require('./loadParameters');
exports.Origin = require('./origin');
exports.OriginParameters = require('./originParameters');
exports.OriginUpdateParameters = require('./originUpdateParameters');
exports.CustomDomain = require('./customDomain');
exports.CustomDomainParameters = require('./customDomainParameters');
exports.ValidateCustomDomainInput = require('./validateCustomDomainInput');

Просмотреть файл

@ -17,6 +17,7 @@ var util = require('util');
* Initializes a new instance of the LoadParameters class.
* @constructor
* Parameters required for endpoint load.
*
* @member {array} contentPaths The path to the content to be loaded. Should
* describe a file path.
*

Просмотреть файл

@ -17,6 +17,7 @@ var models = require('./index');
* Initializes a new instance of the Operation class.
* @constructor
* CDN REST API operation
*
* @member {string} [name] Operation name: {provider}/{resource}/{operation}
*
* @member {object} [display]

Просмотреть файл

@ -16,8 +16,7 @@ var util = require('util');
* @class
* Initializes a new instance of the OperationListResult class.
* @constructor
* @member {array} [value] List of CDN operations supported by the CDN
* resource provider.
* @member {string} [nextLink] URL to get the next set of results.
*
*/
function OperationListResult() {
@ -53,6 +52,13 @@ OperationListResult.prototype.mapper = function () {
}
}
}
},
nextLink: {
required: false,
serializedName: 'nextLink',
type: {
name: 'String'
}
}
}
}

Просмотреть файл

@ -22,6 +22,7 @@ var util = require('util');
* edge nodes represented by an endpoint do not have the requested content
* cached, they attempt to fetch it from one or more of the configured
* origins.
*
* @member {string} hostName The address of the origin. Domain names, IPv4
* addresses, and IPv6 addresses are supported.
*
@ -35,7 +36,6 @@ var util = require('util');
* values include: 'Creating', 'Active', 'Deleting'
*
* @member {string} [provisioningState] Provisioning status of the origin.
* Possible values include: 'Creating', 'Succeeded', 'Failed'
*
*/
function Origin() {
@ -82,6 +82,27 @@ Origin.prototype.mapper = function () {
name: 'String'
}
},
location: {
required: true,
serializedName: 'location',
type: {
name: 'String'
}
},
tags: {
required: false,
serializedName: 'tags',
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
hostName: {
required: true,
serializedName: 'properties.hostName',
@ -92,6 +113,10 @@ Origin.prototype.mapper = function () {
httpPort: {
required: false,
serializedName: 'properties.httpPort',
constraints: {
InclusiveMaximum: 65535,
InclusiveMinimum: 1
},
type: {
name: 'Number'
}
@ -99,6 +124,10 @@ Origin.prototype.mapper = function () {
httpsPort: {
required: false,
serializedName: 'properties.httpsPort',
constraints: {
InclusiveMaximum: 65535,
InclusiveMinimum: 1
},
type: {
name: 'Number'
}
@ -108,16 +137,15 @@ Origin.prototype.mapper = function () {
readOnly: true,
serializedName: 'properties.resourceState',
type: {
name: 'Enum',
allowedValues: [ 'Creating', 'Active', 'Deleting' ]
name: 'String'
}
},
provisioningState: {
required: false,
readOnly: true,
serializedName: 'properties.provisioningState',
type: {
name: 'Enum',
allowedValues: [ 'Creating', 'Succeeded', 'Failed' ]
name: 'String'
}
}
}

Просмотреть файл

@ -16,7 +16,7 @@ var util = require('util');
* @class
* Initializes a new instance of the OriginListResult class.
* @constructor
* @member {array} [value] List of CDN origins within an endpoint
* @member {string} [nextLink] URL to get the next set of results.
*
*/
function OriginListResult() {
@ -52,6 +52,13 @@ OriginListResult.prototype.mapper = function () {
}
}
}
},
nextLink: {
required: false,
serializedName: 'nextLink',
type: {
name: 'String'
}
}
}
}

Просмотреть файл

@ -0,0 +1,87 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
var models = require('./index');
var util = require('util');
/**
* @class
* Initializes a new instance of the OriginUpdateParameters class.
* @constructor
* Origin properties needed for origin creation or update.
*
* @member {string} [hostName] The address of the origin. Domain names, IPv4
* addresses, and IPv6 addresses are supported.
*
* @member {number} [httpPort] The value of the HTTP port. Must be between 1
* and 65535.
*
* @member {number} [httpsPort] The value of the HTTPS port. Must be between 1
* and 65535.
*
*/
function OriginUpdateParameters() {
OriginUpdateParameters['super_'].call(this);
}
util.inherits(OriginUpdateParameters, models['BaseResource']);
/**
* Defines the metadata of OriginUpdateParameters
*
* @returns {object} metadata of OriginUpdateParameters
*
*/
OriginUpdateParameters.prototype.mapper = function () {
return {
required: false,
serializedName: 'OriginUpdateParameters',
type: {
name: 'Composite',
className: 'OriginUpdateParameters',
modelProperties: {
hostName: {
required: false,
serializedName: 'properties.hostName',
type: {
name: 'String'
}
},
httpPort: {
required: false,
serializedName: 'properties.httpPort',
constraints: {
InclusiveMaximum: 65535,
InclusiveMinimum: 1
},
type: {
name: 'Number'
}
},
httpsPort: {
required: false,
serializedName: 'properties.httpsPort',
constraints: {
InclusiveMaximum: 65535,
InclusiveMinimum: 1
},
type: {
name: 'Number'
}
}
}
}
};
};
module.exports = OriginUpdateParameters;

Просмотреть файл

@ -22,24 +22,24 @@ var util = require('util');
* CDN API. This allows users to set up a logical grouping of endpoints in
* addition to creating shared configuration settings and selecting pricing
* tiers and providers.
* @member {object} [sku] The SKU (pricing tier) of the CDN profile.
*
* @member {object} sku The SKU (pricing tier) of the CDN profile.
*
* @member {string} [sku.name] Name of the pricing tier. Possible values
* include: 'Standard_Verizon', 'Premium_Verizon', 'Custom_Verizon',
* 'Standard_Akamai'
* 'Standard_Akamai', 'Standard_ChinaCdn'
*
* @member {string} [resourceState] Resource status of the profile. Possible
* values include: 'Creating', 'Active', 'Deleting', 'Disabled'
*
* @member {string} [provisioningState] Provisioning status of the profile.
* Possible values include: 'Creating', 'Succeeded', 'Failed'
*
*/
function Profile() {
Profile['super_'].call(this);
}
util.inherits(Profile, models['TrackedResource']);
util.inherits(Profile, models['Resource']);
/**
* Defines the metadata of Profile
@ -87,7 +87,7 @@ Profile.prototype.mapper = function () {
}
},
tags: {
required: true,
required: false,
serializedName: 'tags',
type: {
name: 'Dictionary',
@ -101,7 +101,7 @@ Profile.prototype.mapper = function () {
}
},
sku: {
required: false,
required: true,
serializedName: 'sku',
type: {
name: 'Composite',
@ -113,16 +113,15 @@ Profile.prototype.mapper = function () {
readOnly: true,
serializedName: 'properties.resourceState',
type: {
name: 'Enum',
allowedValues: [ 'Creating', 'Active', 'Deleting', 'Disabled' ]
name: 'String'
}
},
provisioningState: {
required: false,
readOnly: true,
serializedName: 'properties.provisioningState',
type: {
name: 'Enum',
allowedValues: [ 'Creating', 'Succeeded', 'Failed' ]
name: 'String'
}
}
}

Просмотреть файл

@ -16,7 +16,7 @@ var util = require('util');
* @class
* Initializes a new instance of the ProfileListResult class.
* @constructor
* @member {array} [value] List of CDN profiles within a resource group.
* @member {string} [nextLink] URL to get the next set of results.
*
*/
function ProfileListResult() {
@ -52,6 +52,13 @@ ProfileListResult.prototype.mapper = function () {
}
}
}
},
nextLink: {
required: false,
serializedName: 'nextLink',
type: {
name: 'String'
}
}
}
}

Просмотреть файл

@ -19,6 +19,7 @@ var util = require('util');
* Initializes a new instance of the ProfileUpdateParameters class.
* @constructor
* Profile properties required for profile update.
*
* @member {object} tags Profile tags
*
*/

Просмотреть файл

@ -17,6 +17,7 @@ var util = require('util');
* Initializes a new instance of the PurgeParameters class.
* @constructor
* Parameters required for endpoint purge.
*
* @member {array} contentPaths The path to the content to be purged. Can
* describe a file path or a wild card directory.
*

Просмотреть файл

@ -18,12 +18,18 @@ var util = require('util');
* @class
* Initializes a new instance of the Resource class.
* @constructor
* The Resource definition.
*
* @member {string} [id] Resource ID
*
* @member {string} [name] Resource name
*
* @member {string} [type] Resource type
*
* @member {string} location Resource location
*
* @member {object} [tags] Resource tags
*
*/
function Resource() {
Resource['super_'].call(this);
@ -68,6 +74,27 @@ Resource.prototype.mapper = function () {
type: {
name: 'String'
}
},
location: {
required: true,
serializedName: 'location',
type: {
name: 'String'
}
},
tags: {
required: false,
serializedName: 'tags',
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
}
}
}

Просмотреть файл

@ -15,8 +15,10 @@
* Initializes a new instance of the Sku class.
* @constructor
* The SKU (pricing tier) of the CDN profile.
*
* @member {string} [name] Name of the pricing tier. Possible values include:
* 'Standard_Verizon', 'Premium_Verizon', 'Custom_Verizon', 'Standard_Akamai'
* 'Standard_Verizon', 'Premium_Verizon', 'Custom_Verizon',
* 'Standard_Akamai', 'Standard_ChinaCdn'
*
*/
function Sku() {
@ -40,8 +42,7 @@ Sku.prototype.mapper = function () {
required: false,
serializedName: 'name',
type: {
name: 'Enum',
allowedValues: [ 'Standard_Verizon', 'Premium_Verizon', 'Custom_Verizon', 'Standard_Akamai' ]
name: 'String'
}
}
}

Просмотреть файл

@ -15,6 +15,7 @@
* Initializes a new instance of the SsoUri class.
* @constructor
* SSO URI required to login to third party web portal.
*
* @member {string} [ssoUriValue] The URI used to login to third party web
* portal.
*

Просмотреть файл

@ -15,6 +15,7 @@
* Initializes a new instance of the ValidateCustomDomainInput class.
* @constructor
* Input of the custom domain to be validated.
*
* @member {string} hostName The host name of the custom domain. Must be a
* domain name.
*

Просмотреть файл

@ -15,6 +15,7 @@
* Initializes a new instance of the ValidateCustomDomainOutput class.
* @constructor
* Output of custom domain validation.
*
* @member {boolean} [customDomainValidated] Indicates whether the custom
* domain is validated or not.
*

Просмотреть файл

@ -30,15 +30,15 @@ function CustomDomains(client) {
}
/**
* @summary Lists the existing CDN custom domains within an endpoint.
* Lists the existing CDN custom domains within an endpoint.
*
* @param {string} endpointName Name of the endpoint within the CDN profile.
* @param {string} resourceGroupName Name of the Resource group within the
* Azure subscription.
*
* @param {string} profileName Name of the CDN profile within the resource
* group.
*
* @param {string} resourceGroupName Name of the resource group within the
* Azure subscription.
* @param {string} endpointName Name of the endpoint within the CDN profile.
*
* @param {object} [options] Optional Parameters.
*
@ -59,7 +59,7 @@ function CustomDomains(client) {
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
CustomDomains.prototype.listByEndpoint = function (endpointName, profileName, resourceGroupName, options, callback) {
CustomDomains.prototype.listByEndpoint = function (resourceGroupName, profileName, endpointName, options, callback) {
var client = this.client;
if(!callback && typeof options === 'function') {
callback = options;
@ -70,14 +70,28 @@ CustomDomains.prototype.listByEndpoint = function (endpointName, profileName, re
}
// Validate
try {
if (endpointName === null || endpointName === undefined || typeof endpointName.valueOf() !== 'string') {
throw new Error('endpointName cannot be null or undefined and it must be of type string.');
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.');
}
if (resourceGroupName !== null && resourceGroupName !== undefined) {
if (resourceGroupName.length > 90)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90');
}
if (resourceGroupName.length < 1)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1');
}
if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/');
}
}
if (profileName === null || profileName === undefined || typeof profileName.valueOf() !== 'string') {
throw new Error('profileName cannot be null or undefined and it must be of type string.');
}
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.');
if (endpointName === null || endpointName === undefined || typeof endpointName.valueOf() !== 'string') {
throw new Error('endpointName cannot be null or undefined and it must be of type string.');
}
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.');
@ -93,20 +107,17 @@ CustomDomains.prototype.listByEndpoint = function (endpointName, profileName, re
}
// Construct URL
var requestUrl = this.client.baseUri +
'//subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains';
requestUrl = requestUrl.replace('{endpointName}', encodeURIComponent(endpointName));
requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName));
var baseUrl = this.client.baseUri;
var requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains';
requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName));
requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName));
requestUrl = requestUrl.replace('{endpointName}', encodeURIComponent(endpointName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
var queryParameters = [];
queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
// trim all duplicate forward slashes in the url
var regex = /([^:]\/)\/+/gi;
requestUrl = requestUrl.replace(regex, '$1');
// Create HTTP transport objects
var httpRequest = new WebResource();
@ -186,18 +197,18 @@ CustomDomains.prototype.listByEndpoint = function (endpointName, profileName, re
};
/**
* @summary Gets an existing CDN custom domain within an endpoint.
* Gets an existing CDN custom domain within an endpoint.
*
* @param {string} customDomainName Name of the custom domain within an
* endpoint.
*
* @param {string} endpointName Name of the endpoint within the CDN profile.
* @param {string} resourceGroupName Name of the Resource group within the
* Azure subscription.
*
* @param {string} profileName Name of the CDN profile within the resource
* group.
*
* @param {string} resourceGroupName Name of the resource group within the
* Azure subscription.
* @param {string} endpointName Name of the endpoint within the CDN profile.
*
* @param {string} customDomainName Name of the custom domain within an
* endpoint.
*
* @param {object} [options] Optional Parameters.
*
@ -217,7 +228,7 @@ CustomDomains.prototype.listByEndpoint = function (endpointName, profileName, re
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
CustomDomains.prototype.get = function (customDomainName, endpointName, profileName, resourceGroupName, options, callback) {
CustomDomains.prototype.get = function (resourceGroupName, profileName, endpointName, customDomainName, options, callback) {
var client = this.client;
if(!callback && typeof options === 'function') {
callback = options;
@ -228,17 +239,31 @@ CustomDomains.prototype.get = function (customDomainName, endpointName, profileN
}
// Validate
try {
if (customDomainName === null || customDomainName === undefined || typeof customDomainName.valueOf() !== 'string') {
throw new Error('customDomainName cannot be null or undefined and it must be of type string.');
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.');
}
if (endpointName === null || endpointName === undefined || typeof endpointName.valueOf() !== 'string') {
throw new Error('endpointName cannot be null or undefined and it must be of type string.');
if (resourceGroupName !== null && resourceGroupName !== undefined) {
if (resourceGroupName.length > 90)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90');
}
if (resourceGroupName.length < 1)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1');
}
if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/');
}
}
if (profileName === null || profileName === undefined || typeof profileName.valueOf() !== 'string') {
throw new Error('profileName cannot be null or undefined and it must be of type string.');
}
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.');
if (endpointName === null || endpointName === undefined || typeof endpointName.valueOf() !== 'string') {
throw new Error('endpointName cannot be null or undefined and it must be of type string.');
}
if (customDomainName === null || customDomainName === undefined || typeof customDomainName.valueOf() !== 'string') {
throw new Error('customDomainName cannot be null or undefined and it must be of type string.');
}
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.');
@ -254,21 +279,18 @@ CustomDomains.prototype.get = function (customDomainName, endpointName, profileN
}
// Construct URL
var requestUrl = this.client.baseUri +
'//subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}';
requestUrl = requestUrl.replace('{customDomainName}', encodeURIComponent(customDomainName));
requestUrl = requestUrl.replace('{endpointName}', encodeURIComponent(endpointName));
requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName));
var baseUrl = this.client.baseUri;
var requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}';
requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName));
requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName));
requestUrl = requestUrl.replace('{endpointName}', encodeURIComponent(endpointName));
requestUrl = requestUrl.replace('{customDomainName}', encodeURIComponent(customDomainName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
var queryParameters = [];
queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
// trim all duplicate forward slashes in the url
var regex = /([^:]\/)\/+/gi;
requestUrl = requestUrl.replace(regex, '$1');
// Create HTTP transport objects
var httpRequest = new WebResource();
@ -349,18 +371,18 @@ CustomDomains.prototype.get = function (customDomainName, endpointName, profileN
/**
*
* @summary Creates a new CDN custom domain within an endpoint.
* Creates a new CDN custom domain within an endpoint.
*
* @param {string} customDomainName Name of the custom domain within an
* endpoint.
*
* @param {string} endpointName Name of the endpoint within the CDN profile.
* @param {string} resourceGroupName Name of the Resource group within the
* Azure subscription.
*
* @param {string} profileName Name of the CDN profile within the resource
* group.
*
* @param {string} resourceGroupName Name of the resource group within the
* Azure subscription.
* @param {string} endpointName Name of the endpoint within the CDN profile.
*
* @param {string} customDomainName Name of the custom domain within an
* endpoint.
*
* @param {string} hostName The host name of the custom domain. Must be a
* domain name.
@ -383,7 +405,7 @@ CustomDomains.prototype.get = function (customDomainName, endpointName, profileN
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
CustomDomains.prototype.create = function (customDomainName, endpointName, profileName, resourceGroupName, hostName, options, callback) {
CustomDomains.prototype.create = function (resourceGroupName, profileName, endpointName, customDomainName, hostName, options, callback) {
var client = this.client;
if(!callback && typeof options === 'function') {
callback = options;
@ -395,14 +417,14 @@ CustomDomains.prototype.create = function (customDomainName, endpointName, profi
}
// Send request
this.beginCreate(customDomainName, endpointName, profileName, resourceGroupName, hostName, options, function (err, parsedResult, httpRequest, response){
this.beginCreate(resourceGroupName, profileName, endpointName, customDomainName, hostName, options, function (err, parsedResult, httpRequest, response){
if (err) return callback(err);
var initialResult = new msRest.HttpOperationResponse();
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) {
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);
// Create Result
@ -434,18 +456,18 @@ CustomDomains.prototype.create = function (customDomainName, endpointName, profi
};
/**
* @summary Creates a new CDN custom domain within an endpoint.
* Creates a new CDN custom domain within an endpoint.
*
* @param {string} customDomainName Name of the custom domain within an
* endpoint.
*
* @param {string} endpointName Name of the endpoint within the CDN profile.
* @param {string} resourceGroupName Name of the Resource group within the
* Azure subscription.
*
* @param {string} profileName Name of the CDN profile within the resource
* group.
*
* @param {string} resourceGroupName Name of the resource group within the
* Azure subscription.
* @param {string} endpointName Name of the endpoint within the CDN profile.
*
* @param {string} customDomainName Name of the custom domain within an
* endpoint.
*
* @param {string} hostName The host name of the custom domain. Must be a
* domain name.
@ -468,7 +490,7 @@ CustomDomains.prototype.create = function (customDomainName, endpointName, profi
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
CustomDomains.prototype.beginCreate = function (customDomainName, endpointName, profileName, resourceGroupName, hostName, options, callback) {
CustomDomains.prototype.beginCreate = function (resourceGroupName, profileName, endpointName, customDomainName, hostName, options, callback) {
var client = this.client;
if(!callback && typeof options === 'function') {
callback = options;
@ -479,17 +501,31 @@ CustomDomains.prototype.beginCreate = function (customDomainName, endpointName,
}
// Validate
try {
if (customDomainName === null || customDomainName === undefined || typeof customDomainName.valueOf() !== 'string') {
throw new Error('customDomainName cannot be null or undefined and it must be of type string.');
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.');
}
if (endpointName === null || endpointName === undefined || typeof endpointName.valueOf() !== 'string') {
throw new Error('endpointName cannot be null or undefined and it must be of type string.');
if (resourceGroupName !== null && resourceGroupName !== undefined) {
if (resourceGroupName.length > 90)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90');
}
if (resourceGroupName.length < 1)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1');
}
if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/');
}
}
if (profileName === null || profileName === undefined || typeof profileName.valueOf() !== 'string') {
throw new Error('profileName cannot be null or undefined and it must be of type string.');
}
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.');
if (endpointName === null || endpointName === undefined || typeof endpointName.valueOf() !== 'string') {
throw new Error('endpointName cannot be null or undefined and it must be of type string.');
}
if (customDomainName === null || customDomainName === undefined || typeof customDomainName.valueOf() !== 'string') {
throw new Error('customDomainName cannot be null or undefined and it must be of type string.');
}
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.');
@ -513,21 +549,18 @@ CustomDomains.prototype.beginCreate = function (customDomainName, endpointName,
}
// Construct URL
var requestUrl = this.client.baseUri +
'//subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}';
requestUrl = requestUrl.replace('{customDomainName}', encodeURIComponent(customDomainName));
requestUrl = requestUrl.replace('{endpointName}', encodeURIComponent(endpointName));
requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName));
var baseUrl = this.client.baseUri;
var requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}';
requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName));
requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName));
requestUrl = requestUrl.replace('{endpointName}', encodeURIComponent(endpointName));
requestUrl = requestUrl.replace('{customDomainName}', encodeURIComponent(customDomainName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
var queryParameters = [];
queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
// trim all duplicate forward slashes in the url
var regex = /([^:]\/)\/+/gi;
requestUrl = requestUrl.replace(regex, '$1');
// Create HTTP transport objects
var httpRequest = new WebResource();
@ -655,203 +688,19 @@ CustomDomains.prototype.beginCreate = function (customDomainName, endpointName,
};
/**
* @summary Updates an existing CDN custom domain within an endpoint.
*
* @param {string} customDomainName Name of the custom domain within an
* endpoint.
*
* @param {string} endpointName Name of the endpoint within the CDN profile.
* Deletes an existing CDN custom domain within an endpoint.
*
* @param {string} resourceGroupName Name of the Resource group within the
* Azure subscription.
*
* @param {string} profileName Name of the CDN profile within the resource
* group.
*
* @param {string} resourceGroupName Name of the resource group within the
* Azure subscription.
*
* @param {string} hostName The host name of the custom domain. Must be a
* domain name.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {function} callback
*
* @returns {function} callback(err, result, request, response)
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
* {object} [result] - The deserialized result object.
* See {@link ErrorResponse} for more information.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
CustomDomains.prototype.update = function (customDomainName, endpointName, profileName, resourceGroupName, hostName, options, callback) {
var client = this.client;
if(!callback && typeof options === 'function') {
callback = options;
options = null;
}
if (!callback) {
throw new Error('callback cannot be null.');
}
// Validate
try {
if (customDomainName === null || customDomainName === undefined || typeof customDomainName.valueOf() !== 'string') {
throw new Error('customDomainName cannot be null or undefined and it must be of type string.');
}
if (endpointName === null || endpointName === undefined || typeof endpointName.valueOf() !== 'string') {
throw new Error('endpointName cannot be null or undefined and it must be of type string.');
}
if (profileName === null || profileName === undefined || typeof profileName.valueOf() !== 'string') {
throw new Error('profileName cannot be null or undefined and it must be of type string.');
}
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.');
}
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.');
}
if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.');
}
if (hostName === null || hostName === undefined || typeof hostName.valueOf() !== 'string') {
throw new Error('hostName cannot be null or undefined and it must be of type string.');
}
if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') {
throw new Error('this.client.acceptLanguage must be of type string.');
}
} catch (error) {
return callback(error);
}
var customDomainProperties;
if (hostName !== null && hostName !== undefined) {
customDomainProperties = new client.models['CustomDomainParameters']();
customDomainProperties.hostName = hostName;
}
// Construct URL
var requestUrl = this.client.baseUri +
'//subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}';
requestUrl = requestUrl.replace('{customDomainName}', encodeURIComponent(customDomainName));
requestUrl = requestUrl.replace('{endpointName}', encodeURIComponent(endpointName));
requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName));
requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
var queryParameters = [];
queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
// trim all duplicate forward slashes in the url
var regex = /([^:]\/)\/+/gi;
requestUrl = requestUrl.replace(regex, '$1');
// Create HTTP transport objects
var httpRequest = new WebResource();
httpRequest.method = 'PATCH';
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
if (this.client.generateClientRequestId) {
httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();
}
if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) {
httpRequest.headers['accept-language'] = this.client.acceptLanguage;
}
if(options) {
for(var headerName in options['customHeaders']) {
if (options['customHeaders'].hasOwnProperty(headerName)) {
httpRequest.headers[headerName] = options['customHeaders'][headerName];
}
}
}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
// Serialize Request
var requestContent = null;
var requestModel = null;
try {
if (customDomainProperties !== null && customDomainProperties !== undefined) {
var requestModelMapper = new client.models['CustomDomainParameters']().mapper();
requestModel = client.serialize(requestModelMapper, customDomainProperties, 'customDomainProperties');
requestContent = JSON.stringify(requestModel);
}
} catch (error) {
var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' +
'payload - "%s"', error.message, util.inspect(customDomainProperties, {depth: null})));
return callback(serializationError);
}
httpRequest.body = requestContent;
// Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) {
return callback(err);
}
var statusCode = response.statusCode;
if (statusCode < 200 || statusCode >= 300) {
var error = new Error(responseBody);
error.statusCode = response.statusCode;
error.request = msRest.stripRequest(httpRequest);
error.response = msRest.stripResponse(response);
if (responseBody === '') responseBody = null;
var parsedErrorResponse;
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
var resultMapper = new client.models['ErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
error.message = util.format('Error "%s" occurred in deserializing the responseBody ' +
'- "%s" for the default response.', defaultError.message, responseBody);
return callback(error);
}
return callback(error);
}
// Create Result
var result = null;
if (responseBody === '') responseBody = null;
var parsedResponse = null;
try {
parsedResponse = JSON.parse(responseBody);
result = JSON.parse(responseBody);
if (parsedResponse !== null && parsedResponse !== undefined) {
var resultMapper = new client.models['ErrorResponse']().mapper();
result = client.deserialize(resultMapper, parsedResponse, 'result');
}
} catch (error) {
var deserializationError = new Error(util.format('Error "%s" occurred in deserializing the responseBody - "%s"', error, responseBody));
deserializationError.request = msRest.stripRequest(httpRequest);
deserializationError.response = msRest.stripResponse(response);
return callback(deserializationError);
}
return callback(null, result, httpRequest, response);
});
};
/**
*
* @summary Deletes an existing CDN custom domain within an endpoint.
*
* @param {string} customDomainName Name of the custom domain within an
* endpoint.
*
* @param {string} endpointName Name of the endpoint within the CDN profile.
*
* @param {string} profileName Name of the CDN profile within the resource
* group.
*
* @param {string} resourceGroupName Name of the resource group within the
* Azure subscription.
* @param {string} customDomainName Name of the custom domain within an
* endpoint.
*
* @param {object} [options] Optional Parameters.
*
@ -871,7 +720,7 @@ CustomDomains.prototype.update = function (customDomainName, endpointName, profi
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
CustomDomains.prototype.deleteIfExists = function (customDomainName, endpointName, profileName, resourceGroupName, options, callback) {
CustomDomains.prototype.deleteMethod = function (resourceGroupName, profileName, endpointName, customDomainName, options, callback) {
var client = this.client;
if(!callback && typeof options === 'function') {
callback = options;
@ -883,14 +732,14 @@ CustomDomains.prototype.deleteIfExists = function (customDomainName, endpointNam
}
// Send request
this.beginDeleteIfExists(customDomainName, endpointName, profileName, resourceGroupName, options, function (err, parsedResult, httpRequest, response){
this.beginDeleteMethod(resourceGroupName, profileName, endpointName, customDomainName, options, function (err, parsedResult, httpRequest, response){
if (err) return callback(err);
var initialResult = new msRest.HttpOperationResponse();
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) {
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);
// Create Result
@ -922,18 +771,18 @@ CustomDomains.prototype.deleteIfExists = function (customDomainName, endpointNam
};
/**
* @summary Deletes an existing CDN custom domain within an endpoint.
* Deletes an existing CDN custom domain within an endpoint.
*
* @param {string} customDomainName Name of the custom domain within an
* endpoint.
*
* @param {string} endpointName Name of the endpoint within the CDN profile.
* @param {string} resourceGroupName Name of the Resource group within the
* Azure subscription.
*
* @param {string} profileName Name of the CDN profile within the resource
* group.
*
* @param {string} resourceGroupName Name of the resource group within the
* Azure subscription.
* @param {string} endpointName Name of the endpoint within the CDN profile.
*
* @param {string} customDomainName Name of the custom domain within an
* endpoint.
*
* @param {object} [options] Optional Parameters.
*
@ -953,7 +802,7 @@ CustomDomains.prototype.deleteIfExists = function (customDomainName, endpointNam
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
CustomDomains.prototype.beginDeleteIfExists = function (customDomainName, endpointName, profileName, resourceGroupName, options, callback) {
CustomDomains.prototype.beginDeleteMethod = function (resourceGroupName, profileName, endpointName, customDomainName, options, callback) {
var client = this.client;
if(!callback && typeof options === 'function') {
callback = options;
@ -964,17 +813,31 @@ CustomDomains.prototype.beginDeleteIfExists = function (customDomainName, endpoi
}
// Validate
try {
if (customDomainName === null || customDomainName === undefined || typeof customDomainName.valueOf() !== 'string') {
throw new Error('customDomainName cannot be null or undefined and it must be of type string.');
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.');
}
if (endpointName === null || endpointName === undefined || typeof endpointName.valueOf() !== 'string') {
throw new Error('endpointName cannot be null or undefined and it must be of type string.');
if (resourceGroupName !== null && resourceGroupName !== undefined) {
if (resourceGroupName.length > 90)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90');
}
if (resourceGroupName.length < 1)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1');
}
if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/');
}
}
if (profileName === null || profileName === undefined || typeof profileName.valueOf() !== 'string') {
throw new Error('profileName cannot be null or undefined and it must be of type string.');
}
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.');
if (endpointName === null || endpointName === undefined || typeof endpointName.valueOf() !== 'string') {
throw new Error('endpointName cannot be null or undefined and it must be of type string.');
}
if (customDomainName === null || customDomainName === undefined || typeof customDomainName.valueOf() !== 'string') {
throw new Error('customDomainName cannot be null or undefined and it must be of type string.');
}
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.');
@ -990,21 +853,18 @@ CustomDomains.prototype.beginDeleteIfExists = function (customDomainName, endpoi
}
// Construct URL
var requestUrl = this.client.baseUri +
'//subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}';
requestUrl = requestUrl.replace('{customDomainName}', encodeURIComponent(customDomainName));
requestUrl = requestUrl.replace('{endpointName}', encodeURIComponent(endpointName));
requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName));
var baseUrl = this.client.baseUri;
var requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}';
requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName));
requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName));
requestUrl = requestUrl.replace('{endpointName}', encodeURIComponent(endpointName));
requestUrl = requestUrl.replace('{customDomainName}', encodeURIComponent(customDomainName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
var queryParameters = [];
queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
// trim all duplicate forward slashes in the url
var regex = /([^:]\/)\/+/gi;
requestUrl = requestUrl.replace(regex, '$1');
// Create HTTP transport objects
var httpRequest = new WebResource();
@ -1083,5 +943,132 @@ CustomDomains.prototype.beginDeleteIfExists = function (customDomainName, endpoi
});
};
/**
* Lists the existing CDN custom domains within an endpoint.
*
* @param {string} nextPageLink The NextLink from the previous successful call
* to List operation.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {function} callback
*
* @returns {function} callback(err, result, request, response)
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
* {object} [result] - The deserialized result object.
* See {@link CustomDomainListResult} for more
* information.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
CustomDomains.prototype.listByEndpointNext = function (nextPageLink, options, callback) {
var client = this.client;
if(!callback && typeof options === 'function') {
callback = options;
options = null;
}
if (!callback) {
throw new Error('callback cannot be null.');
}
// Validate
try {
if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') {
throw new Error('nextPageLink cannot be null or undefined and it must be of type string.');
}
if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') {
throw new Error('this.client.acceptLanguage must be of type string.');
}
} catch (error) {
return callback(error);
}
// Construct URL
var requestUrl = '{nextLink}';
requestUrl = requestUrl.replace('{nextLink}', nextPageLink);
// Create HTTP transport objects
var httpRequest = new WebResource();
httpRequest.method = 'GET';
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
if (this.client.generateClientRequestId) {
httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();
}
if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) {
httpRequest.headers['accept-language'] = this.client.acceptLanguage;
}
if(options) {
for(var headerName in options['customHeaders']) {
if (options['customHeaders'].hasOwnProperty(headerName)) {
httpRequest.headers[headerName] = options['customHeaders'][headerName];
}
}
}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;
// Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) {
return callback(err);
}
var statusCode = response.statusCode;
if (statusCode !== 200) {
var error = new Error(responseBody);
error.statusCode = response.statusCode;
error.request = msRest.stripRequest(httpRequest);
error.response = msRest.stripResponse(response);
if (responseBody === '') responseBody = null;
var parsedErrorResponse;
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
var resultMapper = new client.models['ErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
error.message = util.format('Error "%s" occurred in deserializing the responseBody ' +
'- "%s" for the default response.', defaultError.message, responseBody);
return callback(error);
}
return callback(error);
}
// Create Result
var result = null;
if (responseBody === '') responseBody = null;
// Deserialize Response
if (statusCode === 200) {
var parsedResponse = null;
try {
parsedResponse = JSON.parse(responseBody);
result = JSON.parse(responseBody);
if (parsedResponse !== null && parsedResponse !== undefined) {
var resultMapper = new client.models['CustomDomainListResult']().mapper();
result = client.deserialize(resultMapper, parsedResponse, 'result');
}
} catch (error) {
var deserializationError = new Error(util.format('Error "%s" occurred in deserializing the responseBody - "%s"', error, responseBody));
deserializationError.request = msRest.stripRequest(httpRequest);
deserializationError.response = msRest.stripResponse(response);
return callback(deserializationError);
}
}
return callback(null, result, httpRequest, response);
});
};
module.exports = CustomDomains;

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -18,5 +18,3 @@ exports.Profiles = require('./profiles');
exports.Endpoints = require('./endpoints');
exports.Origins = require('./origins');
exports.CustomDomains = require('./customDomains');
exports.NameAvailability = require('./nameAvailability');
exports.Operations = require('./operations');

Просмотреть файл

@ -1,203 +0,0 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
var util = require('util');
var msRest = require('ms-rest');
var msRestAzure = require('ms-rest-azure');
var WebResource = msRest.WebResource;
/**
* @class
* NameAvailability
* __NOTE__: An instance of this class is automatically created for an
* instance of the CdnManagementClient.
* Initializes a new instance of the NameAvailability class.
* @constructor
*
* @param {CdnManagementClient} client Reference to the service client.
*/
function NameAvailability(client) {
this.client = client;
}
/**
* @summary Check the availability of a resource name without creating the
* resource. This is needed for resources where name is globally unique, such
* as a CDN endpoint.
*
* @param {string} name The resource name to validate.
*
* @param {string} type The type of the resource whose name is to be
* validated. Possible values include: 'Microsoft.Cdn/Profiles/Endpoints'
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {function} callback
*
* @returns {function} callback(err, result, request, response)
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
* {object} [result] - The deserialized result object.
* See {@link CheckNameAvailabilityOutput} for more
* information.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
NameAvailability.prototype.checkNameAvailability = function (name, type, options, callback) {
var client = this.client;
if(!callback && typeof options === 'function') {
callback = options;
options = null;
}
if (!callback) {
throw new Error('callback cannot be null.');
}
// Validate
try {
if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.');
}
if (name === null || name === undefined || typeof name.valueOf() !== 'string') {
throw new Error('name cannot be null or undefined and it must be of type string.');
}
if (type) {
var allowedValues = [ 'Microsoft.Cdn/Profiles/Endpoints' ];
if (!allowedValues.some( function(item) { return item === type; })) {
throw new Error(type + ' is not a valid value. The valid values are: ' + allowedValues);
}
} else {
throw new Error('type cannot be null or undefined.');
}
if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') {
throw new Error('this.client.acceptLanguage must be of type string.');
}
} catch (error) {
return callback(error);
}
var checkNameAvailabilityInput;
if ((name !== null && name !== undefined) || (type !== null && type !== undefined)) {
checkNameAvailabilityInput = new client.models['CheckNameAvailabilityInput']();
checkNameAvailabilityInput.name = name;
checkNameAvailabilityInput.type = type;
}
// Construct URL
var requestUrl = this.client.baseUri +
'//providers/Microsoft.Cdn/checkNameAvailability';
var queryParameters = [];
queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
// trim all duplicate forward slashes in the url
var regex = /([^:]\/)\/+/gi;
requestUrl = requestUrl.replace(regex, '$1');
// Create HTTP transport objects
var httpRequest = new WebResource();
httpRequest.method = 'POST';
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
if (this.client.generateClientRequestId) {
httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();
}
if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) {
httpRequest.headers['accept-language'] = this.client.acceptLanguage;
}
if(options) {
for(var headerName in options['customHeaders']) {
if (options['customHeaders'].hasOwnProperty(headerName)) {
httpRequest.headers[headerName] = options['customHeaders'][headerName];
}
}
}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
// Serialize Request
var requestContent = null;
var requestModel = null;
try {
if (checkNameAvailabilityInput !== null && checkNameAvailabilityInput !== undefined) {
var requestModelMapper = new client.models['CheckNameAvailabilityInput']().mapper();
requestModel = client.serialize(requestModelMapper, checkNameAvailabilityInput, 'checkNameAvailabilityInput');
requestContent = JSON.stringify(requestModel);
}
} catch (error) {
var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' +
'payload - "%s"', error.message, util.inspect(checkNameAvailabilityInput, {depth: null})));
return callback(serializationError);
}
httpRequest.body = requestContent;
// Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) {
return callback(err);
}
var statusCode = response.statusCode;
if (statusCode !== 200) {
var error = new Error(responseBody);
error.statusCode = response.statusCode;
error.request = msRest.stripRequest(httpRequest);
error.response = msRest.stripResponse(response);
if (responseBody === '') responseBody = null;
var parsedErrorResponse;
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
var resultMapper = new client.models['ErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
error.message = util.format('Error "%s" occurred in deserializing the responseBody ' +
'- "%s" for the default response.', defaultError.message, responseBody);
return callback(error);
}
return callback(error);
}
// Create Result
var result = null;
if (responseBody === '') responseBody = null;
// Deserialize Response
if (statusCode === 200) {
var parsedResponse = null;
try {
parsedResponse = JSON.parse(responseBody);
result = JSON.parse(responseBody);
if (parsedResponse !== null && parsedResponse !== undefined) {
var resultMapper = new client.models['CheckNameAvailabilityOutput']().mapper();
result = client.deserialize(resultMapper, parsedResponse, 'result');
}
} catch (error) {
var deserializationError = new Error(util.format('Error "%s" occurred in deserializing the responseBody - "%s"', error, responseBody));
deserializationError.request = msRest.stripRequest(httpRequest);
deserializationError.response = msRest.stripResponse(response);
return callback(deserializationError);
}
}
return callback(null, result, httpRequest, response);
});
};
module.exports = NameAvailability;

Просмотреть файл

@ -1,164 +0,0 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
var util = require('util');
var msRest = require('ms-rest');
var msRestAzure = require('ms-rest-azure');
var WebResource = msRest.WebResource;
/**
* @class
* Operations
* __NOTE__: An instance of this class is automatically created for an
* instance of the CdnManagementClient.
* Initializes a new instance of the Operations class.
* @constructor
*
* @param {CdnManagementClient} client Reference to the service client.
*/
function Operations(client) {
this.client = client;
}
/**
* @summary Lists all of the available CDN REST API operations.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {function} callback
*
* @returns {function} callback(err, result, request, response)
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
* {object} [result] - The deserialized result object.
* See {@link OperationListResult} for more information.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
Operations.prototype.list = function (options, callback) {
var client = this.client;
if(!callback && typeof options === 'function') {
callback = options;
options = null;
}
if (!callback) {
throw new Error('callback cannot be null.');
}
// Validate
try {
if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') {
throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.');
}
if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') {
throw new Error('this.client.acceptLanguage must be of type string.');
}
} catch (error) {
return callback(error);
}
// Construct URL
var requestUrl = this.client.baseUri +
'//providers/Microsoft.Cdn/operations';
var queryParameters = [];
queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
// trim all duplicate forward slashes in the url
var regex = /([^:]\/)\/+/gi;
requestUrl = requestUrl.replace(regex, '$1');
// Create HTTP transport objects
var httpRequest = new WebResource();
httpRequest.method = 'GET';
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
if (this.client.generateClientRequestId) {
httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();
}
if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) {
httpRequest.headers['accept-language'] = this.client.acceptLanguage;
}
if(options) {
for(var headerName in options['customHeaders']) {
if (options['customHeaders'].hasOwnProperty(headerName)) {
httpRequest.headers[headerName] = options['customHeaders'][headerName];
}
}
}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;
// Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) {
return callback(err);
}
var statusCode = response.statusCode;
if (statusCode !== 200) {
var error = new Error(responseBody);
error.statusCode = response.statusCode;
error.request = msRest.stripRequest(httpRequest);
error.response = msRest.stripResponse(response);
if (responseBody === '') responseBody = null;
var parsedErrorResponse;
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
var resultMapper = new client.models['ErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
error.message = util.format('Error "%s" occurred in deserializing the responseBody ' +
'- "%s" for the default response.', defaultError.message, responseBody);
return callback(error);
}
return callback(error);
}
// Create Result
var result = null;
if (responseBody === '') responseBody = null;
// Deserialize Response
if (statusCode === 200) {
var parsedResponse = null;
try {
parsedResponse = JSON.parse(responseBody);
result = JSON.parse(responseBody);
if (parsedResponse !== null && parsedResponse !== undefined) {
var resultMapper = new client.models['OperationListResult']().mapper();
result = client.deserialize(resultMapper, parsedResponse, 'result');
}
} catch (error) {
var deserializationError = new Error(util.format('Error "%s" occurred in deserializing the responseBody - "%s"', error, responseBody));
deserializationError.request = msRest.stripRequest(httpRequest);
deserializationError.response = msRest.stripResponse(response);
return callback(deserializationError);
}
}
return callback(null, result, httpRequest, response);
});
};
module.exports = Operations;

Просмотреть файл

@ -30,15 +30,15 @@ function Origins(client) {
}
/**
* @summary Lists the existing CDN origins within an endpoint.
* Lists the existing CDN origins within an endpoint.
*
* @param {string} endpointName Name of the endpoint within the CDN profile.
* @param {string} resourceGroupName Name of the Resource group within the
* Azure subscription.
*
* @param {string} profileName Name of the CDN profile within the resource
* group.
*
* @param {string} resourceGroupName Name of the resource group within the
* Azure subscription.
* @param {string} endpointName Name of the endpoint within the CDN profile.
*
* @param {object} [options] Optional Parameters.
*
@ -58,7 +58,7 @@ function Origins(client) {
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
Origins.prototype.listByEndpoint = function (endpointName, profileName, resourceGroupName, options, callback) {
Origins.prototype.listByEndpoint = function (resourceGroupName, profileName, endpointName, options, callback) {
var client = this.client;
if(!callback && typeof options === 'function') {
callback = options;
@ -69,14 +69,28 @@ Origins.prototype.listByEndpoint = function (endpointName, profileName, resource
}
// Validate
try {
if (endpointName === null || endpointName === undefined || typeof endpointName.valueOf() !== 'string') {
throw new Error('endpointName cannot be null or undefined and it must be of type string.');
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.');
}
if (resourceGroupName !== null && resourceGroupName !== undefined) {
if (resourceGroupName.length > 90)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90');
}
if (resourceGroupName.length < 1)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1');
}
if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/');
}
}
if (profileName === null || profileName === undefined || typeof profileName.valueOf() !== 'string') {
throw new Error('profileName cannot be null or undefined and it must be of type string.');
}
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.');
if (endpointName === null || endpointName === undefined || typeof endpointName.valueOf() !== 'string') {
throw new Error('endpointName cannot be null or undefined and it must be of type string.');
}
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.');
@ -92,20 +106,17 @@ Origins.prototype.listByEndpoint = function (endpointName, profileName, resource
}
// Construct URL
var requestUrl = this.client.baseUri +
'//subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/origins';
requestUrl = requestUrl.replace('{endpointName}', encodeURIComponent(endpointName));
requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName));
var baseUrl = this.client.baseUri;
var requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/origins';
requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName));
requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName));
requestUrl = requestUrl.replace('{endpointName}', encodeURIComponent(endpointName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
var queryParameters = [];
queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
// trim all duplicate forward slashes in the url
var regex = /([^:]\/)\/+/gi;
requestUrl = requestUrl.replace(regex, '$1');
// Create HTTP transport objects
var httpRequest = new WebResource();
@ -185,18 +196,18 @@ Origins.prototype.listByEndpoint = function (endpointName, profileName, resource
};
/**
* @summary Gets an existing CDN origin within an endpoint.
* Gets an existing CDN origin within an endpoint.
*
* @param {string} originName Name of the origin, an arbitrary value but it
* needs to be unique under endpoint
*
* @param {string} endpointName Name of the endpoint within the CDN profile.
* @param {string} resourceGroupName Name of the Resource group within the
* Azure subscription.
*
* @param {string} profileName Name of the CDN profile within the resource
* group.
*
* @param {string} resourceGroupName Name of the resource group within the
* Azure subscription.
* @param {string} endpointName Name of the endpoint within the CDN profile.
*
* @param {string} originName Name of the origin, an arbitrary value but it
* needs to be unique under endpoint
*
* @param {object} [options] Optional Parameters.
*
@ -216,7 +227,7 @@ Origins.prototype.listByEndpoint = function (endpointName, profileName, resource
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
Origins.prototype.get = function (originName, endpointName, profileName, resourceGroupName, options, callback) {
Origins.prototype.get = function (resourceGroupName, profileName, endpointName, originName, options, callback) {
var client = this.client;
if(!callback && typeof options === 'function') {
callback = options;
@ -227,17 +238,31 @@ Origins.prototype.get = function (originName, endpointName, profileName, resourc
}
// Validate
try {
if (originName === null || originName === undefined || typeof originName.valueOf() !== 'string') {
throw new Error('originName cannot be null or undefined and it must be of type string.');
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.');
}
if (endpointName === null || endpointName === undefined || typeof endpointName.valueOf() !== 'string') {
throw new Error('endpointName cannot be null or undefined and it must be of type string.');
if (resourceGroupName !== null && resourceGroupName !== undefined) {
if (resourceGroupName.length > 90)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90');
}
if (resourceGroupName.length < 1)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1');
}
if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/');
}
}
if (profileName === null || profileName === undefined || typeof profileName.valueOf() !== 'string') {
throw new Error('profileName cannot be null or undefined and it must be of type string.');
}
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.');
if (endpointName === null || endpointName === undefined || typeof endpointName.valueOf() !== 'string') {
throw new Error('endpointName cannot be null or undefined and it must be of type string.');
}
if (originName === null || originName === undefined || typeof originName.valueOf() !== 'string') {
throw new Error('originName cannot be null or undefined and it must be of type string.');
}
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.');
@ -253,21 +278,18 @@ Origins.prototype.get = function (originName, endpointName, profileName, resourc
}
// Construct URL
var requestUrl = this.client.baseUri +
'//subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/origins/{originName}';
requestUrl = requestUrl.replace('{originName}', encodeURIComponent(originName));
requestUrl = requestUrl.replace('{endpointName}', encodeURIComponent(endpointName));
requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName));
var baseUrl = this.client.baseUri;
var requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/origins/{originName}';
requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName));
requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName));
requestUrl = requestUrl.replace('{endpointName}', encodeURIComponent(endpointName));
requestUrl = requestUrl.replace('{originName}', encodeURIComponent(originName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
var queryParameters = [];
queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
// trim all duplicate forward slashes in the url
var regex = /([^:]\/)\/+/gi;
requestUrl = requestUrl.replace(regex, '$1');
// Create HTTP transport objects
var httpRequest = new WebResource();
@ -348,29 +370,33 @@ Origins.prototype.get = function (originName, endpointName, profileName, resourc
/**
*
* @summary Creates a new CDN origin within an endpoint.
* Creates a new CDN origin within an endpoint.
*
* @param {string} originName Name of the origin, an arbitrary value but it
* needs to be unique under endpoint
*
* @param {object} originProperties Origin properties
*
* @param {string} [originProperties.hostName] The address of the origin.
* Domain names, IPv4 addresses, and IPv6 addresses are supported.
*
* @param {number} [originProperties.httpPort] The value of the HTTP port.
* Must be between 1 and 65535.
*
* @param {number} [originProperties.httpsPort] The value of the HTTPS port.
* Must be between 1 and 65535.
*
* @param {string} endpointName Name of the endpoint within the CDN profile.
* @param {string} resourceGroupName Name of the Resource group within the
* Azure subscription.
*
* @param {string} profileName Name of the CDN profile within the resource
* group.
*
* @param {string} resourceGroupName Name of the resource group within the
* Azure subscription.
* @param {string} endpointName Name of the endpoint within the CDN profile.
*
* @param {string} originName Name of the origin, an arbitrary value but it
* needs to be unique under endpoint
*
* @param {object} originCreateProperties Origin properties
*
* @param {string} originCreateProperties.hostName The address of the origin.
* Domain names, IPv4 addresses, and IPv6 addresses are supported.
*
* @param {number} [originCreateProperties.httpPort] The value of the HTTP
* port. Must be between 1 and 65535.
*
* @param {number} [originCreateProperties.httpsPort] The value of the https
* port. Must be between 1 and 65535.
*
* @param {string} originCreateProperties.location Resource location
*
* @param {object} [originCreateProperties.tags] Resource tags
*
* @param {object} [options] Optional Parameters.
*
@ -390,7 +416,7 @@ Origins.prototype.get = function (originName, endpointName, profileName, resourc
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
Origins.prototype.create = function (originName, originProperties, endpointName, profileName, resourceGroupName, options, callback) {
Origins.prototype.create = function (resourceGroupName, profileName, endpointName, originName, originCreateProperties, options, callback) {
var client = this.client;
if(!callback && typeof options === 'function') {
callback = options;
@ -402,14 +428,14 @@ Origins.prototype.create = function (originName, originProperties, endpointName,
}
// Send request
this.beginCreate(originName, originProperties, endpointName, profileName, resourceGroupName, options, function (err, parsedResult, httpRequest, response){
this.beginCreate(resourceGroupName, profileName, endpointName, originName, originCreateProperties, options, function (err, parsedResult, httpRequest, response){
if (err) return callback(err);
var initialResult = new msRest.HttpOperationResponse();
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) {
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);
// Create Result
@ -441,29 +467,33 @@ Origins.prototype.create = function (originName, originProperties, endpointName,
};
/**
* @summary Creates a new CDN origin within an endpoint.
* Creates a new CDN origin within an endpoint.
*
* @param {string} originName Name of the origin, an arbitrary value but it
* needs to be unique under endpoint
*
* @param {object} originProperties Origin properties
*
* @param {string} [originProperties.hostName] The address of the origin.
* Domain names, IPv4 addresses, and IPv6 addresses are supported.
*
* @param {number} [originProperties.httpPort] The value of the HTTP port.
* Must be between 1 and 65535.
*
* @param {number} [originProperties.httpsPort] The value of the HTTPS port.
* Must be between 1 and 65535.
*
* @param {string} endpointName Name of the endpoint within the CDN profile.
* @param {string} resourceGroupName Name of the Resource group within the
* Azure subscription.
*
* @param {string} profileName Name of the CDN profile within the resource
* group.
*
* @param {string} resourceGroupName Name of the resource group within the
* Azure subscription.
* @param {string} endpointName Name of the endpoint within the CDN profile.
*
* @param {string} originName Name of the origin, an arbitrary value but it
* needs to be unique under endpoint
*
* @param {object} originCreateProperties Origin properties
*
* @param {string} originCreateProperties.hostName The address of the origin.
* Domain names, IPv4 addresses, and IPv6 addresses are supported.
*
* @param {number} [originCreateProperties.httpPort] The value of the HTTP
* port. Must be between 1 and 65535.
*
* @param {number} [originCreateProperties.httpsPort] The value of the https
* port. Must be between 1 and 65535.
*
* @param {string} originCreateProperties.location Resource location
*
* @param {object} [originCreateProperties.tags] Resource tags
*
* @param {object} [options] Optional Parameters.
*
@ -483,7 +513,7 @@ Origins.prototype.create = function (originName, originProperties, endpointName,
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
Origins.prototype.beginCreate = function (originName, originProperties, endpointName, profileName, resourceGroupName, options, callback) {
Origins.prototype.beginCreate = function (resourceGroupName, profileName, endpointName, originName, originCreateProperties, options, callback) {
var client = this.client;
if(!callback && typeof options === 'function') {
callback = options;
@ -494,20 +524,34 @@ Origins.prototype.beginCreate = function (originName, originProperties, endpoint
}
// Validate
try {
if (originName === null || originName === undefined || typeof originName.valueOf() !== 'string') {
throw new Error('originName cannot be null or undefined and it must be of type string.');
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.');
}
if (originProperties === null || originProperties === undefined) {
throw new Error('originProperties cannot be null or undefined.');
}
if (endpointName === null || endpointName === undefined || typeof endpointName.valueOf() !== 'string') {
throw new Error('endpointName cannot be null or undefined and it must be of type string.');
if (resourceGroupName !== null && resourceGroupName !== undefined) {
if (resourceGroupName.length > 90)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90');
}
if (resourceGroupName.length < 1)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1');
}
if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/');
}
}
if (profileName === null || profileName === undefined || typeof profileName.valueOf() !== 'string') {
throw new Error('profileName cannot be null or undefined and it must be of type string.');
}
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.');
if (endpointName === null || endpointName === undefined || typeof endpointName.valueOf() !== 'string') {
throw new Error('endpointName cannot be null or undefined and it must be of type string.');
}
if (originName === null || originName === undefined || typeof originName.valueOf() !== 'string') {
throw new Error('originName cannot be null or undefined and it must be of type string.');
}
if (originCreateProperties === null || originCreateProperties === undefined) {
throw new Error('originCreateProperties cannot be null or undefined.');
}
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.');
@ -523,21 +567,18 @@ Origins.prototype.beginCreate = function (originName, originProperties, endpoint
}
// Construct URL
var requestUrl = this.client.baseUri +
'//subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/origins/{originName}';
requestUrl = requestUrl.replace('{originName}', encodeURIComponent(originName));
requestUrl = requestUrl.replace('{endpointName}', encodeURIComponent(endpointName));
requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName));
var baseUrl = this.client.baseUri;
var requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/origins/{originName}';
requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName));
requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName));
requestUrl = requestUrl.replace('{endpointName}', encodeURIComponent(endpointName));
requestUrl = requestUrl.replace('{originName}', encodeURIComponent(originName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
var queryParameters = [];
queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
// trim all duplicate forward slashes in the url
var regex = /([^:]\/)\/+/gi;
requestUrl = requestUrl.replace(regex, '$1');
// Create HTTP transport objects
var httpRequest = new WebResource();
@ -563,14 +604,14 @@ Origins.prototype.beginCreate = function (originName, originProperties, endpoint
var requestContent = null;
var requestModel = null;
try {
if (originProperties !== null && originProperties !== undefined) {
var requestModelMapper = new client.models['OriginParameters']().mapper();
requestModel = client.serialize(requestModelMapper, originProperties, 'originProperties');
if (originCreateProperties !== null && originCreateProperties !== undefined) {
var requestModelMapper = new client.models['Origin']().mapper();
requestModel = client.serialize(requestModelMapper, originCreateProperties, 'originCreateProperties');
requestContent = JSON.stringify(requestModel);
}
} catch (error) {
var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' +
'payload - "%s"', error.message, util.inspect(originProperties, {depth: null})));
'payload - "%s"', error.message, util.inspect(originCreateProperties, {depth: null})));
return callback(serializationError);
}
httpRequest.body = requestContent;
@ -666,29 +707,29 @@ Origins.prototype.beginCreate = function (originName, originProperties, endpoint
/**
*
* @summary Updates an existing CDN origin within an endpoint.
* Updates an existing CDN origin within an endpoint.
*
* @param {string} originName Name of the origin. Must be unique within
* endpoint.
*
* @param {object} originProperties Origin properties
*
* @param {string} [originProperties.hostName] The address of the origin.
* Domain names, IPv4 addresses, and IPv6 addresses are supported.
*
* @param {number} [originProperties.httpPort] The value of the HTTP port.
* Must be between 1 and 65535.
*
* @param {number} [originProperties.httpsPort] The value of the HTTPS port.
* Must be between 1 and 65535.
*
* @param {string} endpointName Name of the endpoint within the CDN profile.
* @param {string} resourceGroupName Name of the Resource group within the
* Azure subscription.
*
* @param {string} profileName Name of the CDN profile within the resource
* group.
*
* @param {string} resourceGroupName Name of the resource group within the
* Azure subscription.
* @param {string} endpointName Name of the endpoint within the CDN profile.
*
* @param {string} originName Name of the origin. Must be unique within
* endpoint.
*
* @param {object} originUpdateProperties Origin properties
*
* @param {string} [originUpdateProperties.hostName] The address of the
* origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.
*
* @param {number} [originUpdateProperties.httpPort] The value of the HTTP
* port. Must be between 1 and 65535.
*
* @param {number} [originUpdateProperties.httpsPort] The value of the HTTPS
* port. Must be between 1 and 65535.
*
* @param {object} [options] Optional Parameters.
*
@ -708,7 +749,7 @@ Origins.prototype.beginCreate = function (originName, originProperties, endpoint
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
Origins.prototype.update = function (originName, originProperties, endpointName, profileName, resourceGroupName, options, callback) {
Origins.prototype.update = function (resourceGroupName, profileName, endpointName, originName, originUpdateProperties, options, callback) {
var client = this.client;
if(!callback && typeof options === 'function') {
callback = options;
@ -720,14 +761,14 @@ Origins.prototype.update = function (originName, originProperties, endpointName,
}
// Send request
this.beginUpdate(originName, originProperties, endpointName, profileName, resourceGroupName, options, function (err, parsedResult, httpRequest, response){
this.beginUpdate(resourceGroupName, profileName, endpointName, originName, originUpdateProperties, options, function (err, parsedResult, httpRequest, response){
if (err) return callback(err);
var initialResult = new msRest.HttpOperationResponse();
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) {
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);
// Create Result
@ -759,29 +800,29 @@ Origins.prototype.update = function (originName, originProperties, endpointName,
};
/**
* @summary Updates an existing CDN origin within an endpoint.
* Updates an existing CDN origin within an endpoint.
*
* @param {string} originName Name of the origin. Must be unique within
* endpoint.
*
* @param {object} originProperties Origin properties
*
* @param {string} [originProperties.hostName] The address of the origin.
* Domain names, IPv4 addresses, and IPv6 addresses are supported.
*
* @param {number} [originProperties.httpPort] The value of the HTTP port.
* Must be between 1 and 65535.
*
* @param {number} [originProperties.httpsPort] The value of the HTTPS port.
* Must be between 1 and 65535.
*
* @param {string} endpointName Name of the endpoint within the CDN profile.
* @param {string} resourceGroupName Name of the Resource group within the
* Azure subscription.
*
* @param {string} profileName Name of the CDN profile within the resource
* group.
*
* @param {string} resourceGroupName Name of the resource group within the
* Azure subscription.
* @param {string} endpointName Name of the endpoint within the CDN profile.
*
* @param {string} originName Name of the origin. Must be unique within
* endpoint.
*
* @param {object} originUpdateProperties Origin properties
*
* @param {string} [originUpdateProperties.hostName] The address of the
* origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.
*
* @param {number} [originUpdateProperties.httpPort] The value of the HTTP
* port. Must be between 1 and 65535.
*
* @param {number} [originUpdateProperties.httpsPort] The value of the HTTPS
* port. Must be between 1 and 65535.
*
* @param {object} [options] Optional Parameters.
*
@ -801,7 +842,7 @@ Origins.prototype.update = function (originName, originProperties, endpointName,
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
Origins.prototype.beginUpdate = function (originName, originProperties, endpointName, profileName, resourceGroupName, options, callback) {
Origins.prototype.beginUpdate = function (resourceGroupName, profileName, endpointName, originName, originUpdateProperties, options, callback) {
var client = this.client;
if(!callback && typeof options === 'function') {
callback = options;
@ -812,20 +853,34 @@ Origins.prototype.beginUpdate = function (originName, originProperties, endpoint
}
// Validate
try {
if (originName === null || originName === undefined || typeof originName.valueOf() !== 'string') {
throw new Error('originName cannot be null or undefined and it must be of type string.');
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.');
}
if (originProperties === null || originProperties === undefined) {
throw new Error('originProperties cannot be null or undefined.');
}
if (endpointName === null || endpointName === undefined || typeof endpointName.valueOf() !== 'string') {
throw new Error('endpointName cannot be null or undefined and it must be of type string.');
if (resourceGroupName !== null && resourceGroupName !== undefined) {
if (resourceGroupName.length > 90)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90');
}
if (resourceGroupName.length < 1)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1');
}
if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/');
}
}
if (profileName === null || profileName === undefined || typeof profileName.valueOf() !== 'string') {
throw new Error('profileName cannot be null or undefined and it must be of type string.');
}
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.');
if (endpointName === null || endpointName === undefined || typeof endpointName.valueOf() !== 'string') {
throw new Error('endpointName cannot be null or undefined and it must be of type string.');
}
if (originName === null || originName === undefined || typeof originName.valueOf() !== 'string') {
throw new Error('originName cannot be null or undefined and it must be of type string.');
}
if (originUpdateProperties === null || originUpdateProperties === undefined) {
throw new Error('originUpdateProperties cannot be null or undefined.');
}
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.');
@ -841,21 +896,18 @@ Origins.prototype.beginUpdate = function (originName, originProperties, endpoint
}
// Construct URL
var requestUrl = this.client.baseUri +
'//subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/origins/{originName}';
requestUrl = requestUrl.replace('{originName}', encodeURIComponent(originName));
requestUrl = requestUrl.replace('{endpointName}', encodeURIComponent(endpointName));
requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName));
var baseUrl = this.client.baseUri;
var requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/origins/{originName}';
requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName));
requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName));
requestUrl = requestUrl.replace('{endpointName}', encodeURIComponent(endpointName));
requestUrl = requestUrl.replace('{originName}', encodeURIComponent(originName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
var queryParameters = [];
queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
// trim all duplicate forward slashes in the url
var regex = /([^:]\/)\/+/gi;
requestUrl = requestUrl.replace(regex, '$1');
// Create HTTP transport objects
var httpRequest = new WebResource();
@ -881,14 +933,14 @@ Origins.prototype.beginUpdate = function (originName, originProperties, endpoint
var requestContent = null;
var requestModel = null;
try {
if (originProperties !== null && originProperties !== undefined) {
var requestModelMapper = new client.models['OriginParameters']().mapper();
requestModel = client.serialize(requestModelMapper, originProperties, 'originProperties');
if (originUpdateProperties !== null && originUpdateProperties !== undefined) {
var requestModelMapper = new client.models['OriginUpdateParameters']().mapper();
requestModel = client.serialize(requestModelMapper, originUpdateProperties, 'originUpdateProperties');
requestContent = JSON.stringify(requestModel);
}
} catch (error) {
var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' +
'payload - "%s"', error.message, util.inspect(originProperties, {depth: null})));
'payload - "%s"', error.message, util.inspect(originUpdateProperties, {depth: null})));
return callback(serializationError);
}
httpRequest.body = requestContent;
@ -967,18 +1019,18 @@ Origins.prototype.beginUpdate = function (originName, originProperties, endpoint
/**
*
* @summary Deletes an existing CDN origin within an endpoint.
* Deletes an existing CDN origin within an endpoint.
*
* @param {string} originName Name of the origin. Must be unique within
* endpoint.
*
* @param {string} endpointName Name of the endpoint within the CDN profile.
* @param {string} resourceGroupName Name of the Resource group within the
* Azure subscription.
*
* @param {string} profileName Name of the CDN profile within the resource
* group.
*
* @param {string} resourceGroupName Name of the resource group within the
* Azure subscription.
* @param {string} endpointName Name of the endpoint within the CDN profile.
*
* @param {string} originName Name of the origin. Must be unique within
* endpoint.
*
* @param {object} [options] Optional Parameters.
*
@ -998,7 +1050,7 @@ Origins.prototype.beginUpdate = function (originName, originProperties, endpoint
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
Origins.prototype.deleteIfExists = function (originName, endpointName, profileName, resourceGroupName, options, callback) {
Origins.prototype.deleteMethod = function (resourceGroupName, profileName, endpointName, originName, options, callback) {
var client = this.client;
if(!callback && typeof options === 'function') {
callback = options;
@ -1010,14 +1062,14 @@ Origins.prototype.deleteIfExists = function (originName, endpointName, profileNa
}
// Send request
this.beginDeleteIfExists(originName, endpointName, profileName, resourceGroupName, options, function (err, parsedResult, httpRequest, response){
this.beginDeleteMethod(resourceGroupName, profileName, endpointName, originName, options, function (err, parsedResult, httpRequest, response){
if (err) return callback(err);
var initialResult = new msRest.HttpOperationResponse();
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) {
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);
// Create Result
@ -1049,18 +1101,18 @@ Origins.prototype.deleteIfExists = function (originName, endpointName, profileNa
};
/**
* @summary Deletes an existing CDN origin within an endpoint.
* Deletes an existing CDN origin within an endpoint.
*
* @param {string} originName Name of the origin. Must be unique within
* endpoint.
*
* @param {string} endpointName Name of the endpoint within the CDN profile.
* @param {string} resourceGroupName Name of the Resource group within the
* Azure subscription.
*
* @param {string} profileName Name of the CDN profile within the resource
* group.
*
* @param {string} resourceGroupName Name of the resource group within the
* Azure subscription.
* @param {string} endpointName Name of the endpoint within the CDN profile.
*
* @param {string} originName Name of the origin. Must be unique within
* endpoint.
*
* @param {object} [options] Optional Parameters.
*
@ -1080,7 +1132,7 @@ Origins.prototype.deleteIfExists = function (originName, endpointName, profileNa
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
Origins.prototype.beginDeleteIfExists = function (originName, endpointName, profileName, resourceGroupName, options, callback) {
Origins.prototype.beginDeleteMethod = function (resourceGroupName, profileName, endpointName, originName, options, callback) {
var client = this.client;
if(!callback && typeof options === 'function') {
callback = options;
@ -1091,17 +1143,31 @@ Origins.prototype.beginDeleteIfExists = function (originName, endpointName, prof
}
// Validate
try {
if (originName === null || originName === undefined || typeof originName.valueOf() !== 'string') {
throw new Error('originName cannot be null or undefined and it must be of type string.');
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.');
}
if (endpointName === null || endpointName === undefined || typeof endpointName.valueOf() !== 'string') {
throw new Error('endpointName cannot be null or undefined and it must be of type string.');
if (resourceGroupName !== null && resourceGroupName !== undefined) {
if (resourceGroupName.length > 90)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90');
}
if (resourceGroupName.length < 1)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1');
}
if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/');
}
}
if (profileName === null || profileName === undefined || typeof profileName.valueOf() !== 'string') {
throw new Error('profileName cannot be null or undefined and it must be of type string.');
}
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.');
if (endpointName === null || endpointName === undefined || typeof endpointName.valueOf() !== 'string') {
throw new Error('endpointName cannot be null or undefined and it must be of type string.');
}
if (originName === null || originName === undefined || typeof originName.valueOf() !== 'string') {
throw new Error('originName cannot be null or undefined and it must be of type string.');
}
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.');
@ -1117,21 +1183,18 @@ Origins.prototype.beginDeleteIfExists = function (originName, endpointName, prof
}
// Construct URL
var requestUrl = this.client.baseUri +
'//subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/origins/{originName}';
requestUrl = requestUrl.replace('{originName}', encodeURIComponent(originName));
requestUrl = requestUrl.replace('{endpointName}', encodeURIComponent(endpointName));
requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName));
var baseUrl = this.client.baseUri;
var requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/origins/{originName}';
requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName));
requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName));
requestUrl = requestUrl.replace('{endpointName}', encodeURIComponent(endpointName));
requestUrl = requestUrl.replace('{originName}', encodeURIComponent(originName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
var queryParameters = [];
queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
// trim all duplicate forward slashes in the url
var regex = /([^:]\/)\/+/gi;
requestUrl = requestUrl.replace(regex, '$1');
// Create HTTP transport objects
var httpRequest = new WebResource();
@ -1210,5 +1273,131 @@ Origins.prototype.beginDeleteIfExists = function (originName, endpointName, prof
});
};
/**
* Lists the existing CDN origins within an endpoint.
*
* @param {string} nextPageLink The NextLink from the previous successful call
* to List operation.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {function} callback
*
* @returns {function} callback(err, result, request, response)
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
* {object} [result] - The deserialized result object.
* See {@link OriginListResult} for more information.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
Origins.prototype.listByEndpointNext = function (nextPageLink, options, callback) {
var client = this.client;
if(!callback && typeof options === 'function') {
callback = options;
options = null;
}
if (!callback) {
throw new Error('callback cannot be null.');
}
// Validate
try {
if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') {
throw new Error('nextPageLink cannot be null or undefined and it must be of type string.');
}
if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') {
throw new Error('this.client.acceptLanguage must be of type string.');
}
} catch (error) {
return callback(error);
}
// Construct URL
var requestUrl = '{nextLink}';
requestUrl = requestUrl.replace('{nextLink}', nextPageLink);
// Create HTTP transport objects
var httpRequest = new WebResource();
httpRequest.method = 'GET';
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
if (this.client.generateClientRequestId) {
httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();
}
if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) {
httpRequest.headers['accept-language'] = this.client.acceptLanguage;
}
if(options) {
for(var headerName in options['customHeaders']) {
if (options['customHeaders'].hasOwnProperty(headerName)) {
httpRequest.headers[headerName] = options['customHeaders'][headerName];
}
}
}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;
// Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) {
return callback(err);
}
var statusCode = response.statusCode;
if (statusCode !== 200) {
var error = new Error(responseBody);
error.statusCode = response.statusCode;
error.request = msRest.stripRequest(httpRequest);
error.response = msRest.stripResponse(response);
if (responseBody === '') responseBody = null;
var parsedErrorResponse;
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
var resultMapper = new client.models['ErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
error.message = util.format('Error "%s" occurred in deserializing the responseBody ' +
'- "%s" for the default response.', defaultError.message, responseBody);
return callback(error);
}
return callback(error);
}
// Create Result
var result = null;
if (responseBody === '') responseBody = null;
// Deserialize Response
if (statusCode === 200) {
var parsedResponse = null;
try {
parsedResponse = JSON.parse(responseBody);
result = JSON.parse(responseBody);
if (parsedResponse !== null && parsedResponse !== undefined) {
var resultMapper = new client.models['OriginListResult']().mapper();
result = client.deserialize(resultMapper, parsedResponse, 'result');
}
} catch (error) {
var deserializationError = new Error(util.format('Error "%s" occurred in deserializing the responseBody - "%s"', error, responseBody));
deserializationError.request = msRest.stripRequest(httpRequest);
deserializationError.response = msRest.stripResponse(response);
return callback(deserializationError);
}
}
return callback(null, result, httpRequest, response);
});
};
module.exports = Origins;

Просмотреть файл

@ -30,7 +30,7 @@ function Profiles(client) {
}
/**
* @summary Lists the CDN profiles within an Azure subscitption.
* Lists the CDN profiles within an Azure subscription.
*
* @param {object} [options] Optional Parameters.
*
@ -50,7 +50,7 @@ function Profiles(client) {
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
Profiles.prototype.listBySubscriptionId = function (options, callback) {
Profiles.prototype.list = function (options, callback) {
var client = this.client;
if(!callback && typeof options === 'function') {
callback = options;
@ -75,17 +75,14 @@ Profiles.prototype.listBySubscriptionId = function (options, callback) {
}
// Construct URL
var requestUrl = this.client.baseUri +
'//subscriptions/{subscriptionId}/providers/Microsoft.Cdn/profiles';
var baseUrl = this.client.baseUri;
var requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/providers/Microsoft.Cdn/profiles';
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
var queryParameters = [];
queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
// trim all duplicate forward slashes in the url
var regex = /([^:]\/)\/+/gi;
requestUrl = requestUrl.replace(regex, '$1');
// Create HTTP transport objects
var httpRequest = new WebResource();
@ -165,9 +162,9 @@ Profiles.prototype.listBySubscriptionId = function (options, callback) {
};
/**
* @summary Lists the CDN profiles within a resource group.
* Lists the CDN profiles within a resource group.
*
* @param {string} resourceGroupName Name of the resource group within the
* @param {string} resourceGroupName Name of the Resource group within the
* Azure subscription.
*
* @param {object} [options] Optional Parameters.
@ -202,6 +199,20 @@ Profiles.prototype.listByResourceGroup = function (resourceGroupName, options, c
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.');
}
if (resourceGroupName !== null && resourceGroupName !== undefined) {
if (resourceGroupName.length > 90)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90');
}
if (resourceGroupName.length < 1)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1');
}
if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/');
}
}
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.');
}
@ -216,8 +227,8 @@ Profiles.prototype.listByResourceGroup = function (resourceGroupName, options, c
}
// Construct URL
var requestUrl = this.client.baseUri +
'//subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles';
var baseUrl = this.client.baseUri;
var requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles';
requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
var queryParameters = [];
@ -225,9 +236,6 @@ Profiles.prototype.listByResourceGroup = function (resourceGroupName, options, c
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
// trim all duplicate forward slashes in the url
var regex = /([^:]\/)\/+/gi;
requestUrl = requestUrl.replace(regex, '$1');
// Create HTTP transport objects
var httpRequest = new WebResource();
@ -307,14 +315,14 @@ Profiles.prototype.listByResourceGroup = function (resourceGroupName, options, c
};
/**
* @summary Gets a CDN profile with the specified parameters.
* Gets a CDN profile with the specified parameters.
*
* @param {string} resourceGroupName Name of the Resource group within the
* Azure subscription.
*
* @param {string} profileName Name of the CDN profile within the resource
* group.
*
* @param {string} resourceGroupName Name of the resource group within the
* Azure subscription.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
@ -333,7 +341,7 @@ Profiles.prototype.listByResourceGroup = function (resourceGroupName, options, c
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
Profiles.prototype.get = function (profileName, resourceGroupName, options, callback) {
Profiles.prototype.get = function (resourceGroupName, profileName, options, callback) {
var client = this.client;
if(!callback && typeof options === 'function') {
callback = options;
@ -344,12 +352,26 @@ Profiles.prototype.get = function (profileName, resourceGroupName, options, call
}
// Validate
try {
if (profileName === null || profileName === undefined || typeof profileName.valueOf() !== 'string') {
throw new Error('profileName cannot be null or undefined and it must be of type string.');
}
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.');
}
if (resourceGroupName !== null && resourceGroupName !== undefined) {
if (resourceGroupName.length > 90)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90');
}
if (resourceGroupName.length < 1)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1');
}
if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/');
}
}
if (profileName === null || profileName === undefined || typeof profileName.valueOf() !== 'string') {
throw new Error('profileName cannot be null or undefined and it must be of type string.');
}
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.');
}
@ -364,19 +386,16 @@ Profiles.prototype.get = function (profileName, resourceGroupName, options, call
}
// Construct URL
var requestUrl = this.client.baseUri +
'//subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}';
requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName));
var baseUrl = this.client.baseUri;
var requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}';
requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName));
requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
var queryParameters = [];
queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
// trim all duplicate forward slashes in the url
var regex = /([^:]\/)\/+/gi;
requestUrl = requestUrl.replace(regex, '$1');
// Create HTTP transport objects
var httpRequest = new WebResource();
@ -457,26 +476,25 @@ Profiles.prototype.get = function (profileName, resourceGroupName, options, call
/**
*
* @summary Creates a new CDN profile with the specified parameters.
* Creates a new CDN profile with the specified parameters.
*
* @param {string} resourceGroupName Name of the Resource group within the
* Azure subscription.
*
* @param {string} profileName Name of the CDN profile within the resource
* group.
*
* @param {object} profileProperties Profile properties needed for creation.
* @param {object} profile Profile properties needed for creation.
*
* @param {string} [profileProperties.location] Profile location
* @param {object} profile.sku The SKU (pricing tier) of the CDN profile.
*
* @param {object} [profileProperties.tags] Profile tags
* @param {string} [profile.sku.name] Name of the pricing tier. Possible
* values include: 'Standard_Verizon', 'Premium_Verizon', 'Custom_Verizon',
* 'Standard_Akamai', 'Standard_ChinaCdn'
*
* @param {object} [profileProperties.sku] The SKU (pricing tier) of the CDN
* profile.
* @param {string} profile.location Resource location
*
* @param {string} [profileProperties.sku.name] Name of the pricing tier.
* Possible values include: 'Standard_Verizon', 'Premium_Verizon',
* 'Custom_Verizon', 'Standard_Akamai'
*
* @param {string} resourceGroupName Name of the resource group within the
* Azure subscription.
* @param {object} [profile.tags] Resource tags
*
* @param {object} [options] Optional Parameters.
*
@ -496,7 +514,7 @@ Profiles.prototype.get = function (profileName, resourceGroupName, options, call
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
Profiles.prototype.create = function (profileName, profileProperties, resourceGroupName, options, callback) {
Profiles.prototype.create = function (resourceGroupName, profileName, profile, options, callback) {
var client = this.client;
if(!callback && typeof options === 'function') {
callback = options;
@ -508,14 +526,14 @@ Profiles.prototype.create = function (profileName, profileProperties, resourceGr
}
// Send request
this.beginCreate(profileName, profileProperties, resourceGroupName, options, function (err, parsedResult, httpRequest, response){
this.beginCreate(resourceGroupName, profileName, profile, options, function (err, parsedResult, httpRequest, response){
if (err) return callback(err);
var initialResult = new msRest.HttpOperationResponse();
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) {
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);
// Create Result
@ -547,26 +565,25 @@ Profiles.prototype.create = function (profileName, profileProperties, resourceGr
};
/**
* @summary Creates a new CDN profile with the specified parameters.
* Creates a new CDN profile with the specified parameters.
*
* @param {string} resourceGroupName Name of the Resource group within the
* Azure subscription.
*
* @param {string} profileName Name of the CDN profile within the resource
* group.
*
* @param {object} profileProperties Profile properties needed for creation.
* @param {object} profile Profile properties needed for creation.
*
* @param {string} [profileProperties.location] Profile location
* @param {object} profile.sku The SKU (pricing tier) of the CDN profile.
*
* @param {object} [profileProperties.tags] Profile tags
* @param {string} [profile.sku.name] Name of the pricing tier. Possible
* values include: 'Standard_Verizon', 'Premium_Verizon', 'Custom_Verizon',
* 'Standard_Akamai', 'Standard_ChinaCdn'
*
* @param {object} [profileProperties.sku] The SKU (pricing tier) of the CDN
* profile.
* @param {string} profile.location Resource location
*
* @param {string} [profileProperties.sku.name] Name of the pricing tier.
* Possible values include: 'Standard_Verizon', 'Premium_Verizon',
* 'Custom_Verizon', 'Standard_Akamai'
*
* @param {string} resourceGroupName Name of the resource group within the
* Azure subscription.
* @param {object} [profile.tags] Resource tags
*
* @param {object} [options] Optional Parameters.
*
@ -586,7 +603,7 @@ Profiles.prototype.create = function (profileName, profileProperties, resourceGr
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
Profiles.prototype.beginCreate = function (profileName, profileProperties, resourceGroupName, options, callback) {
Profiles.prototype.beginCreate = function (resourceGroupName, profileName, profile, options, callback) {
var client = this.client;
if(!callback && typeof options === 'function') {
callback = options;
@ -597,14 +614,28 @@ Profiles.prototype.beginCreate = function (profileName, profileProperties, resou
}
// Validate
try {
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.');
}
if (resourceGroupName !== null && resourceGroupName !== undefined) {
if (resourceGroupName.length > 90)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90');
}
if (resourceGroupName.length < 1)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1');
}
if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/');
}
}
if (profileName === null || profileName === undefined || typeof profileName.valueOf() !== 'string') {
throw new Error('profileName cannot be null or undefined and it must be of type string.');
}
if (profileProperties === null || profileProperties === undefined) {
throw new Error('profileProperties cannot be null or undefined.');
}
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.');
if (profile === null || profile === undefined) {
throw new Error('profile cannot be null or undefined.');
}
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.');
@ -620,19 +651,16 @@ Profiles.prototype.beginCreate = function (profileName, profileProperties, resou
}
// Construct URL
var requestUrl = this.client.baseUri +
'//subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}';
requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName));
var baseUrl = this.client.baseUri;
var requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}';
requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName));
requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
var queryParameters = [];
queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
// trim all duplicate forward slashes in the url
var regex = /([^:]\/)\/+/gi;
requestUrl = requestUrl.replace(regex, '$1');
// Create HTTP transport objects
var httpRequest = new WebResource();
@ -658,14 +686,14 @@ Profiles.prototype.beginCreate = function (profileName, profileProperties, resou
var requestContent = null;
var requestModel = null;
try {
if (profileProperties !== null && profileProperties !== undefined) {
var requestModelMapper = new client.models['ProfileCreateParameters']().mapper();
requestModel = client.serialize(requestModelMapper, profileProperties, 'profileProperties');
if (profile !== null && profile !== undefined) {
var requestModelMapper = new client.models['Profile']().mapper();
requestModel = client.serialize(requestModelMapper, profile, 'profile');
requestContent = JSON.stringify(requestModel);
}
} catch (error) {
var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' +
'payload - "%s"', error.message, util.inspect(profileProperties, {depth: null})));
'payload - "%s"', error.message, util.inspect(profile, {depth: null})));
return callback(serializationError);
}
httpRequest.body = requestContent;
@ -761,14 +789,14 @@ Profiles.prototype.beginCreate = function (profileName, profileProperties, resou
/**
*
* @summary Updates an existing CDN profile with the specified parameters.
* Updates an existing CDN profile with the specified parameters.
*
* @param {string} resourceGroupName Name of the Resource group within the
* Azure subscription.
*
* @param {string} profileName Name of the CDN profile within the resource
* group.
*
* @param {string} resourceGroupName Name of the resource group within the
* Azure subscription.
*
* @param {object} tags Profile tags
*
* @param {object} [options] Optional Parameters.
@ -789,7 +817,7 @@ Profiles.prototype.beginCreate = function (profileName, profileProperties, resou
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
Profiles.prototype.update = function (profileName, resourceGroupName, tags, options, callback) {
Profiles.prototype.update = function (resourceGroupName, profileName, tags, options, callback) {
var client = this.client;
if(!callback && typeof options === 'function') {
callback = options;
@ -801,14 +829,14 @@ Profiles.prototype.update = function (profileName, resourceGroupName, tags, opti
}
// Send request
this.beginUpdate(profileName, resourceGroupName, tags, options, function (err, parsedResult, httpRequest, response){
this.beginUpdate(resourceGroupName, profileName, tags, options, function (err, parsedResult, httpRequest, response){
if (err) return callback(err);
var initialResult = new msRest.HttpOperationResponse();
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getPutOrPatchOperationResult(initialResult, options, function (err, pollingResult) {
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);
// Create Result
@ -840,14 +868,14 @@ Profiles.prototype.update = function (profileName, resourceGroupName, tags, opti
};
/**
* @summary Updates an existing CDN profile with the specified parameters.
* Updates an existing CDN profile with the specified parameters.
*
* @param {string} resourceGroupName Name of the Resource group within the
* Azure subscription.
*
* @param {string} profileName Name of the CDN profile within the resource
* group.
*
* @param {string} resourceGroupName Name of the resource group within the
* Azure subscription.
*
* @param {object} tags Profile tags
*
* @param {object} [options] Optional Parameters.
@ -868,7 +896,7 @@ Profiles.prototype.update = function (profileName, resourceGroupName, tags, opti
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
Profiles.prototype.beginUpdate = function (profileName, resourceGroupName, tags, options, callback) {
Profiles.prototype.beginUpdate = function (resourceGroupName, profileName, tags, options, callback) {
var client = this.client;
if(!callback && typeof options === 'function') {
callback = options;
@ -879,12 +907,26 @@ Profiles.prototype.beginUpdate = function (profileName, resourceGroupName, tags,
}
// Validate
try {
if (profileName === null || profileName === undefined || typeof profileName.valueOf() !== 'string') {
throw new Error('profileName cannot be null or undefined and it must be of type string.');
}
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.');
}
if (resourceGroupName !== null && resourceGroupName !== undefined) {
if (resourceGroupName.length > 90)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90');
}
if (resourceGroupName.length < 1)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1');
}
if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/');
}
}
if (profileName === null || profileName === undefined || typeof profileName.valueOf() !== 'string') {
throw new Error('profileName cannot be null or undefined and it must be of type string.');
}
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.');
}
@ -905,26 +947,23 @@ Profiles.prototype.beginUpdate = function (profileName, resourceGroupName, tags,
} catch (error) {
return callback(error);
}
var profileProperties;
var profileUpdateParameters;
if (tags !== null && tags !== undefined) {
profileProperties = new client.models['ProfileUpdateParameters']();
profileProperties.tags = tags;
profileUpdateParameters = new client.models['ProfileUpdateParameters']();
profileUpdateParameters.tags = tags;
}
// Construct URL
var requestUrl = this.client.baseUri +
'//subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}';
requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName));
var baseUrl = this.client.baseUri;
var requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}';
requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName));
requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
var queryParameters = [];
queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
// trim all duplicate forward slashes in the url
var regex = /([^:]\/)\/+/gi;
requestUrl = requestUrl.replace(regex, '$1');
// Create HTTP transport objects
var httpRequest = new WebResource();
@ -950,14 +989,14 @@ Profiles.prototype.beginUpdate = function (profileName, resourceGroupName, tags,
var requestContent = null;
var requestModel = null;
try {
if (profileProperties !== null && profileProperties !== undefined) {
if (profileUpdateParameters !== null && profileUpdateParameters !== undefined) {
var requestModelMapper = new client.models['ProfileUpdateParameters']().mapper();
requestModel = client.serialize(requestModelMapper, profileProperties, 'profileProperties');
requestModel = client.serialize(requestModelMapper, profileUpdateParameters, 'profileUpdateParameters');
requestContent = JSON.stringify(requestModel);
}
} catch (error) {
var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' +
'payload - "%s"', error.message, util.inspect(profileProperties, {depth: null})));
'payload - "%s"', error.message, util.inspect(profileUpdateParameters, {depth: null})));
return callback(serializationError);
}
httpRequest.body = requestContent;
@ -1036,16 +1075,16 @@ Profiles.prototype.beginUpdate = function (profileName, resourceGroupName, tags,
/**
*
* @summary Deletes an existing CDN profile with the specified parameters.
* Deleting a profile will result in the deletion of all subresources
* including endpoints, origins and custom domains.
* Deletes an existing CDN profile with the specified parameters. Deleting a
* profile will result in the deletion of all subresources including
* endpoints, origins and custom domains.
*
* @param {string} resourceGroupName Name of the Resource group within the
* Azure subscription.
*
* @param {string} profileName Name of the CDN profile within the resource
* group.
*
* @param {string} resourceGroupName Name of the resource group within the
* Azure subscription.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
@ -1063,7 +1102,7 @@ Profiles.prototype.beginUpdate = function (profileName, resourceGroupName, tags,
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
Profiles.prototype.deleteIfExists = function (profileName, resourceGroupName, options, callback) {
Profiles.prototype.deleteMethod = function (resourceGroupName, profileName, options, callback) {
var client = this.client;
if(!callback && typeof options === 'function') {
callback = options;
@ -1075,14 +1114,14 @@ Profiles.prototype.deleteIfExists = function (profileName, resourceGroupName, op
}
// Send request
this.beginDeleteIfExists(profileName, resourceGroupName, options, function (err, parsedResult, httpRequest, response){
this.beginDeleteMethod(resourceGroupName, profileName, options, function (err, parsedResult, httpRequest, response){
if (err) return callback(err);
var initialResult = new msRest.HttpOperationResponse();
initialResult.request = httpRequest;
initialResult.response = response;
initialResult.body = response.body;
client.getPostOrDeleteOperationResult(initialResult, options, function (err, pollingResult) {
client.getLongRunningOperationResult(initialResult, options, function (err, pollingResult) {
if (err) return callback(err);
// Create Result
@ -1100,16 +1139,16 @@ Profiles.prototype.deleteIfExists = function (profileName, resourceGroupName, op
};
/**
* @summary Deletes an existing CDN profile with the specified parameters.
* Deleting a profile will result in the deletion of all subresources
* including endpoints, origins and custom domains.
* Deletes an existing CDN profile with the specified parameters. Deleting a
* profile will result in the deletion of all subresources including
* endpoints, origins and custom domains.
*
* @param {string} resourceGroupName Name of the Resource group within the
* Azure subscription.
*
* @param {string} profileName Name of the CDN profile within the resource
* group.
*
* @param {string} resourceGroupName Name of the resource group within the
* Azure subscription.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
@ -1127,7 +1166,7 @@ Profiles.prototype.deleteIfExists = function (profileName, resourceGroupName, op
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
Profiles.prototype.beginDeleteIfExists = function (profileName, resourceGroupName, options, callback) {
Profiles.prototype.beginDeleteMethod = function (resourceGroupName, profileName, options, callback) {
var client = this.client;
if(!callback && typeof options === 'function') {
callback = options;
@ -1138,12 +1177,26 @@ Profiles.prototype.beginDeleteIfExists = function (profileName, resourceGroupNam
}
// Validate
try {
if (profileName === null || profileName === undefined || typeof profileName.valueOf() !== 'string') {
throw new Error('profileName cannot be null or undefined and it must be of type string.');
}
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.');
}
if (resourceGroupName !== null && resourceGroupName !== undefined) {
if (resourceGroupName.length > 90)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90');
}
if (resourceGroupName.length < 1)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1');
}
if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/');
}
}
if (profileName === null || profileName === undefined || typeof profileName.valueOf() !== 'string') {
throw new Error('profileName cannot be null or undefined and it must be of type string.');
}
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.');
}
@ -1158,19 +1211,16 @@ Profiles.prototype.beginDeleteIfExists = function (profileName, resourceGroupNam
}
// Construct URL
var requestUrl = this.client.baseUri +
'//subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}';
requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName));
var baseUrl = this.client.baseUri;
var requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}';
requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName));
requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
var queryParameters = [];
queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
// trim all duplicate forward slashes in the url
var regex = /([^:]\/)\/+/gi;
requestUrl = requestUrl.replace(regex, '$1');
// Create HTTP transport objects
var httpRequest = new WebResource();
@ -1233,17 +1283,17 @@ Profiles.prototype.beginDeleteIfExists = function (profileName, resourceGroupNam
};
/**
* @summary Generates a dynamic SSO URI used to sign in to the CDN
* Supplemental Portal used for advanced management tasks, such as Country
* Filtering, Advanced HTTP Reports, and Real-time Stats and Alerts. The SSO
* URI changes approximately every 10 minutes.
* Generates a dynamic SSO URI used to sign in to the CDN Supplemental Portal
* used for advanced management tasks, such as Country Filtering, Advanced
* HTTP Reports, and Real-time Stats and Alerts. The SSO URI changes
* approximately every 10 minutes.
*
* @param {string} resourceGroupName Name of the Resource group within the
* Azure subscription.
*
* @param {string} profileName Name of the CDN profile within the resource
* group.
*
* @param {string} resourceGroupName Name of the resource group within the
* Azure subscription.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
@ -1262,7 +1312,7 @@ Profiles.prototype.beginDeleteIfExists = function (profileName, resourceGroupNam
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
Profiles.prototype.generateSsoUri = function (profileName, resourceGroupName, options, callback) {
Profiles.prototype.generateSsoUri = function (resourceGroupName, profileName, options, callback) {
var client = this.client;
if(!callback && typeof options === 'function') {
callback = options;
@ -1273,12 +1323,26 @@ Profiles.prototype.generateSsoUri = function (profileName, resourceGroupName, op
}
// Validate
try {
if (profileName === null || profileName === undefined || typeof profileName.valueOf() !== 'string') {
throw new Error('profileName cannot be null or undefined and it must be of type string.');
}
if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') {
throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.');
}
if (resourceGroupName !== null && resourceGroupName !== undefined) {
if (resourceGroupName.length > 90)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90');
}
if (resourceGroupName.length < 1)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1');
}
if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null)
{
throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/');
}
}
if (profileName === null || profileName === undefined || typeof profileName.valueOf() !== 'string') {
throw new Error('profileName cannot be null or undefined and it must be of type string.');
}
if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') {
throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.');
}
@ -1293,19 +1357,16 @@ Profiles.prototype.generateSsoUri = function (profileName, resourceGroupName, op
}
// Construct URL
var requestUrl = this.client.baseUri +
'//subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/generateSsoUri';
requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName));
var baseUrl = this.client.baseUri;
var requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/generateSsoUri';
requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName));
requestUrl = requestUrl.replace('{profileName}', encodeURIComponent(profileName));
requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId));
var queryParameters = [];
queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion));
if (queryParameters.length > 0) {
requestUrl += '?' + queryParameters.join('&');
}
// trim all duplicate forward slashes in the url
var regex = /([^:]\/)\/+/gi;
requestUrl = requestUrl.replace(regex, '$1');
// Create HTTP transport objects
var httpRequest = new WebResource();
@ -1384,5 +1445,257 @@ Profiles.prototype.generateSsoUri = function (profileName, resourceGroupName, op
});
};
/**
* Lists the CDN profiles within an Azure subscription.
*
* @param {string} nextPageLink The NextLink from the previous successful call
* to List operation.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {function} callback
*
* @returns {function} callback(err, result, request, response)
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
* {object} [result] - The deserialized result object.
* See {@link ProfileListResult} for more information.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
Profiles.prototype.listNext = function (nextPageLink, options, callback) {
var client = this.client;
if(!callback && typeof options === 'function') {
callback = options;
options = null;
}
if (!callback) {
throw new Error('callback cannot be null.');
}
// Validate
try {
if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') {
throw new Error('nextPageLink cannot be null or undefined and it must be of type string.');
}
if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') {
throw new Error('this.client.acceptLanguage must be of type string.');
}
} catch (error) {
return callback(error);
}
// Construct URL
var requestUrl = '{nextLink}';
requestUrl = requestUrl.replace('{nextLink}', nextPageLink);
// Create HTTP transport objects
var httpRequest = new WebResource();
httpRequest.method = 'GET';
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
if (this.client.generateClientRequestId) {
httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();
}
if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) {
httpRequest.headers['accept-language'] = this.client.acceptLanguage;
}
if(options) {
for(var headerName in options['customHeaders']) {
if (options['customHeaders'].hasOwnProperty(headerName)) {
httpRequest.headers[headerName] = options['customHeaders'][headerName];
}
}
}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;
// Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) {
return callback(err);
}
var statusCode = response.statusCode;
if (statusCode !== 200) {
var error = new Error(responseBody);
error.statusCode = response.statusCode;
error.request = msRest.stripRequest(httpRequest);
error.response = msRest.stripResponse(response);
if (responseBody === '') responseBody = null;
var parsedErrorResponse;
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
var resultMapper = new client.models['ErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
error.message = util.format('Error "%s" occurred in deserializing the responseBody ' +
'- "%s" for the default response.', defaultError.message, responseBody);
return callback(error);
}
return callback(error);
}
// Create Result
var result = null;
if (responseBody === '') responseBody = null;
// Deserialize Response
if (statusCode === 200) {
var parsedResponse = null;
try {
parsedResponse = JSON.parse(responseBody);
result = JSON.parse(responseBody);
if (parsedResponse !== null && parsedResponse !== undefined) {
var resultMapper = new client.models['ProfileListResult']().mapper();
result = client.deserialize(resultMapper, parsedResponse, 'result');
}
} catch (error) {
var deserializationError = new Error(util.format('Error "%s" occurred in deserializing the responseBody - "%s"', error, responseBody));
deserializationError.request = msRest.stripRequest(httpRequest);
deserializationError.response = msRest.stripResponse(response);
return callback(deserializationError);
}
}
return callback(null, result, httpRequest, response);
});
};
/**
* Lists the CDN profiles within a resource group.
*
* @param {string} nextPageLink The NextLink from the previous successful call
* to List operation.
*
* @param {object} [options] Optional Parameters.
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {function} callback
*
* @returns {function} callback(err, result, request, response)
*
* {Error} err - The Error object if an error occurred, null otherwise.
*
* {object} [result] - The deserialized result object.
* See {@link ProfileListResult} for more information.
*
* {object} [request] - The HTTP Request object if an error did not occur.
*
* {stream} [response] - The HTTP Response stream if an error did not occur.
*/
Profiles.prototype.listByResourceGroupNext = function (nextPageLink, options, callback) {
var client = this.client;
if(!callback && typeof options === 'function') {
callback = options;
options = null;
}
if (!callback) {
throw new Error('callback cannot be null.');
}
// Validate
try {
if (nextPageLink === null || nextPageLink === undefined || typeof nextPageLink.valueOf() !== 'string') {
throw new Error('nextPageLink cannot be null or undefined and it must be of type string.');
}
if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') {
throw new Error('this.client.acceptLanguage must be of type string.');
}
} catch (error) {
return callback(error);
}
// Construct URL
var requestUrl = '{nextLink}';
requestUrl = requestUrl.replace('{nextLink}', nextPageLink);
// Create HTTP transport objects
var httpRequest = new WebResource();
httpRequest.method = 'GET';
httpRequest.headers = {};
httpRequest.url = requestUrl;
// Set Headers
if (this.client.generateClientRequestId) {
httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid();
}
if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) {
httpRequest.headers['accept-language'] = this.client.acceptLanguage;
}
if(options) {
for(var headerName in options['customHeaders']) {
if (options['customHeaders'].hasOwnProperty(headerName)) {
httpRequest.headers[headerName] = options['customHeaders'][headerName];
}
}
}
httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8';
httpRequest.body = null;
// Send Request
return client.pipeline(httpRequest, function (err, response, responseBody) {
if (err) {
return callback(err);
}
var statusCode = response.statusCode;
if (statusCode !== 200) {
var error = new Error(responseBody);
error.statusCode = response.statusCode;
error.request = msRest.stripRequest(httpRequest);
error.response = msRest.stripResponse(response);
if (responseBody === '') responseBody = null;
var parsedErrorResponse;
try {
parsedErrorResponse = JSON.parse(responseBody);
if (parsedErrorResponse) {
if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error;
if (parsedErrorResponse.code) error.code = parsedErrorResponse.code;
if (parsedErrorResponse.message) error.message = parsedErrorResponse.message;
}
if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) {
var resultMapper = new client.models['ErrorResponse']().mapper();
error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body');
}
} catch (defaultError) {
error.message = util.format('Error "%s" occurred in deserializing the responseBody ' +
'- "%s" for the default response.', defaultError.message, responseBody);
return callback(error);
}
return callback(error);
}
// Create Result
var result = null;
if (responseBody === '') responseBody = null;
// Deserialize Response
if (statusCode === 200) {
var parsedResponse = null;
try {
parsedResponse = JSON.parse(responseBody);
result = JSON.parse(responseBody);
if (parsedResponse !== null && parsedResponse !== undefined) {
var resultMapper = new client.models['ProfileListResult']().mapper();
result = client.deserialize(resultMapper, parsedResponse, 'result');
}
} catch (error) {
var deserializationError = new Error(util.format('Error "%s" occurred in deserializing the responseBody - "%s"', error, responseBody));
deserializationError.request = msRest.stripRequest(httpRequest);
deserializationError.response = msRest.stripResponse(response);
return callback(deserializationError);
}
}
return callback(null, result, httpRequest, response);
});
};
module.exports = Profiles;

Просмотреть файл

@ -139,8 +139,6 @@
<Compile Include="lib\services\cdnManagement\lib\operations\customDomains.js" />
<Compile Include="lib\services\cdnManagement\lib\operations\endpoints.js" />
<Compile Include="lib\services\cdnManagement\lib\operations\index.js" />
<Compile Include="lib\services\cdnManagement\lib\operations\nameAvailability.js" />
<Compile Include="lib\services\cdnManagement\lib\operations\operations.js" />
<Compile Include="lib\services\cdnManagement\lib\operations\origins.js" />
<Compile Include="lib\services\cdnManagement\lib\operations\profiles.js" />
<Compile Include="lib\services\dataLake.Analytics\lib\account\dataLakeAnalyticsAccountManagementClient.js" />
@ -1458,8 +1456,8 @@
<Compile Include="test\services\batch\batchClient-tests.js">
<TestFramework>Mocha</TestFramework>
</Compile>
<Compile Include="test\services\cdnManagement\cdnCheckNameAvailability-tests.js">
<TestFramework>Mocha</TestFramework>
<Compile Include="test\services\cdnManagement\cdnCheckNameAvailability-tests.js">
<TestFramework>Mocha</TestFramework>
</Compile>
<Compile Include="test\services\cdnManagement\cdnCustomDomain-tests.js">
<TestFramework>Mocha</TestFramework>

Просмотреть файл

@ -49,7 +49,7 @@
"azure-asm-trafficmanager": "0.10.4",
"azure-asm-website": "0.10.5",
"azure-arm-authorization": "3.1.1",
"azure-arm-cdn": "0.2.2",
"azure-arm-cdn": "0.3.0",
"azure-arm-commerce": "0.1.2",
"azure-arm-compute": "0.19.1",
"azure-arm-devtestlabs": "0.1.1",

Просмотреть файл

@ -2,370 +2,370 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.put('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup8524/providers/Microsoft.Cdn/profiles/cdnTestProfile9826?api-version=2016-04-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestProfile9826\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup8524/providers/Microsoft.Cdn/profiles/cdnTestProfile9826\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n }\r\n}", { 'cache-control': 'no-cache',
.put('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup1470/providers/Microsoft.Cdn/profiles/cdnTestProfile9869?api-version=2016-10-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestProfile9869\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1470/providers/Microsoft.Cdn/profiles/cdnTestProfile9869\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '404',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'retry-after': '10',
'x-ms-request-id': '2f7df702-0592-4ffb-af42-dcd5a839c340',
'x-ms-client-request-id': '060dfb74-43e1-4584-a19b-3e02ebdeecb2',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup8524/providers/Microsoft.Cdn/operationresults/10839c2a-9e4f-4451-b697-1c8b1e633f3e?api-version=2016-04-02',
'x-ms-request-id': '00bc95e6-40e3-4206-a424-69e030d7efe4',
'x-ms-client-request-id': 'c019241f-26d8-443a-80f2-38fb0ec94c30',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1470/providers/Microsoft.Cdn/operationresults/60d4955d-fe0b-4f7f-b9ab-3b043b8b85a7?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': '3a659211-e287-4d4f-8274-78c62acda594',
'x-ms-routing-request-id': 'WESTUS:20160511T230035Z:3a659211-e287-4d4f-8274-78c62acda594',
date: 'Wed, 11 May 2016 23:00:34 GMT',
'x-ms-correlation-request-id': '8fca9e3f-f145-4245-9d15-5bf096b671e7',
'x-ms-routing-request-id': 'CENTRALUS:20161027T233015Z:8fca9e3f-f145-4245-9d15-5bf096b671e7',
date: 'Thu, 27 Oct 2016 23:30:14 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.put('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup8524/providers/Microsoft.Cdn/profiles/cdnTestProfile9826?api-version=2016-04-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestProfile9826\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup8524/providers/Microsoft.Cdn/profiles/cdnTestProfile9826\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n }\r\n}", { 'cache-control': 'no-cache',
.put('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup1470/providers/Microsoft.Cdn/profiles/cdnTestProfile9869?api-version=2016-10-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestProfile9869\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1470/providers/Microsoft.Cdn/profiles/cdnTestProfile9869\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '404',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'retry-after': '10',
'x-ms-request-id': '2f7df702-0592-4ffb-af42-dcd5a839c340',
'x-ms-client-request-id': '060dfb74-43e1-4584-a19b-3e02ebdeecb2',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup8524/providers/Microsoft.Cdn/operationresults/10839c2a-9e4f-4451-b697-1c8b1e633f3e?api-version=2016-04-02',
'x-ms-request-id': '00bc95e6-40e3-4206-a424-69e030d7efe4',
'x-ms-client-request-id': 'c019241f-26d8-443a-80f2-38fb0ec94c30',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1470/providers/Microsoft.Cdn/operationresults/60d4955d-fe0b-4f7f-b9ab-3b043b8b85a7?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': '3a659211-e287-4d4f-8274-78c62acda594',
'x-ms-routing-request-id': 'WESTUS:20160511T230035Z:3a659211-e287-4d4f-8274-78c62acda594',
date: 'Wed, 11 May 2016 23:00:34 GMT',
'x-ms-correlation-request-id': '8fca9e3f-f145-4245-9d15-5bf096b671e7',
'x-ms-routing-request-id': 'CENTRALUS:20161027T233015Z:8fca9e3f-f145-4245-9d15-5bf096b671e7',
date: 'Thu, 27 Oct 2016 23:30:14 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup8524/providers/Microsoft.Cdn/operationresults/10839c2a-9e4f-4451-b697-1c8b1e633f3e?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1470/providers/Microsoft.Cdn/operationresults/60d4955d-fe0b-4f7f-b9ab-3b043b8b85a7?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '78',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '0bf16270-aa09-46fb-bab6-d3c8e6bb473e',
'x-ms-client-request-id': 'c39a4235-b53a-44e3-b519-9a19e3f17a29',
'x-ms-request-id': '68861bd5-17a2-45a9-a42e-5ed5c1c18a2a',
'x-ms-client-request-id': '5c48d99d-1654-446e-8d90-86d959777fae',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': 'a92ac56c-2f6e-436c-88d4-f46d3418c236',
'x-ms-routing-request-id': 'WESTUS:20160511T230106Z:a92ac56c-2f6e-436c-88d4-f46d3418c236',
date: 'Wed, 11 May 2016 23:01:05 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14999',
'x-ms-correlation-request-id': '4a65998c-44ee-434d-a882-50b335e97d23',
'x-ms-routing-request-id': 'WESTUS2:20161027T233046Z:4a65998c-44ee-434d-a882-50b335e97d23',
date: 'Thu, 27 Oct 2016 23:30:45 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup8524/providers/Microsoft.Cdn/operationresults/10839c2a-9e4f-4451-b697-1c8b1e633f3e?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1470/providers/Microsoft.Cdn/operationresults/60d4955d-fe0b-4f7f-b9ab-3b043b8b85a7?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '78',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '0bf16270-aa09-46fb-bab6-d3c8e6bb473e',
'x-ms-client-request-id': 'c39a4235-b53a-44e3-b519-9a19e3f17a29',
'x-ms-request-id': '68861bd5-17a2-45a9-a42e-5ed5c1c18a2a',
'x-ms-client-request-id': '5c48d99d-1654-446e-8d90-86d959777fae',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': 'a92ac56c-2f6e-436c-88d4-f46d3418c236',
'x-ms-routing-request-id': 'WESTUS:20160511T230106Z:a92ac56c-2f6e-436c-88d4-f46d3418c236',
date: 'Wed, 11 May 2016 23:01:05 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14999',
'x-ms-correlation-request-id': '4a65998c-44ee-434d-a882-50b335e97d23',
'x-ms-routing-request-id': 'WESTUS2:20161027T233046Z:4a65998c-44ee-434d-a882-50b335e97d23',
date: 'Thu, 27 Oct 2016 23:30:45 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup8524/providers/Microsoft.Cdn/operationresults/10839c2a-9e4f-4451-b697-1c8b1e633f3e?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1470/providers/Microsoft.Cdn/operationresults/60d4955d-fe0b-4f7f-b9ab-3b043b8b85a7?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '2716f922-1eb5-4fd8-a82e-e322d21df52f',
'x-ms-client-request-id': 'cd9ccd43-e577-4f84-9934-4eff213eac6d',
'x-ms-request-id': '19c0dcec-1f1b-4598-81c7-dccf3d7774b6',
'x-ms-client-request-id': 'b0264c22-e11c-4222-8271-a414eeb26db0',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14993',
'x-ms-correlation-request-id': '7656c880-e985-4412-8880-61f7301c0c14',
'x-ms-routing-request-id': 'WESTUS:20160511T230137Z:7656c880-e985-4412-8880-61f7301c0c14',
date: 'Wed, 11 May 2016 23:01:36 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': 'dd38f95c-7eef-4a39-acb8-4d744aa2e5b6',
'x-ms-routing-request-id': 'WESTUS2:20161027T233116Z:dd38f95c-7eef-4a39-acb8-4d744aa2e5b6',
date: 'Thu, 27 Oct 2016 23:31:16 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup8524/providers/Microsoft.Cdn/operationresults/10839c2a-9e4f-4451-b697-1c8b1e633f3e?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1470/providers/Microsoft.Cdn/operationresults/60d4955d-fe0b-4f7f-b9ab-3b043b8b85a7?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '2716f922-1eb5-4fd8-a82e-e322d21df52f',
'x-ms-client-request-id': 'cd9ccd43-e577-4f84-9934-4eff213eac6d',
'x-ms-request-id': '19c0dcec-1f1b-4598-81c7-dccf3d7774b6',
'x-ms-client-request-id': 'b0264c22-e11c-4222-8271-a414eeb26db0',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14993',
'x-ms-correlation-request-id': '7656c880-e985-4412-8880-61f7301c0c14',
'x-ms-routing-request-id': 'WESTUS:20160511T230137Z:7656c880-e985-4412-8880-61f7301c0c14',
date: 'Wed, 11 May 2016 23:01:36 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': 'dd38f95c-7eef-4a39-acb8-4d744aa2e5b6',
'x-ms-routing-request-id': 'WESTUS2:20161027T233116Z:dd38f95c-7eef-4a39-acb8-4d744aa2e5b6',
date: 'Thu, 27 Oct 2016 23:31:16 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup8524/providers/Microsoft.Cdn/profiles/cdnTestProfile9826?api-version=2016-04-02')
.reply(200, "{\r\n \"name\":\"cdnTestProfile9826\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup8524/providers/Microsoft.Cdn/profiles/cdnTestProfile9826\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup1470/providers/Microsoft.Cdn/profiles/cdnTestProfile9869?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestProfile9869\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1470/providers/Microsoft.Cdn/profiles/cdnTestProfile9869\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '403',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '4abf2d72-3a88-4206-a825-5c195b3636d8',
'x-ms-client-request-id': 'eb743a0e-dec9-4228-8c93-d398ca6b257a',
'x-ms-request-id': '057b5fe5-1bbb-4e24-9277-38434eb12b40',
'x-ms-client-request-id': '7b715fdd-aff5-43b8-beec-09efa7e1a097',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': '2e932004-7c7b-476e-a4b3-d8683e815e84',
'x-ms-routing-request-id': 'WESTUS:20160511T230137Z:2e932004-7c7b-476e-a4b3-d8683e815e84',
date: 'Wed, 11 May 2016 23:01:37 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': '30d33414-ef69-4d11-b1e7-c853e660677b',
'x-ms-routing-request-id': 'WESTUS2:20161027T233118Z:30d33414-ef69-4d11-b1e7-c853e660677b',
date: 'Thu, 27 Oct 2016 23:31:17 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup8524/providers/Microsoft.Cdn/profiles/cdnTestProfile9826?api-version=2016-04-02')
.reply(200, "{\r\n \"name\":\"cdnTestProfile9826\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup8524/providers/Microsoft.Cdn/profiles/cdnTestProfile9826\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup1470/providers/Microsoft.Cdn/profiles/cdnTestProfile9869?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestProfile9869\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1470/providers/Microsoft.Cdn/profiles/cdnTestProfile9869\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '403',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '4abf2d72-3a88-4206-a825-5c195b3636d8',
'x-ms-client-request-id': 'eb743a0e-dec9-4228-8c93-d398ca6b257a',
'x-ms-request-id': '057b5fe5-1bbb-4e24-9277-38434eb12b40',
'x-ms-client-request-id': '7b715fdd-aff5-43b8-beec-09efa7e1a097',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': '2e932004-7c7b-476e-a4b3-d8683e815e84',
'x-ms-routing-request-id': 'WESTUS:20160511T230137Z:2e932004-7c7b-476e-a4b3-d8683e815e84',
date: 'Wed, 11 May 2016 23:01:37 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': '30d33414-ef69-4d11-b1e7-c853e660677b',
'x-ms-routing-request-id': 'WESTUS2:20161027T233118Z:30d33414-ef69-4d11-b1e7-c853e660677b',
date: 'Thu, 27 Oct 2016 23:31:17 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.put('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup8524/providers/Microsoft.Cdn/profiles/cdnTestProfile9826/endpoints/cdnTestEndpoint7027?api-version=2016-04-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestEndpoint7027\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup8524/providers/Microsoft.Cdn/profiles/cdnTestProfile9826/endpoints/cdnTestEndpoint7027\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint7027.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"somename\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n }\r\n}", { 'cache-control': 'no-cache',
.put('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup1470/providers/Microsoft.Cdn/profiles/cdnTestProfile9869/endpoints/cdnTestEndpoint5411?api-version=2016-10-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestEndpoint5411\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1470/providers/Microsoft.Cdn/profiles/cdnTestProfile9869/endpoints/cdnTestEndpoint5411\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint5411.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"somename\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '804',
'content-length': '891',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'retry-after': '10',
'x-ms-request-id': '39c6b802-c2cf-4066-8eb8-0ddf2d2ff086',
'x-ms-client-request-id': '9ade4f64-f157-4968-a615-7c464220af84',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup8524/providers/Microsoft.Cdn/operationresults/bef06852-3083-480f-9c47-c37fdf6e5308?api-version=2016-04-02',
'x-ms-request-id': '67497864-b940-41f1-8de6-4de9f7d6e327',
'x-ms-client-request-id': 'a3ff6b97-58c0-42b5-a008-ffee0cef9b07',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1470/providers/Microsoft.Cdn/operationresults/25b0bcbe-7d99-41ef-bf9c-cc631ad4cbad?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': '9c947143-f103-40bb-a206-aa02d9a0e795',
'x-ms-routing-request-id': 'WESTUS:20160511T230139Z:9c947143-f103-40bb-a206-aa02d9a0e795',
date: 'Wed, 11 May 2016 23:01:39 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '6e3f8065-31c3-4b5f-80c4-1563a152ee53',
'x-ms-routing-request-id': 'WESTUS2:20161027T233124Z:6e3f8065-31c3-4b5f-80c4-1563a152ee53',
date: 'Thu, 27 Oct 2016 23:31:23 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.put('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup8524/providers/Microsoft.Cdn/profiles/cdnTestProfile9826/endpoints/cdnTestEndpoint7027?api-version=2016-04-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestEndpoint7027\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup8524/providers/Microsoft.Cdn/profiles/cdnTestProfile9826/endpoints/cdnTestEndpoint7027\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint7027.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"somename\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n }\r\n}", { 'cache-control': 'no-cache',
.put('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup1470/providers/Microsoft.Cdn/profiles/cdnTestProfile9869/endpoints/cdnTestEndpoint5411?api-version=2016-10-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestEndpoint5411\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1470/providers/Microsoft.Cdn/profiles/cdnTestProfile9869/endpoints/cdnTestEndpoint5411\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint5411.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"somename\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '804',
'content-length': '891',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'retry-after': '10',
'x-ms-request-id': '39c6b802-c2cf-4066-8eb8-0ddf2d2ff086',
'x-ms-client-request-id': '9ade4f64-f157-4968-a615-7c464220af84',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup8524/providers/Microsoft.Cdn/operationresults/bef06852-3083-480f-9c47-c37fdf6e5308?api-version=2016-04-02',
'x-ms-request-id': '67497864-b940-41f1-8de6-4de9f7d6e327',
'x-ms-client-request-id': 'a3ff6b97-58c0-42b5-a008-ffee0cef9b07',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1470/providers/Microsoft.Cdn/operationresults/25b0bcbe-7d99-41ef-bf9c-cc631ad4cbad?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': '9c947143-f103-40bb-a206-aa02d9a0e795',
'x-ms-routing-request-id': 'WESTUS:20160511T230139Z:9c947143-f103-40bb-a206-aa02d9a0e795',
date: 'Wed, 11 May 2016 23:01:39 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '6e3f8065-31c3-4b5f-80c4-1563a152ee53',
'x-ms-routing-request-id': 'WESTUS2:20161027T233124Z:6e3f8065-31c3-4b5f-80c4-1563a152ee53',
date: 'Thu, 27 Oct 2016 23:31:23 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup8524/providers/Microsoft.Cdn/operationresults/bef06852-3083-480f-9c47-c37fdf6e5308?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1470/providers/Microsoft.Cdn/operationresults/25b0bcbe-7d99-41ef-bf9c-cc631ad4cbad?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '90db7df4-af5c-40ca-bef5-3e4bd90ad7d0',
'x-ms-client-request-id': 'a89d0df9-f3a5-4da3-a851-8ebbde23246a',
'x-ms-request-id': '39ea8ef8-386b-4400-9221-2e0443bc2eb9',
'x-ms-client-request-id': 'cdb748f6-3537-4a53-9bb7-ff54e1cefd72',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14992',
'x-ms-correlation-request-id': '1e8ede70-6dda-4e67-8325-23369ac15dfc',
'x-ms-routing-request-id': 'CENTRALUS:20160511T230210Z:1e8ede70-6dda-4e67-8325-23369ac15dfc',
date: 'Wed, 11 May 2016 23:02:09 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14998',
'x-ms-correlation-request-id': '13d27119-8638-48d5-bd94-312514cba61a',
'x-ms-routing-request-id': 'WESTUS2:20161027T233154Z:13d27119-8638-48d5-bd94-312514cba61a',
date: 'Thu, 27 Oct 2016 23:31:54 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup8524/providers/Microsoft.Cdn/operationresults/bef06852-3083-480f-9c47-c37fdf6e5308?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1470/providers/Microsoft.Cdn/operationresults/25b0bcbe-7d99-41ef-bf9c-cc631ad4cbad?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '90db7df4-af5c-40ca-bef5-3e4bd90ad7d0',
'x-ms-client-request-id': 'a89d0df9-f3a5-4da3-a851-8ebbde23246a',
'x-ms-request-id': '39ea8ef8-386b-4400-9221-2e0443bc2eb9',
'x-ms-client-request-id': 'cdb748f6-3537-4a53-9bb7-ff54e1cefd72',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14992',
'x-ms-correlation-request-id': '1e8ede70-6dda-4e67-8325-23369ac15dfc',
'x-ms-routing-request-id': 'CENTRALUS:20160511T230210Z:1e8ede70-6dda-4e67-8325-23369ac15dfc',
date: 'Wed, 11 May 2016 23:02:09 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14998',
'x-ms-correlation-request-id': '13d27119-8638-48d5-bd94-312514cba61a',
'x-ms-routing-request-id': 'WESTUS2:20161027T233154Z:13d27119-8638-48d5-bd94-312514cba61a',
date: 'Thu, 27 Oct 2016 23:31:54 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup8524/providers/Microsoft.Cdn/profiles/cdnTestProfile9826/endpoints/cdnTestEndpoint7027?api-version=2016-04-02')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint7027\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup8524/providers/Microsoft.Cdn/profiles/cdnTestProfile9826/endpoints/cdnTestEndpoint7027\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint7027.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"somename\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n }\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup1470/providers/Microsoft.Cdn/profiles/cdnTestProfile9869/endpoints/cdnTestEndpoint5411?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint5411\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1470/providers/Microsoft.Cdn/profiles/cdnTestProfile9869/endpoints/cdnTestEndpoint5411\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint5411.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"somename\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '804',
'content-length': '891',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'becf0d12-a153-4d69-96ef-f5164d6e3100',
'x-ms-client-request-id': '1675f248-0f79-418c-b48e-6e29b1740d51',
'x-ms-request-id': '3b7ebb9e-25bc-4993-af55-376ea0444fa3',
'x-ms-client-request-id': 'ed675cdf-bd1e-4b7c-a1c4-d408c68ed9b4',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': '2e8ba189-ed76-428b-9c03-940f31b086e8',
'x-ms-routing-request-id': 'CENTRALUS:20160511T230211Z:2e8ba189-ed76-428b-9c03-940f31b086e8',
date: 'Wed, 11 May 2016 23:02:10 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14998',
'x-ms-correlation-request-id': '404a0e36-ba6b-469e-9fd6-3949c226fd08',
'x-ms-routing-request-id': 'WESTUS2:20161027T233155Z:404a0e36-ba6b-469e-9fd6-3949c226fd08',
date: 'Thu, 27 Oct 2016 23:31:54 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup8524/providers/Microsoft.Cdn/profiles/cdnTestProfile9826/endpoints/cdnTestEndpoint7027?api-version=2016-04-02')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint7027\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup8524/providers/Microsoft.Cdn/profiles/cdnTestProfile9826/endpoints/cdnTestEndpoint7027\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint7027.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"somename\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n }\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup1470/providers/Microsoft.Cdn/profiles/cdnTestProfile9869/endpoints/cdnTestEndpoint5411?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint5411\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1470/providers/Microsoft.Cdn/profiles/cdnTestProfile9869/endpoints/cdnTestEndpoint5411\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint5411.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"somename\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '804',
'content-length': '891',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'becf0d12-a153-4d69-96ef-f5164d6e3100',
'x-ms-client-request-id': '1675f248-0f79-418c-b48e-6e29b1740d51',
'x-ms-request-id': '3b7ebb9e-25bc-4993-af55-376ea0444fa3',
'x-ms-client-request-id': 'ed675cdf-bd1e-4b7c-a1c4-d408c68ed9b4',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': '2e8ba189-ed76-428b-9c03-940f31b086e8',
'x-ms-routing-request-id': 'CENTRALUS:20160511T230211Z:2e8ba189-ed76-428b-9c03-940f31b086e8',
date: 'Wed, 11 May 2016 23:02:10 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14998',
'x-ms-correlation-request-id': '404a0e36-ba6b-469e-9fd6-3949c226fd08',
'x-ms-routing-request-id': 'WESTUS2:20161027T233155Z:404a0e36-ba6b-469e-9fd6-3949c226fd08',
date: 'Thu, 27 Oct 2016 23:31:54 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.post('/providers/Microsoft.Cdn/checkNameAvailability?api-version=2016-04-02', '*')
.post('/providers/Microsoft.Cdn/checkNameAvailability?api-version=2016-10-02', '*')
.reply(200, "{\"NameAvailable\":false,\"Reason\":\"Name is already in use\",\"Message\":\"Name not available\"}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '88',
'content-type': 'application/json; charset=utf-8',
expires: '-1',
'x-ms-request-id': '10fee773-857e-4bc3-96d2-e18fe4c055be',
'x-ms-client-request-id': '6dc1e686-a462-4b74-a4b4-7725c38ed9f0',
'x-ms-request-id': '75433faf-3b80-422f-bebf-8eba9187e021',
'x-ms-client-request-id': 'd2e6564a-863d-4b30-b3ef-f17a2da4383a',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-tenant-writes': '1199',
'x-ms-correlation-request-id': '00e0d16b-744d-4bb9-9530-09a25aa3ec46',
'x-ms-routing-request-id': 'CENTRALUS:20160511T230211Z:00e0d16b-744d-4bb9-9530-09a25aa3ec46',
date: 'Wed, 11 May 2016 23:02:11 GMT',
'x-ms-correlation-request-id': '98b97a58-0ba6-4043-a99f-2b4aea699235',
'x-ms-routing-request-id': 'WESTUS2:20161027T233156Z:98b97a58-0ba6-4043-a99f-2b4aea699235',
date: 'Thu, 27 Oct 2016 23:31:55 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.post('/providers/Microsoft.Cdn/checkNameAvailability?api-version=2016-04-02', '*')
.post('/providers/Microsoft.Cdn/checkNameAvailability?api-version=2016-10-02', '*')
.reply(200, "{\"NameAvailable\":false,\"Reason\":\"Name is already in use\",\"Message\":\"Name not available\"}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '88',
'content-type': 'application/json; charset=utf-8',
expires: '-1',
'x-ms-request-id': '10fee773-857e-4bc3-96d2-e18fe4c055be',
'x-ms-client-request-id': '6dc1e686-a462-4b74-a4b4-7725c38ed9f0',
'x-ms-request-id': '75433faf-3b80-422f-bebf-8eba9187e021',
'x-ms-client-request-id': 'd2e6564a-863d-4b30-b3ef-f17a2da4383a',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-tenant-writes': '1199',
'x-ms-correlation-request-id': '00e0d16b-744d-4bb9-9530-09a25aa3ec46',
'x-ms-routing-request-id': 'CENTRALUS:20160511T230211Z:00e0d16b-744d-4bb9-9530-09a25aa3ec46',
date: 'Wed, 11 May 2016 23:02:11 GMT',
'x-ms-correlation-request-id': '98b97a58-0ba6-4043-a99f-2b4aea699235',
'x-ms-routing-request-id': 'WESTUS2:20161027T233156Z:98b97a58-0ba6-4043-a99f-2b4aea699235',
date: 'Thu, 27 Oct 2016 23:31:55 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,50 +2,50 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.post('/providers/Microsoft.Cdn/checkNameAvailability?api-version=2016-04-02', '*')
.post('/providers/Microsoft.Cdn/checkNameAvailability?api-version=2016-10-02', '*')
.reply(200, "{\"NameAvailable\":true,\"Reason\":null,\"Message\":null}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '51',
'content-type': 'application/json; charset=utf-8',
expires: '-1',
'x-ms-request-id': '25fdf75b-b9fc-4325-9328-8f05140137bd',
'x-ms-client-request-id': '4258dae1-48aa-4dea-b8a3-eb2aee290daa',
'x-ms-request-id': '5dea6043-149b-42df-be31-d09978571836',
'x-ms-client-request-id': 'e8157c0b-15d3-42e3-bfea-de0dc2b231c0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-tenant-writes': '1199',
'x-ms-correlation-request-id': '8b41087b-661f-4715-a96a-e2fc81bd034c',
'x-ms-routing-request-id': 'WESTUS:20160511T230033Z:8b41087b-661f-4715-a96a-e2fc81bd034c',
date: 'Wed, 11 May 2016 23:00:33 GMT',
'x-ms-correlation-request-id': 'a616f35e-93e8-4aab-be6b-25de175dccad',
'x-ms-routing-request-id': 'CENTRALUS:20161027T233012Z:a616f35e-93e8-4aab-be6b-25de175dccad',
date: 'Thu, 27 Oct 2016 23:30:12 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.post('/providers/Microsoft.Cdn/checkNameAvailability?api-version=2016-04-02', '*')
.post('/providers/Microsoft.Cdn/checkNameAvailability?api-version=2016-10-02', '*')
.reply(200, "{\"NameAvailable\":true,\"Reason\":null,\"Message\":null}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '51',
'content-type': 'application/json; charset=utf-8',
expires: '-1',
'x-ms-request-id': '25fdf75b-b9fc-4325-9328-8f05140137bd',
'x-ms-client-request-id': '4258dae1-48aa-4dea-b8a3-eb2aee290daa',
'x-ms-request-id': '5dea6043-149b-42df-be31-d09978571836',
'x-ms-client-request-id': 'e8157c0b-15d3-42e3-bfea-de0dc2b231c0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-tenant-writes': '1199',
'x-ms-correlation-request-id': '8b41087b-661f-4715-a96a-e2fc81bd034c',
'x-ms-routing-request-id': 'WESTUS:20160511T230033Z:8b41087b-661f-4715-a96a-e2fc81bd034c',
date: 'Wed, 11 May 2016 23:00:33 GMT',
'x-ms-correlation-request-id': 'a616f35e-93e8-4aab-be6b-25de175dccad',
'x-ms-routing-request-id': 'CENTRALUS:20161027T233012Z:a616f35e-93e8-4aab-be6b-25de175dccad',
date: 'Thu, 27 Oct 2016 23:30:12 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,9 +2,9 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [];
exports.randomTestIdsGenerated = function() { return ['cdnTestGroup8524','cdnTestProfile9826','cdnTestEndpoint7027'];};
exports.randomTestIdsGenerated = function() { return ['cdnTestGroup1470','cdnTestProfile9869','cdnTestEndpoint5411'];};

Просмотреть файл

@ -2,144 +2,144 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.put('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customDomains/cdnTestCustomDomain9289?api-version=2016-04-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestCustomDomain9289\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customdomains/cdnTestCustomDomain9289\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"hostName\":\"sdk-1-06466c93-ab2d-4268-b3ec-38bbc2a12e90.azureedge-test.net\"\r\n }\r\n}", { 'cache-control': 'no-cache',
.put('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customDomains/cdnTestCustomDomain5936?api-version=2016-10-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestCustomDomain5936\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customdomains/cdnTestCustomDomain5936\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"hostName\":\"sdk-1-1ccf2a61-a627-4715-8744-314680c0c1b8.azureedge-test.net\",\"customHttpsProvisioningState\":\"Disabled\",\"validationData\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '495',
'content-length': '559',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'retry-after': '10',
'x-ms-request-id': '434ce7d3-e233-45b2-957f-f85baefdd5f7',
'x-ms-client-request-id': 'd4f1bbcb-57a6-436c-b9d4-74770d54197c',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/e3c54b79-6c99-4d26-9678-797fc29f6a5e?api-version=2016-04-02',
'x-ms-request-id': 'c6e942ca-7e6e-4a82-a21c-4b319dc40f2b',
'x-ms-client-request-id': '0a7b2eaf-d3e1-430d-9370-fd7be5cf6ae3',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/8e9979af-8b08-4989-8c88-148a7778b7be?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': 'cedd9b45-b5d3-4152-afaa-b6b0d8f0b639',
'x-ms-routing-request-id': 'WESTUS:20160511T231958Z:cedd9b45-b5d3-4152-afaa-b6b0d8f0b639',
date: 'Wed, 11 May 2016 23:19:57 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1196',
'x-ms-correlation-request-id': 'ab99ce64-3e7d-4453-9e24-f066b38ccda8',
'x-ms-routing-request-id': 'WESTUS2:20161028T022011Z:ab99ce64-3e7d-4453-9e24-f066b38ccda8',
date: 'Fri, 28 Oct 2016 02:20:11 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.put('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customDomains/cdnTestCustomDomain9289?api-version=2016-04-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestCustomDomain9289\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customdomains/cdnTestCustomDomain9289\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"hostName\":\"sdk-1-06466c93-ab2d-4268-b3ec-38bbc2a12e90.azureedge-test.net\"\r\n }\r\n}", { 'cache-control': 'no-cache',
.put('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customDomains/cdnTestCustomDomain5936?api-version=2016-10-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestCustomDomain5936\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customdomains/cdnTestCustomDomain5936\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"hostName\":\"sdk-1-1ccf2a61-a627-4715-8744-314680c0c1b8.azureedge-test.net\",\"customHttpsProvisioningState\":\"Disabled\",\"validationData\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '495',
'content-length': '559',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'retry-after': '10',
'x-ms-request-id': '434ce7d3-e233-45b2-957f-f85baefdd5f7',
'x-ms-client-request-id': 'd4f1bbcb-57a6-436c-b9d4-74770d54197c',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/e3c54b79-6c99-4d26-9678-797fc29f6a5e?api-version=2016-04-02',
'x-ms-request-id': 'c6e942ca-7e6e-4a82-a21c-4b319dc40f2b',
'x-ms-client-request-id': '0a7b2eaf-d3e1-430d-9370-fd7be5cf6ae3',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/8e9979af-8b08-4989-8c88-148a7778b7be?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': 'cedd9b45-b5d3-4152-afaa-b6b0d8f0b639',
'x-ms-routing-request-id': 'WESTUS:20160511T231958Z:cedd9b45-b5d3-4152-afaa-b6b0d8f0b639',
date: 'Wed, 11 May 2016 23:19:57 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1196',
'x-ms-correlation-request-id': 'ab99ce64-3e7d-4453-9e24-f066b38ccda8',
'x-ms-routing-request-id': 'WESTUS2:20161028T022011Z:ab99ce64-3e7d-4453-9e24-f066b38ccda8',
date: 'Fri, 28 Oct 2016 02:20:11 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/e3c54b79-6c99-4d26-9678-797fc29f6a5e?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/8e9979af-8b08-4989-8c88-148a7778b7be?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '87259d81-a1b0-4813-8d9e-c29cb57360b4',
'x-ms-client-request-id': '26267cd0-3e4f-4501-8566-f6b1c0a0763a',
'x-ms-request-id': 'ff347420-0c8e-4496-9dd7-476a3235ab31',
'x-ms-client-request-id': '291e92e5-435c-4ac7-9085-eca8741fbd09',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14993',
'x-ms-correlation-request-id': 'a997d7cc-5278-463e-8ff4-c56d09e444d4',
'x-ms-routing-request-id': 'WESTUS:20160511T232029Z:a997d7cc-5278-463e-8ff4-c56d09e444d4',
date: 'Wed, 11 May 2016 23:20:28 GMT',
'x-ms-correlation-request-id': 'a6da5ae4-9e48-4ddd-8089-05cfe3295deb',
'x-ms-routing-request-id': 'WESTUS2:20161028T022042Z:a6da5ae4-9e48-4ddd-8089-05cfe3295deb',
date: 'Fri, 28 Oct 2016 02:20:41 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/e3c54b79-6c99-4d26-9678-797fc29f6a5e?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/8e9979af-8b08-4989-8c88-148a7778b7be?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '87259d81-a1b0-4813-8d9e-c29cb57360b4',
'x-ms-client-request-id': '26267cd0-3e4f-4501-8566-f6b1c0a0763a',
'x-ms-request-id': 'ff347420-0c8e-4496-9dd7-476a3235ab31',
'x-ms-client-request-id': '291e92e5-435c-4ac7-9085-eca8741fbd09',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14993',
'x-ms-correlation-request-id': 'a997d7cc-5278-463e-8ff4-c56d09e444d4',
'x-ms-routing-request-id': 'WESTUS:20160511T232029Z:a997d7cc-5278-463e-8ff4-c56d09e444d4',
date: 'Wed, 11 May 2016 23:20:28 GMT',
'x-ms-correlation-request-id': 'a6da5ae4-9e48-4ddd-8089-05cfe3295deb',
'x-ms-routing-request-id': 'WESTUS2:20161028T022042Z:a6da5ae4-9e48-4ddd-8089-05cfe3295deb',
date: 'Fri, 28 Oct 2016 02:20:41 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customDomains/cdnTestCustomDomain9289?api-version=2016-04-02')
.reply(200, "{\r\n \"name\":\"cdnTestCustomDomain9289\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customdomains/cdnTestCustomDomain9289\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\":\"sdk-1-06466c93-ab2d-4268-b3ec-38bbc2a12e90.azureedge-test.net\"\r\n }\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customDomains/cdnTestCustomDomain5936?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestCustomDomain5936\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customdomains/cdnTestCustomDomain5936\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\":\"sdk-1-1ccf2a61-a627-4715-8744-314680c0c1b8.azureedge-test.net\",\"customHttpsProvisioningState\":\"Disabled\",\"validationData\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '494',
'content-length': '558',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '74f0cd40-7bf9-4362-8771-084b63b20058',
'x-ms-client-request-id': '3b67a0d3-3550-443b-a524-174b7a2cb0c3',
'x-ms-request-id': '22761700-7614-42d4-8a4e-6ee535e65332',
'x-ms-client-request-id': '1a182e59-7b2c-488c-80b9-3143f8547091',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': '901daba3-b262-490d-b60b-540ce2c1e1f4',
'x-ms-routing-request-id': 'WESTUS:20160511T232030Z:901daba3-b262-490d-b60b-540ce2c1e1f4',
date: 'Wed, 11 May 2016 23:20:29 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': '59236084-67c0-4814-ae11-f216f4b2467c',
'x-ms-routing-request-id': 'WESTUS2:20161028T022042Z:59236084-67c0-4814-ae11-f216f4b2467c',
date: 'Fri, 28 Oct 2016 02:20:41 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customDomains/cdnTestCustomDomain9289?api-version=2016-04-02')
.reply(200, "{\r\n \"name\":\"cdnTestCustomDomain9289\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customdomains/cdnTestCustomDomain9289\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\":\"sdk-1-06466c93-ab2d-4268-b3ec-38bbc2a12e90.azureedge-test.net\"\r\n }\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customDomains/cdnTestCustomDomain5936?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestCustomDomain5936\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customdomains/cdnTestCustomDomain5936\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\":\"sdk-1-1ccf2a61-a627-4715-8744-314680c0c1b8.azureedge-test.net\",\"customHttpsProvisioningState\":\"Disabled\",\"validationData\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '494',
'content-length': '558',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '74f0cd40-7bf9-4362-8771-084b63b20058',
'x-ms-client-request-id': '3b67a0d3-3550-443b-a524-174b7a2cb0c3',
'x-ms-request-id': '22761700-7614-42d4-8a4e-6ee535e65332',
'x-ms-client-request-id': '1a182e59-7b2c-488c-80b9-3143f8547091',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': '901daba3-b262-490d-b60b-540ce2c1e1f4',
'x-ms-routing-request-id': 'WESTUS:20160511T232030Z:901daba3-b262-490d-b60b-540ce2c1e1f4',
date: 'Wed, 11 May 2016 23:20:29 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': '59236084-67c0-4814-ae11-f216f4b2467c',
'x-ms-routing-request-id': 'WESTUS2:20161028T022042Z:59236084-67c0-4814-ae11-f216f4b2467c',
date: 'Fri, 28 Oct 2016 02:20:41 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,50 +2,50 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customDomains/cdnTestCustomDomain3998?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customDomains/cdnTestCustomDomain4653?api-version=2016-10-02')
.reply(404, "{\r\n \"error\": {\r\n \"code\": \"NotFound\",\r\n \"message\": \"The requested resource was not found.\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '104',
'content-type': 'application/json; charset=utf-8',
'content-language': 'en-US',
expires: '-1',
'x-ms-request-id': '326548a8-7e39-420c-99f3-9595686e1826',
'x-ms-client-request-id': '398d3ec2-d995-46da-a4d4-8ad8274d1c22',
'x-ms-request-id': '72538692-0155-4c4b-97ba-81fa3443352d',
'x-ms-client-request-id': '13fa0f39-d2e3-4759-85df-fc5dac2711a3',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14961',
'x-ms-correlation-request-id': 'ab31885a-8092-4650-acd0-09494675e054',
'x-ms-routing-request-id': 'WESTUS:20160511T232111Z:ab31885a-8092-4650-acd0-09494675e054',
date: 'Wed, 11 May 2016 23:21:11 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14988',
'x-ms-correlation-request-id': 'a0f6d8a5-674b-4f9f-8906-5adc4fadb5fd',
'x-ms-routing-request-id': 'WESTUS2:20161028T022120Z:a0f6d8a5-674b-4f9f-8906-5adc4fadb5fd',
date: 'Fri, 28 Oct 2016 02:21:20 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customDomains/cdnTestCustomDomain3998?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customDomains/cdnTestCustomDomain4653?api-version=2016-10-02')
.reply(404, "{\r\n \"error\": {\r\n \"code\": \"NotFound\",\r\n \"message\": \"The requested resource was not found.\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '104',
'content-type': 'application/json; charset=utf-8',
'content-language': 'en-US',
expires: '-1',
'x-ms-request-id': '326548a8-7e39-420c-99f3-9595686e1826',
'x-ms-client-request-id': '398d3ec2-d995-46da-a4d4-8ad8274d1c22',
'x-ms-request-id': '72538692-0155-4c4b-97ba-81fa3443352d',
'x-ms-client-request-id': '13fa0f39-d2e3-4759-85df-fc5dac2711a3',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14961',
'x-ms-correlation-request-id': 'ab31885a-8092-4650-acd0-09494675e054',
'x-ms-routing-request-id': 'WESTUS:20160511T232111Z:ab31885a-8092-4650-acd0-09494675e054',
date: 'Wed, 11 May 2016 23:21:11 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14988',
'x-ms-correlation-request-id': 'a0f6d8a5-674b-4f9f-8906-5adc4fadb5fd',
'x-ms-routing-request-id': 'WESTUS2:20161028T022120Z:a0f6d8a5-674b-4f9f-8906-5adc4fadb5fd',
date: 'Fri, 28 Oct 2016 02:21:20 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,52 +2,7 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.patch('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customDomains/cdnTestCustomDomain9289?api-version=2016-04-02', '*')
.reply(400, "{\r\n \"error\": {\r\n \"code\": \"BadRequest\",\r\n \"message\": \"Update is not allowed for custom domain.\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '109',
'content-type': 'application/json; charset=utf-8',
'content-language': 'en-US',
expires: '-1',
'x-ms-request-id': '97adc0ef-e18a-495b-8f64-2572f051ba34',
'x-ms-client-request-id': '309fc46a-4277-4dc7-af5e-dbccd7886c57',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '017094a7-bd7a-4c31-ad7b-3ee31470329b',
'x-ms-routing-request-id': 'WESTUS:20160511T232032Z:017094a7-bd7a-4c31-ad7b-3ee31470329b',
date: 'Wed, 11 May 2016 23:20:31 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.patch('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customDomains/cdnTestCustomDomain9289?api-version=2016-04-02', '*')
.reply(400, "{\r\n \"error\": {\r\n \"code\": \"BadRequest\",\r\n \"message\": \"Update is not allowed for custom domain.\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '109',
'content-type': 'application/json; charset=utf-8',
'content-language': 'en-US',
expires: '-1',
'x-ms-request-id': '97adc0ef-e18a-495b-8f64-2572f051ba34',
'x-ms-client-request-id': '309fc46a-4277-4dc7-af5e-dbccd7886c57',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '017094a7-bd7a-4c31-ad7b-3ee31470329b',
'x-ms-routing-request-id': 'WESTUS:20160511T232032Z:017094a7-bd7a-4c31-ad7b-3ee31470329b',
date: 'Wed, 11 May 2016 23:20:31 GMT',
connection: 'close' });
return result; }]];
exports.scopes = [[]];

Просмотреть файл

@ -2,52 +2,7 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.patch('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customDomains/cdnTestCustomDomain3998?api-version=2016-04-02', '*')
.reply(400, "{\r\n \"error\": {\r\n \"code\": \"BadRequest\",\r\n \"message\": \"Update is not allowed for custom domain.\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '109',
'content-type': 'application/json; charset=utf-8',
'content-language': 'en-US',
expires: '-1',
'x-ms-request-id': '48a03a87-a6d4-45f1-9978-7002c30f069d',
'x-ms-client-request-id': '58b92285-aecf-4515-afc3-3ba16454915e',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1196',
'x-ms-correlation-request-id': '57d2bcce-3128-4a1d-a679-a59e6ff3d112',
'x-ms-routing-request-id': 'WESTUS:20160511T232108Z:57d2bcce-3128-4a1d-a679-a59e6ff3d112',
date: 'Wed, 11 May 2016 23:21:07 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.patch('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customDomains/cdnTestCustomDomain3998?api-version=2016-04-02', '*')
.reply(400, "{\r\n \"error\": {\r\n \"code\": \"BadRequest\",\r\n \"message\": \"Update is not allowed for custom domain.\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '109',
'content-type': 'application/json; charset=utf-8',
'content-language': 'en-US',
expires: '-1',
'x-ms-request-id': '48a03a87-a6d4-45f1-9978-7002c30f069d',
'x-ms-client-request-id': '58b92285-aecf-4515-afc3-3ba16454915e',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1196',
'x-ms-correlation-request-id': '57d2bcce-3128-4a1d-a679-a59e6ff3d112',
'x-ms-routing-request-id': 'WESTUS:20160511T232108Z:57d2bcce-3128-4a1d-a679-a59e6ff3d112',
date: 'Wed, 11 May 2016 23:21:07 GMT',
connection: 'close' });
return result; }]];
exports.scopes = [[]];

Просмотреть файл

@ -2,50 +2,50 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customDomains/cdnTestCustomDomain9289?api-version=2016-04-02')
.reply(200, "{\r\n \"name\":\"cdnTestCustomDomain9289\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customdomains/cdnTestCustomDomain9289\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\":\"sdk-1-06466c93-ab2d-4268-b3ec-38bbc2a12e90.azureedge-test.net\"\r\n }\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customDomains/cdnTestCustomDomain5936?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestCustomDomain5936\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customdomains/cdnTestCustomDomain5936\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\":\"sdk-1-1ccf2a61-a627-4715-8744-314680c0c1b8.azureedge-test.net\",\"customHttpsProvisioningState\":\"Disabled\",\"validationData\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '494',
'content-length': '558',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '3ba2a5c2-882e-4402-ba4d-f9dd6fc387bb',
'x-ms-client-request-id': 'a688af57-a0db-4ab2-9f3b-dee23b3860e1',
'x-ms-request-id': '38be7600-84d9-4875-b879-ebf46863f52f',
'x-ms-client-request-id': '3fb8e68f-0b5f-466a-a5a8-314bf2096756',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14995',
'x-ms-correlation-request-id': 'ac91a495-4a86-4a8f-9822-b8a6ca7db95a',
'x-ms-routing-request-id': 'WESTUS:20160511T232031Z:ac91a495-4a86-4a8f-9822-b8a6ca7db95a',
date: 'Wed, 11 May 2016 23:20:30 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14990',
'x-ms-correlation-request-id': '66ddb9c7-736f-4682-be35-0a87c8e9e49e',
'x-ms-routing-request-id': 'WESTUS2:20161028T022044Z:66ddb9c7-736f-4682-be35-0a87c8e9e49e',
date: 'Fri, 28 Oct 2016 02:20:43 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customDomains/cdnTestCustomDomain9289?api-version=2016-04-02')
.reply(200, "{\r\n \"name\":\"cdnTestCustomDomain9289\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customdomains/cdnTestCustomDomain9289\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\":\"sdk-1-06466c93-ab2d-4268-b3ec-38bbc2a12e90.azureedge-test.net\"\r\n }\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customDomains/cdnTestCustomDomain5936?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestCustomDomain5936\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customdomains/cdnTestCustomDomain5936\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\":\"sdk-1-1ccf2a61-a627-4715-8744-314680c0c1b8.azureedge-test.net\",\"customHttpsProvisioningState\":\"Disabled\",\"validationData\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '494',
'content-length': '558',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '3ba2a5c2-882e-4402-ba4d-f9dd6fc387bb',
'x-ms-client-request-id': 'a688af57-a0db-4ab2-9f3b-dee23b3860e1',
'x-ms-request-id': '38be7600-84d9-4875-b879-ebf46863f52f',
'x-ms-client-request-id': '3fb8e68f-0b5f-466a-a5a8-314bf2096756',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14995',
'x-ms-correlation-request-id': 'ac91a495-4a86-4a8f-9822-b8a6ca7db95a',
'x-ms-routing-request-id': 'WESTUS:20160511T232031Z:ac91a495-4a86-4a8f-9822-b8a6ca7db95a',
date: 'Wed, 11 May 2016 23:20:30 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14990',
'x-ms-correlation-request-id': '66ddb9c7-736f-4682-be35-0a87c8e9e49e',
'x-ms-routing-request-id': 'WESTUS2:20161028T022044Z:66ddb9c7-736f-4682-be35-0a87c8e9e49e',
date: 'Fri, 28 Oct 2016 02:20:43 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,52 +2,52 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/validateCustomDomain?api-version=2016-04-02', '*')
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/validateCustomDomain?api-version=2016-10-02', '*')
.reply(400, "{\r\n \"error\": {\r\n \"code\": \"BadRequest\",\r\n \"message\": \"HostName \\\"??sdk-3-6029da3a-835e-4506-b4ea-bd5375165cdf??\\\" is invalid. It must be a valid domain name, IP version 4, or IP version 6.\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '203',
'content-type': 'application/json; charset=utf-8',
'content-language': 'en-US',
expires: '-1',
'x-ms-request-id': '54e78939-242b-4750-bb71-01ec4edbb370',
'x-ms-client-request-id': '5578baa8-e154-4a1b-8f70-45149d5e2edf',
'x-ms-request-id': '87f0210f-2f6f-4f1f-8106-4991dca07cd4',
'x-ms-client-request-id': '796d1178-fbbb-4318-9f1e-4ce625fada1b',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-correlation-request-id': '5e61ef5a-c70e-48a0-9764-99d8c3c983b6',
'x-ms-routing-request-id': 'WESTUS:20160511T231957Z:5e61ef5a-c70e-48a0-9764-99d8c3c983b6',
date: 'Wed, 11 May 2016 23:19:56 GMT',
'x-ms-correlation-request-id': '8c2ac954-0ab8-4103-979b-06d3aaa2bada',
'x-ms-routing-request-id': 'WESTUS2:20161028T022010Z:8c2ac954-0ab8-4103-979b-06d3aaa2bada',
date: 'Fri, 28 Oct 2016 02:20:09 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/validateCustomDomain?api-version=2016-04-02', '*')
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/validateCustomDomain?api-version=2016-10-02', '*')
.reply(400, "{\r\n \"error\": {\r\n \"code\": \"BadRequest\",\r\n \"message\": \"HostName \\\"??sdk-3-6029da3a-835e-4506-b4ea-bd5375165cdf??\\\" is invalid. It must be a valid domain name, IP version 4, or IP version 6.\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '203',
'content-type': 'application/json; charset=utf-8',
'content-language': 'en-US',
expires: '-1',
'x-ms-request-id': '54e78939-242b-4750-bb71-01ec4edbb370',
'x-ms-client-request-id': '5578baa8-e154-4a1b-8f70-45149d5e2edf',
'x-ms-request-id': '87f0210f-2f6f-4f1f-8106-4991dca07cd4',
'x-ms-client-request-id': '796d1178-fbbb-4318-9f1e-4ce625fada1b',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-correlation-request-id': '5e61ef5a-c70e-48a0-9764-99d8c3c983b6',
'x-ms-routing-request-id': 'WESTUS:20160511T231957Z:5e61ef5a-c70e-48a0-9764-99d8c3c983b6',
date: 'Wed, 11 May 2016 23:19:56 GMT',
'x-ms-correlation-request-id': '8c2ac954-0ab8-4103-979b-06d3aaa2bada',
'x-ms-routing-request-id': 'WESTUS2:20161028T022010Z:8c2ac954-0ab8-4103-979b-06d3aaa2bada',
date: 'Fri, 28 Oct 2016 02:20:09 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,52 +2,52 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/validateCustomDomain?api-version=2016-04-02', '*')
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/validateCustomDomain?api-version=2016-10-02', '*')
.reply(200, "{\r\n \"customDomainValidated\":false,\"message\":\"We couldn't find a DNS record for custom domain that points to endpoint. To map a domain to this endpoint, create a CNAME record with your DNS provider for custom domain that points to endpoint.\",\"reason\":\"IncorrectMapping\"\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '272',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'x-ms-request-id': 'f44fcd40-3ded-46e3-a9c3-4bb9a7ee7531',
'x-ms-client-request-id': '4e2a3b98-8b66-4810-9eaa-749d11dab8b9',
'x-ms-request-id': '3a38543e-b843-4525-85b7-c4a2d1e2193a',
'x-ms-client-request-id': '73271b88-2656-4add-baa9-c09a33d4065c',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-correlation-request-id': 'f7eb67ae-9076-4608-8081-83444769294a',
'x-ms-routing-request-id': 'WESTUS:20160511T231956Z:f7eb67ae-9076-4608-8081-83444769294a',
date: 'Wed, 11 May 2016 23:19:55 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': '8d885ebc-d815-40d3-b273-841e80798279',
'x-ms-routing-request-id': 'WESTUS2:20161028T022009Z:8d885ebc-d815-40d3-b273-841e80798279',
date: 'Fri, 28 Oct 2016 02:20:08 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/validateCustomDomain?api-version=2016-04-02', '*')
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/validateCustomDomain?api-version=2016-10-02', '*')
.reply(200, "{\r\n \"customDomainValidated\":false,\"message\":\"We couldn't find a DNS record for custom domain that points to endpoint. To map a domain to this endpoint, create a CNAME record with your DNS provider for custom domain that points to endpoint.\",\"reason\":\"IncorrectMapping\"\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '272',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'x-ms-request-id': 'f44fcd40-3ded-46e3-a9c3-4bb9a7ee7531',
'x-ms-client-request-id': '4e2a3b98-8b66-4810-9eaa-749d11dab8b9',
'x-ms-request-id': '3a38543e-b843-4525-85b7-c4a2d1e2193a',
'x-ms-client-request-id': '73271b88-2656-4add-baa9-c09a33d4065c',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-correlation-request-id': 'f7eb67ae-9076-4608-8081-83444769294a',
'x-ms-routing-request-id': 'WESTUS:20160511T231956Z:f7eb67ae-9076-4608-8081-83444769294a',
date: 'Wed, 11 May 2016 23:19:55 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': '8d885ebc-d815-40d3-b273-841e80798279',
'x-ms-routing-request-id': 'WESTUS2:20161028T022009Z:8d885ebc-d815-40d3-b273-841e80798279',
date: 'Fri, 28 Oct 2016 02:20:08 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,52 +2,52 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/validateCustomDomain?api-version=2016-04-02', '*')
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/validateCustomDomain?api-version=2016-10-02', '*')
.reply(200, "{\r\n \"customDomainValidated\":true,\"message\":null,\"reason\":null\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '65',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'x-ms-request-id': 'b881cfff-de01-46aa-9abf-7a2c7a41160a',
'x-ms-client-request-id': '9e94abc6-b6fb-4ac8-8025-0d15cdc6d769',
'x-ms-request-id': 'baf8d8a9-3c47-4799-9397-3d6e1aa37049',
'x-ms-client-request-id': '790b8468-34e1-4dce-b9b3-1cddccb0c6f5',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-correlation-request-id': 'b22de24d-1287-44e0-ab5f-38f1a82b24fb',
'x-ms-routing-request-id': 'WESTUS:20160511T231955Z:b22de24d-1287-44e0-ab5f-38f1a82b24fb',
date: 'Wed, 11 May 2016 23:19:54 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '2f184b26-03ad-4ae4-a070-224741fee2c2',
'x-ms-routing-request-id': 'WESTUS2:20161028T022008Z:2f184b26-03ad-4ae4-a070-224741fee2c2',
date: 'Fri, 28 Oct 2016 02:20:07 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/validateCustomDomain?api-version=2016-04-02', '*')
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/validateCustomDomain?api-version=2016-10-02', '*')
.reply(200, "{\r\n \"customDomainValidated\":true,\"message\":null,\"reason\":null\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '65',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'x-ms-request-id': 'b881cfff-de01-46aa-9abf-7a2c7a41160a',
'x-ms-client-request-id': '9e94abc6-b6fb-4ac8-8025-0d15cdc6d769',
'x-ms-request-id': 'baf8d8a9-3c47-4799-9397-3d6e1aa37049',
'x-ms-client-request-id': '790b8468-34e1-4dce-b9b3-1cddccb0c6f5',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-correlation-request-id': 'b22de24d-1287-44e0-ab5f-38f1a82b24fb',
'x-ms-routing-request-id': 'WESTUS:20160511T231955Z:b22de24d-1287-44e0-ab5f-38f1a82b24fb',
date: 'Wed, 11 May 2016 23:19:54 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '2f184b26-03ad-4ae4-a070-224741fee2c2',
'x-ms-routing-request-id': 'WESTUS2:20161028T022008Z:2f184b26-03ad-4ae4-a070-224741fee2c2',
date: 'Fri, 28 Oct 2016 02:20:07 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,50 +2,50 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customDomains?api-version=2016-04-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestCustomDomain9289\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customdomains/cdnTestCustomDomain9289\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\":\"sdk-1-06466c93-ab2d-4268-b3ec-38bbc2a12e90.azureedge-test.net\"\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customDomains?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestCustomDomain5936\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customdomains/cdnTestCustomDomain5936\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\":\"sdk-1-1ccf2a61-a627-4715-8744-314680c0c1b8.azureedge-test.net\",\"customHttpsProvisioningState\":\"Disabled\",\"validationData\":null\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '538',
'content-length': '602',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'f87eff05-d41c-4195-b33f-769113e25b87',
'x-ms-client-request-id': 'c049194d-e7dd-4a72-ba79-5be3894d807f',
'x-ms-request-id': '7a79c261-309f-4b89-b6fd-a16d51b98ba1',
'x-ms-client-request-id': '86850020-de1b-4e9f-bd52-bd1441c425b6',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': 'a3528d00-4620-4ea6-8035-094436e9e5f5',
'x-ms-routing-request-id': 'WESTUS:20160511T232110Z:a3528d00-4620-4ea6-8035-094436e9e5f5',
date: 'Wed, 11 May 2016 23:21:09 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14984',
'x-ms-correlation-request-id': 'e426c992-0dc4-49e7-9cee-f5ebb61104b5',
'x-ms-routing-request-id': 'WESTUS2:20161028T022119Z:e426c992-0dc4-49e7-9cee-f5ebb61104b5',
date: 'Fri, 28 Oct 2016 02:21:19 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customDomains?api-version=2016-04-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestCustomDomain9289\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customdomains/cdnTestCustomDomain9289\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\":\"sdk-1-06466c93-ab2d-4268-b3ec-38bbc2a12e90.azureedge-test.net\"\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customDomains?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestCustomDomain5936\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customdomains/cdnTestCustomDomain5936\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\":\"sdk-1-1ccf2a61-a627-4715-8744-314680c0c1b8.azureedge-test.net\",\"customHttpsProvisioningState\":\"Disabled\",\"validationData\":null\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '538',
'content-length': '602',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'f87eff05-d41c-4195-b33f-769113e25b87',
'x-ms-client-request-id': 'c049194d-e7dd-4a72-ba79-5be3894d807f',
'x-ms-request-id': '7a79c261-309f-4b89-b6fd-a16d51b98ba1',
'x-ms-client-request-id': '86850020-de1b-4e9f-bd52-bd1441c425b6',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': 'a3528d00-4620-4ea6-8035-094436e9e5f5',
'x-ms-routing-request-id': 'WESTUS:20160511T232110Z:a3528d00-4620-4ea6-8035-094436e9e5f5',
date: 'Wed, 11 May 2016 23:21:09 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14984',
'x-ms-correlation-request-id': 'e426c992-0dc4-49e7-9cee-f5ebb61104b5',
'x-ms-routing-request-id': 'WESTUS2:20161028T022119Z:e426c992-0dc4-49e7-9cee-f5ebb61104b5',
date: 'Fri, 28 Oct 2016 02:21:19 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,50 +2,50 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customDomains?api-version=2016-04-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestCustomDomain9289\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customdomains/cdnTestCustomDomain9289\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\":\"sdk-1-06466c93-ab2d-4268-b3ec-38bbc2a12e90.azureedge-test.net\"\r\n }\r\n },{\r\n \"name\":\"cdnTestCustomDomain3998\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customdomains/cdnTestCustomDomain3998\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\":\"sdk-2-06466c93-ab2d-4268-b3ec-38bbc2a12e90.azureedge-test.net\"\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customDomains?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestCustomDomain5936\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customdomains/cdnTestCustomDomain5936\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\":\"sdk-1-1ccf2a61-a627-4715-8744-314680c0c1b8.azureedge-test.net\",\"customHttpsProvisioningState\":\"Disabled\",\"validationData\":null\r\n }\r\n },{\r\n \"name\":\"cdnTestCustomDomain4653\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customdomains/cdnTestCustomDomain4653\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\":\"sdk-2-1ccf2a61-a627-4715-8744-314680c0c1b8.azureedge-test.net\",\"customHttpsProvisioningState\":\"Disabled\",\"validationData\":null\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '1049',
'content-length': '1177',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '27fcca2d-7474-4e1e-90d5-4a96beced26e',
'x-ms-client-request-id': '6259be9f-68ea-49f2-aadd-10e6e77f2ad1',
'x-ms-request-id': 'a977cb03-03d1-43ad-8dff-912692338eec',
'x-ms-client-request-id': '844fe217-216d-4bb4-bf78-61f69f21fa8a',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14991',
'x-ms-correlation-request-id': '03768e56-7d5b-448e-98c8-a1f6c0676ed6',
'x-ms-routing-request-id': 'WESTUS:20160511T232107Z:03768e56-7d5b-448e-98c8-a1f6c0676ed6',
date: 'Wed, 11 May 2016 23:21:07 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14993',
'x-ms-correlation-request-id': 'bf26d4a8-f7cc-4c1b-8689-652c0fbf0e40',
'x-ms-routing-request-id': 'WESTUS2:20161028T022117Z:bf26d4a8-f7cc-4c1b-8689-652c0fbf0e40',
date: 'Fri, 28 Oct 2016 02:21:17 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customDomains?api-version=2016-04-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestCustomDomain9289\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customdomains/cdnTestCustomDomain9289\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\":\"sdk-1-06466c93-ab2d-4268-b3ec-38bbc2a12e90.azureedge-test.net\"\r\n }\r\n },{\r\n \"name\":\"cdnTestCustomDomain3998\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customdomains/cdnTestCustomDomain3998\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\":\"sdk-2-06466c93-ab2d-4268-b3ec-38bbc2a12e90.azureedge-test.net\"\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customDomains?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestCustomDomain5936\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customdomains/cdnTestCustomDomain5936\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\":\"sdk-1-1ccf2a61-a627-4715-8744-314680c0c1b8.azureedge-test.net\",\"customHttpsProvisioningState\":\"Disabled\",\"validationData\":null\r\n }\r\n },{\r\n \"name\":\"cdnTestCustomDomain4653\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customdomains/cdnTestCustomDomain4653\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\":\"sdk-2-1ccf2a61-a627-4715-8744-314680c0c1b8.azureedge-test.net\",\"customHttpsProvisioningState\":\"Disabled\",\"validationData\":null\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '1049',
'content-length': '1177',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '27fcca2d-7474-4e1e-90d5-4a96beced26e',
'x-ms-client-request-id': '6259be9f-68ea-49f2-aadd-10e6e77f2ad1',
'x-ms-request-id': 'a977cb03-03d1-43ad-8dff-912692338eec',
'x-ms-client-request-id': '844fe217-216d-4bb4-bf78-61f69f21fa8a',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14991',
'x-ms-correlation-request-id': '03768e56-7d5b-448e-98c8-a1f6c0676ed6',
'x-ms-routing-request-id': 'WESTUS:20160511T232107Z:03768e56-7d5b-448e-98c8-a1f6c0676ed6',
date: 'Wed, 11 May 2016 23:21:07 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14993',
'x-ms-correlation-request-id': 'bf26d4a8-f7cc-4c1b-8689-652c0fbf0e40',
'x-ms-routing-request-id': 'WESTUS2:20161028T022117Z:bf26d4a8-f7cc-4c1b-8689-652c0fbf0e40',
date: 'Fri, 28 Oct 2016 02:21:17 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,50 +2,50 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customDomains?api-version=2016-04-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestCustomDomain9289\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customdomains/cdnTestCustomDomain9289\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\":\"sdk-1-06466c93-ab2d-4268-b3ec-38bbc2a12e90.azureedge-test.net\"\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customDomains?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestCustomDomain5936\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customdomains/cdnTestCustomDomain5936\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\":\"sdk-1-1ccf2a61-a627-4715-8744-314680c0c1b8.azureedge-test.net\",\"customHttpsProvisioningState\":\"Disabled\",\"validationData\":null\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '538',
'content-length': '602',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'e612436f-3e3f-41cf-95f8-12e30d12878c',
'x-ms-client-request-id': '3ab4d0e8-0018-4da3-a352-d966e8c68b60',
'x-ms-request-id': '25e55e0f-f6a2-4834-84ed-2c8fc18a2000',
'x-ms-client-request-id': '9b930782-2b0d-4e0f-80d3-50b4fd0ddcca',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': 'b729ded1-20d4-4c4e-a138-19865c098368',
'x-ms-routing-request-id': 'WESTUS:20160511T232030Z:b729ded1-20d4-4c4e-a138-19865c098368',
date: 'Wed, 11 May 2016 23:20:30 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14982',
'x-ms-correlation-request-id': '3639a988-ba31-4178-a5a2-133610a96e71',
'x-ms-routing-request-id': 'WESTUS2:20161028T022043Z:3639a988-ba31-4178-a5a2-133610a96e71',
date: 'Fri, 28 Oct 2016 02:20:42 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customDomains?api-version=2016-04-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestCustomDomain9289\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customdomains/cdnTestCustomDomain9289\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\":\"sdk-1-06466c93-ab2d-4268-b3ec-38bbc2a12e90.azureedge-test.net\"\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customDomains?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestCustomDomain5936\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customdomains/cdnTestCustomDomain5936\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\":\"sdk-1-1ccf2a61-a627-4715-8744-314680c0c1b8.azureedge-test.net\",\"customHttpsProvisioningState\":\"Disabled\",\"validationData\":null\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '538',
'content-length': '602',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'e612436f-3e3f-41cf-95f8-12e30d12878c',
'x-ms-client-request-id': '3ab4d0e8-0018-4da3-a352-d966e8c68b60',
'x-ms-request-id': '25e55e0f-f6a2-4834-84ed-2c8fc18a2000',
'x-ms-client-request-id': '9b930782-2b0d-4e0f-80d3-50b4fd0ddcca',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': 'b729ded1-20d4-4c4e-a138-19865c098368',
'x-ms-routing-request-id': 'WESTUS:20160511T232030Z:b729ded1-20d4-4c4e-a138-19865c098368',
date: 'Wed, 11 May 2016 23:20:30 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14982',
'x-ms-correlation-request-id': '3639a988-ba31-4178-a5a2-133610a96e71',
'x-ms-routing-request-id': 'WESTUS2:20161028T022043Z:3639a988-ba31-4178-a5a2-133610a96e71',
date: 'Fri, 28 Oct 2016 02:20:42 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,50 +2,50 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customDomains?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customDomains?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n \r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '28',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'cc10313e-d207-4da9-a904-cd4db5a20d8f',
'x-ms-client-request-id': '5190975f-43a4-43f3-b931-3ed6511f9218',
'x-ms-request-id': '237fafd3-a63a-46b3-80fc-4292d899f52e',
'x-ms-client-request-id': '2042dc73-1eab-45cf-8264-62da6c6d6652',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': 'd09585e7-9bfb-4c1f-b9f7-bbe27abf1b82',
'x-ms-routing-request-id': 'WESTUS:20160511T232216Z:d09585e7-9bfb-4c1f-b9f7-bbe27abf1b82',
date: 'Wed, 11 May 2016 23:22:15 GMT',
'x-ms-correlation-request-id': '03e9bfa4-103b-4dcf-bb4f-99e16a7bd3d0',
'x-ms-routing-request-id': 'CENTRALUS:20161028T022224Z:03e9bfa4-103b-4dcf-bb4f-99e16a7bd3d0',
date: 'Fri, 28 Oct 2016 02:22:24 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customDomains?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customDomains?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n \r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '28',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'cc10313e-d207-4da9-a904-cd4db5a20d8f',
'x-ms-client-request-id': '5190975f-43a4-43f3-b931-3ed6511f9218',
'x-ms-request-id': '237fafd3-a63a-46b3-80fc-4292d899f52e',
'x-ms-client-request-id': '2042dc73-1eab-45cf-8264-62da6c6d6652',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': 'd09585e7-9bfb-4c1f-b9f7-bbe27abf1b82',
'x-ms-routing-request-id': 'WESTUS:20160511T232216Z:d09585e7-9bfb-4c1f-b9f7-bbe27abf1b82',
date: 'Wed, 11 May 2016 23:22:15 GMT',
'x-ms-correlation-request-id': '03e9bfa4-103b-4dcf-bb4f-99e16a7bd3d0',
'x-ms-routing-request-id': 'CENTRALUS:20161028T022224Z:03e9bfa4-103b-4dcf-bb4f-99e16a7bd3d0',
date: 'Fri, 28 Oct 2016 02:22:24 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,370 +2,370 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.put('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002?api-version=2016-04-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestProfile6002\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n }\r\n}", { 'cache-control': 'no-cache',
.put('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208?api-version=2016-10-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestProfile9208\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '404',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'retry-after': '10',
'x-ms-request-id': '97d41ad4-1ddb-47c4-91f2-3dbf413f195e',
'x-ms-client-request-id': '46e4d8b8-7835-4359-b335-3250d487b3f5',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/6cc5cdc9-c5cf-43af-90ef-582516a2423a?api-version=2016-04-02',
'x-ms-request-id': '51702282-d20f-41de-8260-5f252cdf1c1b',
'x-ms-client-request-id': 'd9887c5d-1edd-41bf-a776-f7784b3bafac',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/39f1c2fd-43a9-4269-b9cc-aebd6755422f?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-correlation-request-id': '4385fb0a-6a59-46e9-95fa-b1b8fca4a811',
'x-ms-routing-request-id': 'WESTUS:20160511T231818Z:4385fb0a-6a59-46e9-95fa-b1b8fca4a811',
date: 'Wed, 11 May 2016 23:18:17 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': '86601a00-c97f-45a1-8fd1-a8b1bbe110ef',
'x-ms-routing-request-id': 'CENTRALUS:20161028T021830Z:86601a00-c97f-45a1-8fd1-a8b1bbe110ef',
date: 'Fri, 28 Oct 2016 02:18:30 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.put('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002?api-version=2016-04-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestProfile6002\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n }\r\n}", { 'cache-control': 'no-cache',
.put('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208?api-version=2016-10-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestProfile9208\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '404',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'retry-after': '10',
'x-ms-request-id': '97d41ad4-1ddb-47c4-91f2-3dbf413f195e',
'x-ms-client-request-id': '46e4d8b8-7835-4359-b335-3250d487b3f5',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/6cc5cdc9-c5cf-43af-90ef-582516a2423a?api-version=2016-04-02',
'x-ms-request-id': '51702282-d20f-41de-8260-5f252cdf1c1b',
'x-ms-client-request-id': 'd9887c5d-1edd-41bf-a776-f7784b3bafac',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/39f1c2fd-43a9-4269-b9cc-aebd6755422f?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-correlation-request-id': '4385fb0a-6a59-46e9-95fa-b1b8fca4a811',
'x-ms-routing-request-id': 'WESTUS:20160511T231818Z:4385fb0a-6a59-46e9-95fa-b1b8fca4a811',
date: 'Wed, 11 May 2016 23:18:17 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': '86601a00-c97f-45a1-8fd1-a8b1bbe110ef',
'x-ms-routing-request-id': 'CENTRALUS:20161028T021830Z:86601a00-c97f-45a1-8fd1-a8b1bbe110ef',
date: 'Fri, 28 Oct 2016 02:18:30 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/6cc5cdc9-c5cf-43af-90ef-582516a2423a?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/39f1c2fd-43a9-4269-b9cc-aebd6755422f?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '78',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'e07316fa-0342-48fa-83b1-0dbbdcfe2cab',
'x-ms-client-request-id': '54dd2e92-f2c8-47bc-ae0a-d9714bfd0cd4',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14998',
'x-ms-correlation-request-id': '0519755d-8316-43d1-81aa-1a86ae3c1c16',
'x-ms-routing-request-id': 'WESTUS:20160511T231848Z:0519755d-8316-43d1-81aa-1a86ae3c1c16',
date: 'Wed, 11 May 2016 23:18:47 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/6cc5cdc9-c5cf-43af-90ef-582516a2423a?api-version=2016-04-02')
.reply(200, "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '78',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'e07316fa-0342-48fa-83b1-0dbbdcfe2cab',
'x-ms-client-request-id': '54dd2e92-f2c8-47bc-ae0a-d9714bfd0cd4',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14998',
'x-ms-correlation-request-id': '0519755d-8316-43d1-81aa-1a86ae3c1c16',
'x-ms-routing-request-id': 'WESTUS:20160511T231848Z:0519755d-8316-43d1-81aa-1a86ae3c1c16',
date: 'Wed, 11 May 2016 23:18:47 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/6cc5cdc9-c5cf-43af-90ef-582516a2423a?api-version=2016-04-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'b799ca4c-060f-471e-a804-44d128d66350',
'x-ms-client-request-id': '2487592e-ab95-4eb9-8fa3-d80889856916',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': '4eb75c09-9d78-41c8-8c52-7845965c100e',
'x-ms-routing-request-id': 'WESTUS:20160511T231919Z:4eb75c09-9d78-41c8-8c52-7845965c100e',
date: 'Wed, 11 May 2016 23:19:19 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/6cc5cdc9-c5cf-43af-90ef-582516a2423a?api-version=2016-04-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'b799ca4c-060f-471e-a804-44d128d66350',
'x-ms-client-request-id': '2487592e-ab95-4eb9-8fa3-d80889856916',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': '4eb75c09-9d78-41c8-8c52-7845965c100e',
'x-ms-routing-request-id': 'WESTUS:20160511T231919Z:4eb75c09-9d78-41c8-8c52-7845965c100e',
date: 'Wed, 11 May 2016 23:19:19 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002?api-version=2016-04-02')
.reply(200, "{\r\n \"name\":\"cdnTestProfile6002\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '403',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '4d0840f4-01c2-41db-aa20-7fed3547f874',
'x-ms-client-request-id': 'c58ca577-6e56-4d69-b42e-5905ead8b455',
'x-ms-request-id': '2a55f276-5142-4031-b90f-dacb342aac51',
'x-ms-client-request-id': '1a30409a-a066-4f8b-a63f-9c7522716266',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14995',
'x-ms-correlation-request-id': '345842bd-25e3-4688-91a8-49863443ddfe',
'x-ms-routing-request-id': 'WESTUS:20160511T231920Z:345842bd-25e3-4688-91a8-49863443ddfe',
date: 'Wed, 11 May 2016 23:19:20 GMT',
'x-ms-correlation-request-id': 'bbcf0084-ce14-4cf5-90e8-fefe61efc143',
'x-ms-routing-request-id': 'CENTRALUS:20161028T021901Z:bbcf0084-ce14-4cf5-90e8-fefe61efc143',
date: 'Fri, 28 Oct 2016 02:19:00 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002?api-version=2016-04-02')
.reply(200, "{\r\n \"name\":\"cdnTestProfile6002\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/39f1c2fd-43a9-4269-b9cc-aebd6755422f?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '403',
'content-length': '78',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '4d0840f4-01c2-41db-aa20-7fed3547f874',
'x-ms-client-request-id': 'c58ca577-6e56-4d69-b42e-5905ead8b455',
'x-ms-request-id': '2a55f276-5142-4031-b90f-dacb342aac51',
'x-ms-client-request-id': '1a30409a-a066-4f8b-a63f-9c7522716266',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14995',
'x-ms-correlation-request-id': '345842bd-25e3-4688-91a8-49863443ddfe',
'x-ms-routing-request-id': 'WESTUS:20160511T231920Z:345842bd-25e3-4688-91a8-49863443ddfe',
date: 'Wed, 11 May 2016 23:19:20 GMT',
'x-ms-correlation-request-id': 'bbcf0084-ce14-4cf5-90e8-fefe61efc143',
'x-ms-routing-request-id': 'CENTRALUS:20161028T021901Z:bbcf0084-ce14-4cf5-90e8-fefe61efc143',
date: 'Fri, 28 Oct 2016 02:19:00 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/39f1c2fd-43a9-4269-b9cc-aebd6755422f?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'ca2b0fe7-70f6-416d-9ff8-aff13c31d596',
'x-ms-client-request-id': '6d294cfd-4280-45e5-9888-906d5fc67d91',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': '11ac4c2c-0406-4320-8029-4bb22a706029',
'x-ms-routing-request-id': 'CENTRALUS:20161028T021932Z:11ac4c2c-0406-4320-8029-4bb22a706029',
date: 'Fri, 28 Oct 2016 02:19:32 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/39f1c2fd-43a9-4269-b9cc-aebd6755422f?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'ca2b0fe7-70f6-416d-9ff8-aff13c31d596',
'x-ms-client-request-id': '6d294cfd-4280-45e5-9888-906d5fc67d91',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': '11ac4c2c-0406-4320-8029-4bb22a706029',
'x-ms-routing-request-id': 'CENTRALUS:20161028T021932Z:11ac4c2c-0406-4320-8029-4bb22a706029',
date: 'Fri, 28 Oct 2016 02:19:32 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestProfile9208\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '403',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '0cd21183-7783-45af-a480-2879bb0251d8',
'x-ms-client-request-id': '623b135f-d5fd-4fb0-81ec-b6880239dc8f',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14993',
'x-ms-correlation-request-id': '43b68607-26e1-4f6a-b36e-55377bea7e60',
'x-ms-routing-request-id': 'CENTRALUS:20161028T021932Z:43b68607-26e1-4f6a-b36e-55377bea7e60',
date: 'Fri, 28 Oct 2016 02:19:32 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestProfile9208\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '403',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '0cd21183-7783-45af-a480-2879bb0251d8',
'x-ms-client-request-id': '623b135f-d5fd-4fb0-81ec-b6880239dc8f',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14993',
'x-ms-correlation-request-id': '43b68607-26e1-4f6a-b36e-55377bea7e60',
'x-ms-routing-request-id': 'CENTRALUS:20161028T021932Z:43b68607-26e1-4f6a-b36e-55377bea7e60',
date: 'Fri, 28 Oct 2016 02:19:32 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.put('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90?api-version=2016-04-02', '*')
.reply(201, "{\r\n \"name\":\"testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azureedge.net\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n }\r\n}", { 'cache-control': 'no-cache',
.put('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8?api-version=2016-10-02', '*')
.reply(201, "{\r\n \"name\":\"testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azureedge.net\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '897',
'content-length': '984',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'retry-after': '10',
'x-ms-request-id': 'e5bf9bdc-69e6-4ed2-a4e6-7039e2962f85',
'x-ms-client-request-id': '2747a575-8366-46bc-9827-57cadb1317a1',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/d3a16212-fe00-418d-8192-ee923c93e913?api-version=2016-04-02',
'x-ms-request-id': '96be6c06-16e0-4da9-b14d-0a13580b3175',
'x-ms-client-request-id': 'e0ad62ed-78c4-4ccd-82ef-939d084fa9b0',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/17ccaa97-4fcc-44d9-9a90-79c17c397e46?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '9c316e4c-6aa5-4e3f-bf0f-cc40feef7180',
'x-ms-routing-request-id': 'WESTUS:20160511T231922Z:9c316e4c-6aa5-4e3f-bf0f-cc40feef7180',
date: 'Wed, 11 May 2016 23:19:21 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1196',
'x-ms-correlation-request-id': 'a8991bae-d298-45f8-8680-19a143ce3001',
'x-ms-routing-request-id': 'CENTRALUS:20161028T021935Z:a8991bae-d298-45f8-8680-19a143ce3001',
date: 'Fri, 28 Oct 2016 02:19:34 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.put('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90?api-version=2016-04-02', '*')
.reply(201, "{\r\n \"name\":\"testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azureedge.net\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n }\r\n}", { 'cache-control': 'no-cache',
.put('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8?api-version=2016-10-02', '*')
.reply(201, "{\r\n \"name\":\"testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azureedge.net\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '897',
'content-length': '984',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'retry-after': '10',
'x-ms-request-id': 'e5bf9bdc-69e6-4ed2-a4e6-7039e2962f85',
'x-ms-client-request-id': '2747a575-8366-46bc-9827-57cadb1317a1',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/d3a16212-fe00-418d-8192-ee923c93e913?api-version=2016-04-02',
'x-ms-request-id': '96be6c06-16e0-4da9-b14d-0a13580b3175',
'x-ms-client-request-id': 'e0ad62ed-78c4-4ccd-82ef-939d084fa9b0',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/17ccaa97-4fcc-44d9-9a90-79c17c397e46?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '9c316e4c-6aa5-4e3f-bf0f-cc40feef7180',
'x-ms-routing-request-id': 'WESTUS:20160511T231922Z:9c316e4c-6aa5-4e3f-bf0f-cc40feef7180',
date: 'Wed, 11 May 2016 23:19:21 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1196',
'x-ms-correlation-request-id': 'a8991bae-d298-45f8-8680-19a143ce3001',
'x-ms-routing-request-id': 'CENTRALUS:20161028T021935Z:a8991bae-d298-45f8-8680-19a143ce3001',
date: 'Fri, 28 Oct 2016 02:19:34 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/d3a16212-fe00-418d-8192-ee923c93e913?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/17ccaa97-4fcc-44d9-9a90-79c17c397e46?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '138229e2-7011-4a8f-9418-76d27391ee8e',
'x-ms-client-request-id': '4953f0cf-d4b2-40ac-aaf2-2e19813445b7',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14962',
'x-ms-correlation-request-id': '286ed52b-468e-4f79-82ea-75b571929004',
'x-ms-routing-request-id': 'WESTUS:20160511T231952Z:286ed52b-468e-4f79-82ea-75b571929004',
date: 'Wed, 11 May 2016 23:19:52 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/d3a16212-fe00-418d-8192-ee923c93e913?api-version=2016-04-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '138229e2-7011-4a8f-9418-76d27391ee8e',
'x-ms-client-request-id': '4953f0cf-d4b2-40ac-aaf2-2e19813445b7',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14962',
'x-ms-correlation-request-id': '286ed52b-468e-4f79-82ea-75b571929004',
'x-ms-routing-request-id': 'WESTUS:20160511T231952Z:286ed52b-468e-4f79-82ea-75b571929004',
date: 'Wed, 11 May 2016 23:19:52 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90?api-version=2016-04-02')
.reply(200, "{\r\n \"name\":\"testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azureedge.net\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '897',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '34020692-598b-4868-8135-113c6021cb78',
'x-ms-client-request-id': 'a9a9f7ad-ce7e-4a5e-8b4c-573858165c30',
'x-ms-request-id': '65c8f5ab-e30d-4e89-b3c0-36788b9c71ff',
'x-ms-client-request-id': '7c5b52bb-fb18-4e3a-8921-bb9617865f7b',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': '6e6e5232-ba00-40be-94dc-6e9bab7ac5bc',
'x-ms-routing-request-id': 'WESTUS:20160511T231953Z:6e6e5232-ba00-40be-94dc-6e9bab7ac5bc',
date: 'Wed, 11 May 2016 23:19:53 GMT',
'x-ms-correlation-request-id': 'df60f68f-51c9-44a8-9a5a-7fd7f4dabd38',
'x-ms-routing-request-id': 'WESTUS2:20161028T022005Z:df60f68f-51c9-44a8-9a5a-7fd7f4dabd38',
date: 'Fri, 28 Oct 2016 02:20:05 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90?api-version=2016-04-02')
.reply(200, "{\r\n \"name\":\"testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azureedge.net\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n }\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/17ccaa97-4fcc-44d9-9a90-79c17c397e46?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '897',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '34020692-598b-4868-8135-113c6021cb78',
'x-ms-client-request-id': 'a9a9f7ad-ce7e-4a5e-8b4c-573858165c30',
'x-ms-request-id': '65c8f5ab-e30d-4e89-b3c0-36788b9c71ff',
'x-ms-client-request-id': '7c5b52bb-fb18-4e3a-8921-bb9617865f7b',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': '6e6e5232-ba00-40be-94dc-6e9bab7ac5bc',
'x-ms-routing-request-id': 'WESTUS:20160511T231953Z:6e6e5232-ba00-40be-94dc-6e9bab7ac5bc',
date: 'Wed, 11 May 2016 23:19:53 GMT',
'x-ms-correlation-request-id': 'df60f68f-51c9-44a8-9a5a-7fd7f4dabd38',
'x-ms-routing-request-id': 'WESTUS2:20161028T022005Z:df60f68f-51c9-44a8-9a5a-7fd7f4dabd38',
date: 'Fri, 28 Oct 2016 02:20:05 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customDomains?api-version=2016-04-02')
.reply(200, "{\r\n \"value\":[\r\n \r\n ]\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azureedge.net\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '28',
'content-length': '984',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '0cc9d4f5-a4c0-4265-b30a-a6e21a1edee0',
'x-ms-client-request-id': 'fea0214f-6395-4c07-91ac-da382b459005',
'x-ms-request-id': '9661d3a8-b8e3-4ccf-a3c9-73e9edb2e4ec',
'x-ms-client-request-id': '7cfbc798-bd52-4dfb-b625-0b9cd62b01a5',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14998',
'x-ms-correlation-request-id': '65cc0c48-2d5a-42b5-9003-7a598b75438b',
'x-ms-routing-request-id': 'WESTUS:20160511T231954Z:65cc0c48-2d5a-42b5-9003-7a598b75438b',
date: 'Wed, 11 May 2016 23:19:53 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14983',
'x-ms-correlation-request-id': '92fbfe34-9bd8-4f97-8caa-3a19580a07c3',
'x-ms-routing-request-id': 'WESTUS2:20161028T022006Z:92fbfe34-9bd8-4f97-8caa-3a19580a07c3',
date: 'Fri, 28 Oct 2016 02:20:05 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customDomains?api-version=2016-04-02')
.reply(200, "{\r\n \"value\":[\r\n \r\n ]\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azureedge.net\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '28',
'content-length': '984',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '0cc9d4f5-a4c0-4265-b30a-a6e21a1edee0',
'x-ms-client-request-id': 'fea0214f-6395-4c07-91ac-da382b459005',
'x-ms-request-id': '9661d3a8-b8e3-4ccf-a3c9-73e9edb2e4ec',
'x-ms-client-request-id': '7cfbc798-bd52-4dfb-b625-0b9cd62b01a5',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14998',
'x-ms-correlation-request-id': '65cc0c48-2d5a-42b5-9003-7a598b75438b',
'x-ms-routing-request-id': 'WESTUS:20160511T231954Z:65cc0c48-2d5a-42b5-9003-7a598b75438b',
date: 'Wed, 11 May 2016 23:19:53 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14983',
'x-ms-correlation-request-id': '92fbfe34-9bd8-4f97-8caa-3a19580a07c3',
'x-ms-routing-request-id': 'WESTUS2:20161028T022006Z:92fbfe34-9bd8-4f97-8caa-3a19580a07c3',
date: 'Fri, 28 Oct 2016 02:20:05 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customDomains?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n \r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '28',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '73bc593a-5df1-46eb-8eb1-2d45585216dc',
'x-ms-client-request-id': '63c53cb2-7ebf-4777-a988-e219280eadb2',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': '41e11921-6b7b-41d0-9365-f174ce2127d4',
'x-ms-routing-request-id': 'WESTUS2:20161028T022007Z:41e11921-6b7b-41d0-9365-f174ce2127d4',
date: 'Fri, 28 Oct 2016 02:20:07 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customDomains?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n \r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '28',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '73bc593a-5df1-46eb-8eb1-2d45585216dc',
'x-ms-client-request-id': '63c53cb2-7ebf-4777-a988-e219280eadb2',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': '41e11921-6b7b-41d0-9365-f174ce2127d4',
'x-ms-routing-request-id': 'WESTUS2:20161028T022007Z:41e11921-6b7b-41d0-9365-f174ce2127d4',
date: 'Fri, 28 Oct 2016 02:20:07 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,146 +2,146 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/stop?api-version=2016-04-02')
.reply(202, "{\r\n \"hostName\":\"testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Stopping\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azureedge.net\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n}", { 'cache-control': 'no-cache',
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/stop?api-version=2016-10-02')
.reply(202, "{\r\n \"hostName\":\"testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Stopping\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azureedge.net\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n {\r\n \"name\":\"cdnTestCustomDomain5936\",\"properties\":{\r\n \"hostName\":\"sdk-1-1ccf2a61-a627-4715-8744-314680c0c1b8.azureedge-test.net\",\"validationData\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '500',
'content-length': '757',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
location: 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/d83baaac-2332-4868-b794-cda06dcad002/profileresults/cdnTestProfile6002/endpointresults/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90?api-version=2016-04-02',
location: 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/3b5e33e4-57c3-43a1-94c8-3104f894f6e0/profileresults/cdnTestProfile9208/endpointresults/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8?api-version=2016-10-02',
'retry-after': '10',
'x-ms-request-id': '155da3f2-ee97-4eec-805f-a65787eb7ce1',
'x-ms-client-request-id': '5438ae90-e67c-493c-b41e-9d3f6314c075',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/d83baaac-2332-4868-b794-cda06dcad002?api-version=2016-04-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': '53c88a10-16f1-45b9-8d30-3faf0d190ae4',
'x-ms-routing-request-id': 'WESTUS:20160511T232034Z:53c88a10-16f1-45b9-8d30-3faf0d190ae4',
date: 'Wed, 11 May 2016 23:20:33 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/stop?api-version=2016-04-02')
.reply(202, "{\r\n \"hostName\":\"testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Stopping\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azureedge.net\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '500',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
location: 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/d83baaac-2332-4868-b794-cda06dcad002/profileresults/cdnTestProfile6002/endpointresults/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90?api-version=2016-04-02',
'retry-after': '10',
'x-ms-request-id': '155da3f2-ee97-4eec-805f-a65787eb7ce1',
'x-ms-client-request-id': '5438ae90-e67c-493c-b41e-9d3f6314c075',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/d83baaac-2332-4868-b794-cda06dcad002?api-version=2016-04-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': '53c88a10-16f1-45b9-8d30-3faf0d190ae4',
'x-ms-routing-request-id': 'WESTUS:20160511T232034Z:53c88a10-16f1-45b9-8d30-3faf0d190ae4',
date: 'Wed, 11 May 2016 23:20:33 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/d83baaac-2332-4868-b794-cda06dcad002?api-version=2016-04-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'ec6fbfbd-a24e-45cd-a1a8-d8d6199a3534',
'x-ms-client-request-id': 'a5dd0646-5eb0-4b02-9953-5212da13f757',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': 'dcc6f654-ea2e-47a5-b9c2-707eeb9e4a6f',
'x-ms-routing-request-id': 'WESTUS:20160511T232104Z:dcc6f654-ea2e-47a5-b9c2-707eeb9e4a6f',
date: 'Wed, 11 May 2016 23:21:04 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/d83baaac-2332-4868-b794-cda06dcad002?api-version=2016-04-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'ec6fbfbd-a24e-45cd-a1a8-d8d6199a3534',
'x-ms-client-request-id': 'a5dd0646-5eb0-4b02-9953-5212da13f757',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': 'dcc6f654-ea2e-47a5-b9c2-707eeb9e4a6f',
'x-ms-routing-request-id': 'WESTUS:20160511T232104Z:dcc6f654-ea2e-47a5-b9c2-707eeb9e4a6f',
date: 'Wed, 11 May 2016 23:21:04 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.put('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customDomains/cdnTestCustomDomain3998?api-version=2016-04-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestCustomDomain3998\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customdomains/cdnTestCustomDomain3998\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\":\"sdk-2-06466c93-ab2d-4268-b3ec-38bbc2a12e90.azureedge-test.net\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '494',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'x-ms-request-id': '13336193-5747-4b3a-a831-f1e72f9292a4',
'x-ms-client-request-id': 'bae53dc9-0e2b-4fa6-9889-779325b24e4d',
'x-ms-request-id': 'f390ccc2-6780-45ea-9023-059aae5116cc',
'x-ms-client-request-id': '7c99a42c-122c-4079-a7ca-75c4385e0ca9',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/3b5e33e4-57c3-43a1-94c8-3104f894f6e0?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-correlation-request-id': 'e0e3ce41-4b1b-472d-963f-0a9158302e9a',
'x-ms-routing-request-id': 'WESTUS:20160511T232106Z:e0e3ce41-4b1b-472d-963f-0a9158302e9a',
date: 'Wed, 11 May 2016 23:21:06 GMT',
'x-ms-correlation-request-id': '071a9254-466b-4a96-b94f-42fef5018173',
'x-ms-routing-request-id': 'WESTUS2:20161028T022045Z:071a9254-466b-4a96-b94f-42fef5018173',
date: 'Fri, 28 Oct 2016 02:20:45 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.put('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customDomains/cdnTestCustomDomain3998?api-version=2016-04-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestCustomDomain3998\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customdomains/cdnTestCustomDomain3998\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\":\"sdk-2-06466c93-ab2d-4268-b3ec-38bbc2a12e90.azureedge-test.net\"\r\n }\r\n}", { 'cache-control': 'no-cache',
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/stop?api-version=2016-10-02')
.reply(202, "{\r\n \"hostName\":\"testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Stopping\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azureedge.net\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n {\r\n \"name\":\"cdnTestCustomDomain5936\",\"properties\":{\r\n \"hostName\":\"sdk-1-1ccf2a61-a627-4715-8744-314680c0c1b8.azureedge-test.net\",\"validationData\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '494',
'content-length': '757',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'x-ms-request-id': '13336193-5747-4b3a-a831-f1e72f9292a4',
'x-ms-client-request-id': 'bae53dc9-0e2b-4fa6-9889-779325b24e4d',
location: 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/3b5e33e4-57c3-43a1-94c8-3104f894f6e0/profileresults/cdnTestProfile9208/endpointresults/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8?api-version=2016-10-02',
'retry-after': '10',
'x-ms-request-id': 'f390ccc2-6780-45ea-9023-059aae5116cc',
'x-ms-client-request-id': '7c99a42c-122c-4079-a7ca-75c4385e0ca9',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/3b5e33e4-57c3-43a1-94c8-3104f894f6e0?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-correlation-request-id': 'e0e3ce41-4b1b-472d-963f-0a9158302e9a',
'x-ms-routing-request-id': 'WESTUS:20160511T232106Z:e0e3ce41-4b1b-472d-963f-0a9158302e9a',
date: 'Wed, 11 May 2016 23:21:06 GMT',
'x-ms-correlation-request-id': '071a9254-466b-4a96-b94f-42fef5018173',
'x-ms-routing-request-id': 'WESTUS2:20161028T022045Z:071a9254-466b-4a96-b94f-42fef5018173',
date: 'Fri, 28 Oct 2016 02:20:45 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/3b5e33e4-57c3-43a1-94c8-3104f894f6e0?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '37c23bb4-27de-46b0-967a-34af625b8f83',
'x-ms-client-request-id': 'abac4a83-74f1-4844-a069-5433a0c277fa',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14992',
'x-ms-correlation-request-id': '9ba23698-7f31-486d-82d5-849202a87931',
'x-ms-routing-request-id': 'WESTUS2:20161028T022115Z:9ba23698-7f31-486d-82d5-849202a87931',
date: 'Fri, 28 Oct 2016 02:21:15 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/3b5e33e4-57c3-43a1-94c8-3104f894f6e0?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '37c23bb4-27de-46b0-967a-34af625b8f83',
'x-ms-client-request-id': 'abac4a83-74f1-4844-a069-5433a0c277fa',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14992',
'x-ms-correlation-request-id': '9ba23698-7f31-486d-82d5-849202a87931',
'x-ms-routing-request-id': 'WESTUS2:20161028T022115Z:9ba23698-7f31-486d-82d5-849202a87931',
date: 'Fri, 28 Oct 2016 02:21:15 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.put('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customDomains/cdnTestCustomDomain4653?api-version=2016-10-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestCustomDomain4653\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customdomains/cdnTestCustomDomain4653\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\":\"sdk-2-1ccf2a61-a627-4715-8744-314680c0c1b8.azureedge-test.net\",\"customHttpsProvisioningState\":\"Disabled\",\"validationData\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '558',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'x-ms-request-id': '885345e0-e877-412a-8068-dd5c3f2f239e',
'x-ms-client-request-id': 'dd0ce5bf-09a9-45e8-bcd5-910e2184c83f',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1195',
'x-ms-correlation-request-id': '01d53dc9-0b7c-4483-b538-b00f4506a4a0',
'x-ms-routing-request-id': 'WESTUS2:20161028T022116Z:01d53dc9-0b7c-4483-b538-b00f4506a4a0',
date: 'Fri, 28 Oct 2016 02:21:15 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.put('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customDomains/cdnTestCustomDomain4653?api-version=2016-10-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestCustomDomain4653\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customdomains/cdnTestCustomDomain4653\",\"type\":\"Microsoft.Cdn/profiles/endpoints/customdomains\",\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\",\"hostName\":\"sdk-2-1ccf2a61-a627-4715-8744-314680c0c1b8.azureedge-test.net\",\"customHttpsProvisioningState\":\"Disabled\",\"validationData\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '558',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'x-ms-request-id': '885345e0-e877-412a-8068-dd5c3f2f239e',
'x-ms-client-request-id': 'dd0ce5bf-09a9-45e8-bcd5-910e2184c83f',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1195',
'x-ms-correlation-request-id': '01d53dc9-0b7c-4483-b538-b00f4506a4a0',
'x-ms-routing-request-id': 'WESTUS2:20161028T022116Z:01d53dc9-0b7c-4483-b538-b00f4506a4a0',
date: 'Fri, 28 Oct 2016 02:21:15 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,46 +2,46 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.delete('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customDomains/cdnTestCustomDomain3998?api-version=2016-04-02')
.delete('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customDomains/cdnTestCustomDomain4653?api-version=2016-10-02')
.reply(200, "", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '0',
expires: '-1',
'x-ms-request-id': '2348b314-04d0-47ac-9935-445dc339b029',
'x-ms-client-request-id': '4da9ecac-8e4e-4c73-9054-2c3c7a91e44c',
'x-ms-request-id': '5a063903-c035-4f5f-9382-ce5fa1f358c2',
'x-ms-client-request-id': '43ed0d09-ff5b-488a-971d-01e1d8e53347',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-correlation-request-id': '8b87787e-77ab-41ee-9db4-e31ab7611a5f',
'x-ms-routing-request-id': 'WESTUS:20160511T232109Z:8b87787e-77ab-41ee-9db4-e31ab7611a5f',
date: 'Wed, 11 May 2016 23:21:09 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1195',
'x-ms-correlation-request-id': '5ea979d3-f148-419b-a56d-8ac5c183e25e',
'x-ms-routing-request-id': 'WESTUS2:20161028T022118Z:5ea979d3-f148-419b-a56d-8ac5c183e25e',
date: 'Fri, 28 Oct 2016 02:21:18 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.delete('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customDomains/cdnTestCustomDomain3998?api-version=2016-04-02')
.delete('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customDomains/cdnTestCustomDomain4653?api-version=2016-10-02')
.reply(200, "", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '0',
expires: '-1',
'x-ms-request-id': '2348b314-04d0-47ac-9935-445dc339b029',
'x-ms-client-request-id': '4da9ecac-8e4e-4c73-9054-2c3c7a91e44c',
'x-ms-request-id': '5a063903-c035-4f5f-9382-ce5fa1f358c2',
'x-ms-client-request-id': '43ed0d09-ff5b-488a-971d-01e1d8e53347',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-correlation-request-id': '8b87787e-77ab-41ee-9db4-e31ab7611a5f',
'x-ms-routing-request-id': 'WESTUS:20160511T232109Z:8b87787e-77ab-41ee-9db4-e31ab7611a5f',
date: 'Wed, 11 May 2016 23:21:09 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1195',
'x-ms-correlation-request-id': '5ea979d3-f148-419b-a56d-8ac5c183e25e',
'x-ms-routing-request-id': 'WESTUS2:20161028T022118Z:5ea979d3-f148-419b-a56d-8ac5c183e25e',
date: 'Fri, 28 Oct 2016 02:21:18 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,190 +2,190 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/start?api-version=2016-04-02')
.reply(202, "{\r\n \"hostName\":\"testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Starting\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azureedge.net\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n}", { 'cache-control': 'no-cache',
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/start?api-version=2016-10-02')
.reply(202, "{\r\n \"hostName\":\"testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Starting\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azureedge.net\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n {\r\n \"name\":\"cdnTestCustomDomain5936\",\"properties\":{\r\n \"hostName\":\"sdk-1-1ccf2a61-a627-4715-8744-314680c0c1b8.azureedge-test.net\",\"validationData\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '500',
'content-length': '757',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
location: 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/4ca236c8-c0b9-4604-aaba-8f5f56667db8/profileresults/cdnTestProfile6002/endpointresults/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90?api-version=2016-04-02',
location: 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/296574cf-302a-4d94-8e29-c7e87aba4399/profileresults/cdnTestProfile9208/endpointresults/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8?api-version=2016-10-02',
'retry-after': '10',
'x-ms-request-id': 'e1b3515b-4faf-44eb-8d9a-a9e848d36732',
'x-ms-client-request-id': '7ff61f19-5395-46f4-86d5-7fcce879e227',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/4ca236c8-c0b9-4604-aaba-8f5f56667db8?api-version=2016-04-02',
'x-ms-request-id': 'abf9cc8b-342b-4e14-8f4a-dec4ea2e1b6a',
'x-ms-client-request-id': '3ecb9eaf-a662-4428-9381-3b46875ae92a',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/296574cf-302a-4d94-8e29-c7e87aba4399?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '73485827-4b9a-4827-8404-b6f0d6957768',
'x-ms-routing-request-id': 'WESTUS:20160511T232112Z:73485827-4b9a-4827-8404-b6f0d6957768',
date: 'Wed, 11 May 2016 23:21:12 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/start?api-version=2016-04-02')
.reply(202, "{\r\n \"hostName\":\"testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Starting\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azureedge.net\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '500',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
location: 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/4ca236c8-c0b9-4604-aaba-8f5f56667db8/profileresults/cdnTestProfile6002/endpointresults/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90?api-version=2016-04-02',
'retry-after': '10',
'x-ms-request-id': 'e1b3515b-4faf-44eb-8d9a-a9e848d36732',
'x-ms-client-request-id': '7ff61f19-5395-46f4-86d5-7fcce879e227',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/4ca236c8-c0b9-4604-aaba-8f5f56667db8?api-version=2016-04-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '73485827-4b9a-4827-8404-b6f0d6957768',
'x-ms-routing-request-id': 'WESTUS:20160511T232112Z:73485827-4b9a-4827-8404-b6f0d6957768',
date: 'Wed, 11 May 2016 23:21:12 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/4ca236c8-c0b9-4604-aaba-8f5f56667db8?api-version=2016-04-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'fe13018b-abc8-4e1a-96ef-5af4f3e5a618',
'x-ms-client-request-id': 'd8459eef-be75-4eb9-afbb-e6da9d5cf119',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': 'e03e0899-05fe-4965-81a9-2c9a4729a08f',
'x-ms-routing-request-id': 'WESTUS:20160511T232143Z:e03e0899-05fe-4965-81a9-2c9a4729a08f',
date: 'Wed, 11 May 2016 23:21:42 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/4ca236c8-c0b9-4604-aaba-8f5f56667db8?api-version=2016-04-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'fe13018b-abc8-4e1a-96ef-5af4f3e5a618',
'x-ms-client-request-id': 'd8459eef-be75-4eb9-afbb-e6da9d5cf119',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': 'e03e0899-05fe-4965-81a9-2c9a4729a08f',
'x-ms-routing-request-id': 'WESTUS:20160511T232143Z:e03e0899-05fe-4965-81a9-2c9a4729a08f',
date: 'Wed, 11 May 2016 23:21:42 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.delete('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customDomains/cdnTestCustomDomain9289?api-version=2016-04-02')
.reply(202, "", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '0',
expires: '-1',
location: 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/94c34e5f-f417-44fd-8d55-b5346c9cf470/profileresults/cdnTestProfile6002/endpointresults/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customdomainresults/cdnTestCustomDomain9289?api-version=2016-04-02',
'retry-after': '10',
'x-ms-request-id': 'e77e6e1e-0c34-4e50-92f0-691d6a67cec8',
'x-ms-client-request-id': '6d5e3510-e655-47fd-a040-8144bd9040c2',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/94c34e5f-f417-44fd-8d55-b5346c9cf470?api-version=2016-04-02',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': '98029caa-0cd9-4326-bd3c-9dd3907de47f',
'x-ms-routing-request-id': 'WESTUS:20160511T232144Z:98029caa-0cd9-4326-bd3c-9dd3907de47f',
date: 'Wed, 11 May 2016 23:21:44 GMT',
'x-ms-correlation-request-id': 'c0b21ab2-8d38-4f4b-80cf-1fceed88c372',
'x-ms-routing-request-id': 'WESTUS2:20161028T022121Z:c0b21ab2-8d38-4f4b-80cf-1fceed88c372',
date: 'Fri, 28 Oct 2016 02:21:21 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.delete('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup5157/providers/Microsoft.Cdn/profiles/cdnTestProfile6002/endpoints/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customDomains/cdnTestCustomDomain9289?api-version=2016-04-02')
.reply(202, "", { 'cache-control': 'no-cache',
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/start?api-version=2016-10-02')
.reply(202, "{\r\n \"hostName\":\"testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Starting\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azureedge.net\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n {\r\n \"name\":\"cdnTestCustomDomain5936\",\"properties\":{\r\n \"hostName\":\"sdk-1-1ccf2a61-a627-4715-8744-314680c0c1b8.azureedge-test.net\",\"validationData\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '0',
'content-length': '757',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
location: 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/94c34e5f-f417-44fd-8d55-b5346c9cf470/profileresults/cdnTestProfile6002/endpointresults/testEndpoint-06466c93-ab2d-4268-b3ec-38bbc2a12e90/customdomainresults/cdnTestCustomDomain9289?api-version=2016-04-02',
location: 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/296574cf-302a-4d94-8e29-c7e87aba4399/profileresults/cdnTestProfile9208/endpointresults/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8?api-version=2016-10-02',
'retry-after': '10',
'x-ms-request-id': 'e77e6e1e-0c34-4e50-92f0-691d6a67cec8',
'x-ms-client-request-id': '6d5e3510-e655-47fd-a040-8144bd9040c2',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/94c34e5f-f417-44fd-8d55-b5346c9cf470?api-version=2016-04-02',
'x-ms-request-id': 'abf9cc8b-342b-4e14-8f4a-dec4ea2e1b6a',
'x-ms-client-request-id': '3ecb9eaf-a662-4428-9381-3b46875ae92a',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/296574cf-302a-4d94-8e29-c7e87aba4399?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': '98029caa-0cd9-4326-bd3c-9dd3907de47f',
'x-ms-routing-request-id': 'WESTUS:20160511T232144Z:98029caa-0cd9-4326-bd3c-9dd3907de47f',
date: 'Wed, 11 May 2016 23:21:44 GMT',
'x-ms-correlation-request-id': 'c0b21ab2-8d38-4f4b-80cf-1fceed88c372',
'x-ms-routing-request-id': 'WESTUS2:20161028T022121Z:c0b21ab2-8d38-4f4b-80cf-1fceed88c372',
date: 'Fri, 28 Oct 2016 02:21:21 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/94c34e5f-f417-44fd-8d55-b5346c9cf470?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/296574cf-302a-4d94-8e29-c7e87aba4399?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'bcacc7d3-56a5-484c-b8d1-3e0536be7f71',
'x-ms-client-request-id': 'd410a57a-6df1-431e-9601-a20d93fc6392',
'x-ms-request-id': '5d69e36d-81d6-4451-8612-01707e5b0304',
'x-ms-client-request-id': '5773a858-bff9-4359-a5c4-0989c894d18b',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14995',
'x-ms-correlation-request-id': '6988178c-6aa9-47a2-acd6-5769072f31f5',
'x-ms-routing-request-id': 'CENTRALUS:20161028T022152Z:6988178c-6aa9-47a2-acd6-5769072f31f5',
date: 'Fri, 28 Oct 2016 02:21:52 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/296574cf-302a-4d94-8e29-c7e87aba4399?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '5d69e36d-81d6-4451-8612-01707e5b0304',
'x-ms-client-request-id': '5773a858-bff9-4359-a5c4-0989c894d18b',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14995',
'x-ms-correlation-request-id': '6988178c-6aa9-47a2-acd6-5769072f31f5',
'x-ms-routing-request-id': 'CENTRALUS:20161028T022152Z:6988178c-6aa9-47a2-acd6-5769072f31f5',
date: 'Fri, 28 Oct 2016 02:21:52 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.delete('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customDomains/cdnTestCustomDomain5936?api-version=2016-10-02')
.reply(202, "", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '0',
expires: '-1',
location: 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/07b9471b-be1e-4ef8-a3d8-45889c6fbccb/profileresults/cdnTestProfile9208/endpointresults/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customdomainresults/cdnTestCustomDomain5936?api-version=2016-10-02',
'retry-after': '10',
'x-ms-request-id': 'd1a1aabd-6fc2-4018-bd9a-bc144a4fa8a9',
'x-ms-client-request-id': '05c0d280-fb63-4a49-86ca-4f57d8cb612d',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/07b9471b-be1e-4ef8-a3d8-45889c6fbccb?api-version=2016-10-02',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': 'ec12e16a-e198-4b2b-9deb-3966140dc48c',
'x-ms-routing-request-id': 'CENTRALUS:20161028T022153Z:ec12e16a-e198-4b2b-9deb-3966140dc48c',
date: 'Fri, 28 Oct 2016 02:21:53 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.delete('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2543/providers/Microsoft.Cdn/profiles/cdnTestProfile9208/endpoints/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customDomains/cdnTestCustomDomain5936?api-version=2016-10-02')
.reply(202, "", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '0',
expires: '-1',
location: 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/07b9471b-be1e-4ef8-a3d8-45889c6fbccb/profileresults/cdnTestProfile9208/endpointresults/testEndpoint-1ccf2a61-a627-4715-8744-314680c0c1b8/customdomainresults/cdnTestCustomDomain5936?api-version=2016-10-02',
'retry-after': '10',
'x-ms-request-id': 'd1a1aabd-6fc2-4018-bd9a-bc144a4fa8a9',
'x-ms-client-request-id': '05c0d280-fb63-4a49-86ca-4f57d8cb612d',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/07b9471b-be1e-4ef8-a3d8-45889c6fbccb?api-version=2016-10-02',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': 'ec12e16a-e198-4b2b-9deb-3966140dc48c',
'x-ms-routing-request-id': 'CENTRALUS:20161028T022153Z:ec12e16a-e198-4b2b-9deb-3966140dc48c',
date: 'Fri, 28 Oct 2016 02:21:53 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/07b9471b-be1e-4ef8-a3d8-45889c6fbccb?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'f5334532-e6e1-4a37-8d69-b8853423032f',
'x-ms-client-request-id': 'fb1fc316-3d1f-41a0-86ba-d66689e23e4f',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': '28d8e404-d838-4336-a74e-c187206427b1',
'x-ms-routing-request-id': 'WESTUS:20160511T232215Z:28d8e404-d838-4336-a74e-c187206427b1',
date: 'Wed, 11 May 2016 23:22:14 GMT',
'x-ms-correlation-request-id': '1cf19606-f3a9-4866-aa69-0dfa50640b8b',
'x-ms-routing-request-id': 'CENTRALUS:20161028T022224Z:1cf19606-f3a9-4866-aa69-0dfa50640b8b',
date: 'Fri, 28 Oct 2016 02:22:24 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup5157/providers/Microsoft.Cdn/operationresults/94c34e5f-f417-44fd-8d55-b5346c9cf470?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2543/providers/Microsoft.Cdn/operationresults/07b9471b-be1e-4ef8-a3d8-45889c6fbccb?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'bcacc7d3-56a5-484c-b8d1-3e0536be7f71',
'x-ms-client-request-id': 'd410a57a-6df1-431e-9601-a20d93fc6392',
'x-ms-request-id': 'f5334532-e6e1-4a37-8d69-b8853423032f',
'x-ms-client-request-id': 'fb1fc316-3d1f-41a0-86ba-d66689e23e4f',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': '28d8e404-d838-4336-a74e-c187206427b1',
'x-ms-routing-request-id': 'WESTUS:20160511T232215Z:28d8e404-d838-4336-a74e-c187206427b1',
date: 'Wed, 11 May 2016 23:22:14 GMT',
'x-ms-correlation-request-id': '1cf19606-f3a9-4866-aa69-0dfa50640b8b',
'x-ms-routing-request-id': 'CENTRALUS:20161028T022224Z:1cf19606-f3a9-4866-aa69-0dfa50640b8b',
date: 'Fri, 28 Oct 2016 02:22:24 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,9 +2,9 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [];
exports.randomTestIdsGenerated = function() { return ['cdnTestGroup5157','cdnTestProfile6002','cdnTestCustomDomain9289','cdnTestCustomDomain3998'];};
exports.randomTestIdsGenerated = function() { return ['cdnTestGroup2543','cdnTestProfile9208','cdnTestCustomDomain5936','cdnTestCustomDomain4653'];};

Просмотреть файл

@ -0,0 +1,283 @@
// This file has been autogenerated.
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.put('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile3513?api-version=2016-10-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestProfile3513\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile3513\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '403',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'retry-after': '10',
'x-ms-request-id': '02f4c983-0029-4c2a-b4be-ca1c21af2a5e',
'x-ms-client-request-id': '540448f3-f167-4a74-bffa-b10d4da3f071',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/a124b44c-e44e-470e-8463-1bd2bffcc0c0?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-correlation-request-id': 'b5afde7d-f189-44bd-b438-02139ff21498',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014633Z:b5afde7d-f189-44bd-b438-02139ff21498',
date: 'Fri, 28 Oct 2016 01:46:32 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.put('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile3513?api-version=2016-10-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestProfile3513\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile3513\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '403',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'retry-after': '10',
'x-ms-request-id': '02f4c983-0029-4c2a-b4be-ca1c21af2a5e',
'x-ms-client-request-id': '540448f3-f167-4a74-bffa-b10d4da3f071',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/a124b44c-e44e-470e-8463-1bd2bffcc0c0?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-correlation-request-id': 'b5afde7d-f189-44bd-b438-02139ff21498',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014633Z:b5afde7d-f189-44bd-b438-02139ff21498',
date: 'Fri, 28 Oct 2016 01:46:32 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/a124b44c-e44e-470e-8463-1bd2bffcc0c0?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'bcf26e7f-633f-4ded-882f-92cd6c14da14',
'x-ms-client-request-id': '24b332cb-7789-41f2-80bf-237315659591',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': 'bade6cc5-0b97-4991-ab88-0a8522064832',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014704Z:bade6cc5-0b97-4991-ab88-0a8522064832',
date: 'Fri, 28 Oct 2016 01:47:03 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/a124b44c-e44e-470e-8463-1bd2bffcc0c0?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'bcf26e7f-633f-4ded-882f-92cd6c14da14',
'x-ms-client-request-id': '24b332cb-7789-41f2-80bf-237315659591',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': 'bade6cc5-0b97-4991-ab88-0a8522064832',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014704Z:bade6cc5-0b97-4991-ab88-0a8522064832',
date: 'Fri, 28 Oct 2016 01:47:03 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile3513?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestProfile3513\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile3513\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '402',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '80ed3834-e367-47c8-ba3c-b7d7a75a6338',
'x-ms-client-request-id': '0d3a488d-08bd-4ab2-8ca9-a86a31d9f8bd',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14991',
'x-ms-correlation-request-id': 'd124a16f-4c34-4b7c-ae7b-3d85d0a73d4a',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014704Z:d124a16f-4c34-4b7c-ae7b-3d85d0a73d4a',
date: 'Fri, 28 Oct 2016 01:47:03 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile3513?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestProfile3513\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile3513\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '402',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '80ed3834-e367-47c8-ba3c-b7d7a75a6338',
'x-ms-client-request-id': '0d3a488d-08bd-4ab2-8ca9-a86a31d9f8bd',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14991',
'x-ms-correlation-request-id': 'd124a16f-4c34-4b7c-ae7b-3d85d0a73d4a',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014704Z:d124a16f-4c34-4b7c-ae7b-3d85d0a73d4a',
date: 'Fri, 28 Oct 2016 01:47:03 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.put('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile3513/endpoints/cdnTestEndpoint1321?api-version=2016-10-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestEndpoint1321\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile3513/endpoints/cdnTestEndpoint1321\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint1321.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newakamainame\",\"properties\":{\r\n \"hostName\":\"newakamainame.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n {\r\n \"relativePath\":\"/mypicture\",\"action\":\"Block\",\"countryCodes\":[\r\n \"AT\"\r\n ]\r\n }\r\n ]\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '1010',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'retry-after': '10',
'x-ms-request-id': 'b4cabf09-f95f-4d72-be04-044755bf8891',
'x-ms-client-request-id': '943e3524-4058-410e-addc-2bf1546c8fa9',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/fe8ad495-a25a-4bce-9989-59fac67ee835?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': 'ba015475-efa6-47da-8f3c-40a60e0c12ed',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014707Z:ba015475-efa6-47da-8f3c-40a60e0c12ed',
date: 'Fri, 28 Oct 2016 01:47:07 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.put('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile3513/endpoints/cdnTestEndpoint1321?api-version=2016-10-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestEndpoint1321\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile3513/endpoints/cdnTestEndpoint1321\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint1321.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newakamainame\",\"properties\":{\r\n \"hostName\":\"newakamainame.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n {\r\n \"relativePath\":\"/mypicture\",\"action\":\"Block\",\"countryCodes\":[\r\n \"AT\"\r\n ]\r\n }\r\n ]\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '1010',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'retry-after': '10',
'x-ms-request-id': 'b4cabf09-f95f-4d72-be04-044755bf8891',
'x-ms-client-request-id': '943e3524-4058-410e-addc-2bf1546c8fa9',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/fe8ad495-a25a-4bce-9989-59fac67ee835?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': 'ba015475-efa6-47da-8f3c-40a60e0c12ed',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014707Z:ba015475-efa6-47da-8f3c-40a60e0c12ed',
date: 'Fri, 28 Oct 2016 01:47:07 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/fe8ad495-a25a-4bce-9989-59fac67ee835?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '04a39b8b-3fc8-48bb-ae0d-46701e04f5d4',
'x-ms-client-request-id': '7f738a94-1d67-4de0-98a0-acacad2855b7',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14998',
'x-ms-correlation-request-id': 'e8dcd5a3-a477-401f-a109-f081c9a3b348',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014738Z:e8dcd5a3-a477-401f-a109-f081c9a3b348',
date: 'Fri, 28 Oct 2016 01:47:37 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/fe8ad495-a25a-4bce-9989-59fac67ee835?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '04a39b8b-3fc8-48bb-ae0d-46701e04f5d4',
'x-ms-client-request-id': '7f738a94-1d67-4de0-98a0-acacad2855b7',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14998',
'x-ms-correlation-request-id': 'e8dcd5a3-a477-401f-a109-f081c9a3b348',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014738Z:e8dcd5a3-a477-401f-a109-f081c9a3b348',
date: 'Fri, 28 Oct 2016 01:47:37 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile3513/endpoints/cdnTestEndpoint1321?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint1321\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile3513/endpoints/cdnTestEndpoint1321\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint1321.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newakamainame\",\"properties\":{\r\n \"hostName\":\"newakamainame.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n {\r\n \"relativePath\":\"/mypicture\",\"action\":\"Block\",\"countryCodes\":[\r\n \"AT\"\r\n ]\r\n }\r\n ]\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '1010',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '1cf8cf7c-2424-42b4-a09a-ed0dc078dc00',
'x-ms-client-request-id': '5fca7667-9375-4404-9f9c-8cd3eeb46ce1',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': '3fb1e887-4bca-4ce4-b63c-9e038196a67b',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014738Z:3fb1e887-4bca-4ce4-b63c-9e038196a67b',
date: 'Fri, 28 Oct 2016 01:47:38 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile3513/endpoints/cdnTestEndpoint1321?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint1321\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile3513/endpoints/cdnTestEndpoint1321\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint1321.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newakamainame\",\"properties\":{\r\n \"hostName\":\"newakamainame.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n {\r\n \"relativePath\":\"/mypicture\",\"action\":\"Block\",\"countryCodes\":[\r\n \"AT\"\r\n ]\r\n }\r\n ]\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '1010',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '1cf8cf7c-2424-42b4-a09a-ed0dc078dc00',
'x-ms-client-request-id': '5fca7667-9375-4404-9f9c-8cd3eeb46ce1',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': '3fb1e887-4bca-4ce4-b63c-9e038196a67b',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014738Z:3fb1e887-4bca-4ce4-b63c-9e038196a67b',
date: 'Fri, 28 Oct 2016 01:47:38 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,144 +2,144 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.put('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618?api-version=2016-04-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestEndpoint8618\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint8618.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n }\r\n}", { 'cache-control': 'no-cache',
.put('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987?api-version=2016-10-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestEndpoint4987\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint4987.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '802',
'content-length': '890',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'retry-after': '10',
'x-ms-request-id': '1bcc47b6-3b29-4b3a-9048-8e71b031bb1b',
'x-ms-client-request-id': 'a54fea96-b693-4f2d-bcca-17a6ca4a53e7',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/cd8d628e-4609-4464-89f0-06ca6d904598?api-version=2016-04-02',
'x-ms-request-id': 'b3125db0-4296-4edd-b3ec-95d9a6bcae3b',
'x-ms-client-request-id': 'f50f59a9-ceef-408b-8ff2-96caabde7e88',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/aa24e56c-ddf2-41a0-bd81-0294bb18a0d4?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': '29e3bb35-d380-4033-bcfa-f83c9ab2cec1',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224412Z:29e3bb35-d380-4033-bcfa-f83c9ab2cec1',
date: 'Wed, 11 May 2016 22:44:11 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '41f65b78-12f8-4ad8-ba1a-f98ca421674f',
'x-ms-routing-request-id': 'WESTUS2:20161028T013904Z:41f65b78-12f8-4ad8-ba1a-f98ca421674f',
date: 'Fri, 28 Oct 2016 01:39:03 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.put('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618?api-version=2016-04-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestEndpoint8618\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint8618.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n }\r\n}", { 'cache-control': 'no-cache',
.put('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987?api-version=2016-10-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestEndpoint4987\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint4987.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Creating\",\"resourceState\":\"Creating\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '802',
'content-length': '890',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'retry-after': '10',
'x-ms-request-id': '1bcc47b6-3b29-4b3a-9048-8e71b031bb1b',
'x-ms-client-request-id': 'a54fea96-b693-4f2d-bcca-17a6ca4a53e7',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/cd8d628e-4609-4464-89f0-06ca6d904598?api-version=2016-04-02',
'x-ms-request-id': 'b3125db0-4296-4edd-b3ec-95d9a6bcae3b',
'x-ms-client-request-id': 'f50f59a9-ceef-408b-8ff2-96caabde7e88',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/aa24e56c-ddf2-41a0-bd81-0294bb18a0d4?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': '29e3bb35-d380-4033-bcfa-f83c9ab2cec1',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224412Z:29e3bb35-d380-4033-bcfa-f83c9ab2cec1',
date: 'Wed, 11 May 2016 22:44:11 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '41f65b78-12f8-4ad8-ba1a-f98ca421674f',
'x-ms-routing-request-id': 'WESTUS2:20161028T013904Z:41f65b78-12f8-4ad8-ba1a-f98ca421674f',
date: 'Fri, 28 Oct 2016 01:39:03 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/cd8d628e-4609-4464-89f0-06ca6d904598?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/aa24e56c-ddf2-41a0-bd81-0294bb18a0d4?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '2b1ee5cf-b47f-451b-9abe-0b6c2d847656',
'x-ms-client-request-id': 'f78fa4c7-1eba-4adc-936b-cc1417f2d9c9',
'x-ms-request-id': 'f0a89ca4-6185-4c2e-bdad-5249a0d0b54f',
'x-ms-client-request-id': '89c76325-9776-44a2-b00b-34f6a5cb6061',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14995',
'x-ms-correlation-request-id': '9f3551e6-7b4a-45d0-9293-eba0a6391b85',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224442Z:9f3551e6-7b4a-45d0-9293-eba0a6391b85',
date: 'Wed, 11 May 2016 22:44:42 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14990',
'x-ms-correlation-request-id': '34ce99b5-80dc-478b-b879-f8a34bc8b52f',
'x-ms-routing-request-id': 'WESTUS2:20161028T013935Z:34ce99b5-80dc-478b-b879-f8a34bc8b52f',
date: 'Fri, 28 Oct 2016 01:39:35 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/cd8d628e-4609-4464-89f0-06ca6d904598?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/aa24e56c-ddf2-41a0-bd81-0294bb18a0d4?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '2b1ee5cf-b47f-451b-9abe-0b6c2d847656',
'x-ms-client-request-id': 'f78fa4c7-1eba-4adc-936b-cc1417f2d9c9',
'x-ms-request-id': 'f0a89ca4-6185-4c2e-bdad-5249a0d0b54f',
'x-ms-client-request-id': '89c76325-9776-44a2-b00b-34f6a5cb6061',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14995',
'x-ms-correlation-request-id': '9f3551e6-7b4a-45d0-9293-eba0a6391b85',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224442Z:9f3551e6-7b4a-45d0-9293-eba0a6391b85',
date: 'Wed, 11 May 2016 22:44:42 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14990',
'x-ms-correlation-request-id': '34ce99b5-80dc-478b-b879-f8a34bc8b52f',
'x-ms-routing-request-id': 'WESTUS2:20161028T013935Z:34ce99b5-80dc-478b-b879-f8a34bc8b52f',
date: 'Fri, 28 Oct 2016 01:39:35 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618?api-version=2016-04-02')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint8618\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint8618.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n }\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint4987\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint4987.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '802',
'content-length': '890',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'e969cc31-4a00-4d77-be62-758d82435468',
'x-ms-client-request-id': 'cef6966d-220a-4ddb-8119-cbb602f1c163',
'x-ms-request-id': '24800b37-56ba-48d3-8033-94de1dd1bc75',
'x-ms-client-request-id': '4d7fcf04-8586-4c94-bdaa-c39bdc0c3ab0',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': '87d4c74f-4630-420c-a0cb-b0ce63d86b3c',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224443Z:87d4c74f-4630-420c-a0cb-b0ce63d86b3c',
date: 'Wed, 11 May 2016 22:44:42 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': 'a69b410a-47a6-4894-ab58-9fcfb3110a8b',
'x-ms-routing-request-id': 'WESTUS2:20161028T013936Z:a69b410a-47a6-4894-ab58-9fcfb3110a8b',
date: 'Fri, 28 Oct 2016 01:39:35 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618?api-version=2016-04-02')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint8618\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint8618.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n }\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint4987\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint4987.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '802',
'content-length': '890',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'e969cc31-4a00-4d77-be62-758d82435468',
'x-ms-client-request-id': 'cef6966d-220a-4ddb-8119-cbb602f1c163',
'x-ms-request-id': '24800b37-56ba-48d3-8033-94de1dd1bc75',
'x-ms-client-request-id': '4d7fcf04-8586-4c94-bdaa-c39bdc0c3ab0',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': '87d4c74f-4630-420c-a0cb-b0ce63d86b3c',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224443Z:87d4c74f-4630-420c-a0cb-b0ce63d86b3c',
date: 'Wed, 11 May 2016 22:44:42 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': 'a69b410a-47a6-4894-ab58-9fcfb3110a8b',
'x-ms-routing-request-id': 'WESTUS2:20161028T013936Z:a69b410a-47a6-4894-ab58-9fcfb3110a8b',
date: 'Fri, 28 Oct 2016 01:39:35 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,50 +2,50 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618?api-version=2016-04-02')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint8618\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val2\",\"tag2\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint8618.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n }\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint4987\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val2\",\"tag2\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint4987.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '816',
'content-length': '904',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'd5739652-f79f-49d1-8580-46b8b7a59394',
'x-ms-client-request-id': '033578cf-3eab-43a9-aa9b-f6d95fa07d52',
'x-ms-request-id': '1e0ca11f-6eab-474e-8959-d1f45f8e4a8c',
'x-ms-client-request-id': '1c9b391d-507c-4afc-946f-b0cb681b9151',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14998',
'x-ms-correlation-request-id': '3de86250-1e47-4af3-8ff8-97563ea0c918',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224447Z:3de86250-1e47-4af3-8ff8-97563ea0c918',
date: 'Wed, 11 May 2016 22:44:47 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14987',
'x-ms-correlation-request-id': '43813415-6171-4c26-8429-955aca5ce6eb',
'x-ms-routing-request-id': 'WESTUS2:20161028T013940Z:43813415-6171-4c26-8429-955aca5ce6eb',
date: 'Fri, 28 Oct 2016 01:39:39 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618?api-version=2016-04-02')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint8618\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val2\",\"tag2\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint8618.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n }\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint4987\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val2\",\"tag2\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint4987.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '816',
'content-length': '904',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'd5739652-f79f-49d1-8580-46b8b7a59394',
'x-ms-client-request-id': '033578cf-3eab-43a9-aa9b-f6d95fa07d52',
'x-ms-request-id': '1e0ca11f-6eab-474e-8959-d1f45f8e4a8c',
'x-ms-client-request-id': '1c9b391d-507c-4afc-946f-b0cb681b9151',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14998',
'x-ms-correlation-request-id': '3de86250-1e47-4af3-8ff8-97563ea0c918',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224447Z:3de86250-1e47-4af3-8ff8-97563ea0c918',
date: 'Wed, 11 May 2016 22:44:47 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14987',
'x-ms-correlation-request-id': '43813415-6171-4c26-8429-955aca5ce6eb',
'x-ms-routing-request-id': 'WESTUS2:20161028T013940Z:43813415-6171-4c26-8429-955aca5ce6eb',
date: 'Fri, 28 Oct 2016 01:39:39 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,96 +2,96 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.delete('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618?api-version=2016-04-02')
.delete('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987?api-version=2016-10-02')
.reply(202, "", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '0',
expires: '-1',
location: 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/9f1aa983-522d-4d42-b841-5975a4cc6251/profileresults/cdnTestProfile3498/endpointresults/cdnTestEndpoint8618?api-version=2016-04-02',
location: 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/1b8da4e5-196c-42cb-af74-1599255d6bab/profileresults/cdnTestProfile6758/endpointresults/cdnTestEndpoint4987?api-version=2016-10-02',
'retry-after': '10',
'x-ms-request-id': '4c20e626-b61e-4688-a7f8-3a5dbd9dac5d',
'x-ms-client-request-id': '1055abd8-f721-4874-ac58-4029c43704aa',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/9f1aa983-522d-4d42-b841-5975a4cc6251?api-version=2016-04-02',
'x-ms-request-id': 'bfd2a713-f560-499e-a2e9-c72e5607e1a5',
'x-ms-client-request-id': '530679b9-76e3-428f-b0a7-6190124efa37',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/1b8da4e5-196c-42cb-af74-1599255d6bab?api-version=2016-10-02',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': 'e8aada80-3a86-4c07-a71e-a5a3f673bf2f',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224804Z:e8aada80-3a86-4c07-a71e-a5a3f673bf2f',
date: 'Wed, 11 May 2016 22:48:04 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1196',
'x-ms-correlation-request-id': '94f76dcf-11a2-4571-a64f-25adebeee175',
'x-ms-routing-request-id': 'WESTUS2:20161028T014559Z:94f76dcf-11a2-4571-a64f-25adebeee175',
date: 'Fri, 28 Oct 2016 01:45:58 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.delete('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618?api-version=2016-04-02')
.delete('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987?api-version=2016-10-02')
.reply(202, "", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '0',
expires: '-1',
location: 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/9f1aa983-522d-4d42-b841-5975a4cc6251/profileresults/cdnTestProfile3498/endpointresults/cdnTestEndpoint8618?api-version=2016-04-02',
location: 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/1b8da4e5-196c-42cb-af74-1599255d6bab/profileresults/cdnTestProfile6758/endpointresults/cdnTestEndpoint4987?api-version=2016-10-02',
'retry-after': '10',
'x-ms-request-id': '4c20e626-b61e-4688-a7f8-3a5dbd9dac5d',
'x-ms-client-request-id': '1055abd8-f721-4874-ac58-4029c43704aa',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/9f1aa983-522d-4d42-b841-5975a4cc6251?api-version=2016-04-02',
'x-ms-request-id': 'bfd2a713-f560-499e-a2e9-c72e5607e1a5',
'x-ms-client-request-id': '530679b9-76e3-428f-b0a7-6190124efa37',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/1b8da4e5-196c-42cb-af74-1599255d6bab?api-version=2016-10-02',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': 'e8aada80-3a86-4c07-a71e-a5a3f673bf2f',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224804Z:e8aada80-3a86-4c07-a71e-a5a3f673bf2f',
date: 'Wed, 11 May 2016 22:48:04 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1196',
'x-ms-correlation-request-id': '94f76dcf-11a2-4571-a64f-25adebeee175',
'x-ms-routing-request-id': 'WESTUS2:20161028T014559Z:94f76dcf-11a2-4571-a64f-25adebeee175',
date: 'Fri, 28 Oct 2016 01:45:58 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/9f1aa983-522d-4d42-b841-5975a4cc6251?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/1b8da4e5-196c-42cb-af74-1599255d6bab?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'aa7e7a9c-e9ac-4d66-9e74-15b0ece4f5f1',
'x-ms-client-request-id': 'bdebe36a-121b-432e-8dae-73a7bc0d60b7',
'x-ms-request-id': 'feb1cc10-ccd0-4de8-a2d0-a684280bd972',
'x-ms-client-request-id': '2f833399-7813-42cd-9b1d-3e955766005d',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': '48a63b96-766f-41fc-b418-32fad1661084',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224834Z:48a63b96-766f-41fc-b418-32fad1661084',
date: 'Wed, 11 May 2016 22:48:33 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': 'ab32c371-a470-44ec-88cc-627b79ad2ef8',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014630Z:ab32c371-a470-44ec-88cc-627b79ad2ef8',
date: 'Fri, 28 Oct 2016 01:46:29 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/9f1aa983-522d-4d42-b841-5975a4cc6251?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/1b8da4e5-196c-42cb-af74-1599255d6bab?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'aa7e7a9c-e9ac-4d66-9e74-15b0ece4f5f1',
'x-ms-client-request-id': 'bdebe36a-121b-432e-8dae-73a7bc0d60b7',
'x-ms-request-id': 'feb1cc10-ccd0-4de8-a2d0-a684280bd972',
'x-ms-client-request-id': '2f833399-7813-42cd-9b1d-3e955766005d',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': '48a63b96-766f-41fc-b418-32fad1661084',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224834Z:48a63b96-766f-41fc-b418-32fad1661084',
date: 'Wed, 11 May 2016 22:48:33 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': 'ab32c371-a470-44ec-88cc-627b79ad2ef8',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014630Z:ab32c371-a470-44ec-88cc-627b79ad2ef8',
date: 'Fri, 28 Oct 2016 01:46:29 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,7 +2,7 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[]];

Просмотреть файл

@ -2,52 +2,52 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618/load?api-version=2016-04-02', '*')
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987/load?api-version=2016-10-02', '*')
.reply(400, "{\r\n \"error\": {\r\n \"code\": \"BadRequest\",\r\n \"message\": \"The requested operation cannot be executed on the entity in the current state.\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '147',
'content-type': 'application/json; charset=utf-8',
'content-language': 'en-US',
expires: '-1',
'x-ms-request-id': '10d7137e-57d5-4800-9a1e-071f9f8732fa',
'x-ms-client-request-id': '3cd4a26e-73f2-4896-8ca0-9d3a50943616',
'x-ms-request-id': 'b66c7f45-4df5-46bf-858c-e68c747f4eed',
'x-ms-client-request-id': '49e8914b-5109-4177-8ce6-6124a40e9dd4',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': 'c07de669-aa77-440f-a73c-f28b2941447a',
'x-ms-routing-request-id': 'WESTUS:20160511T224729Z:c07de669-aa77-440f-a73c-f28b2941447a',
date: 'Wed, 11 May 2016 22:47:29 GMT',
'x-ms-correlation-request-id': 'bfa58c18-8a86-427e-bd1f-4f0008861c70',
'x-ms-routing-request-id': 'WESTUS2:20161028T014525Z:bfa58c18-8a86-427e-bd1f-4f0008861c70',
date: 'Fri, 28 Oct 2016 01:45:24 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618/load?api-version=2016-04-02', '*')
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987/load?api-version=2016-10-02', '*')
.reply(400, "{\r\n \"error\": {\r\n \"code\": \"BadRequest\",\r\n \"message\": \"The requested operation cannot be executed on the entity in the current state.\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '147',
'content-type': 'application/json; charset=utf-8',
'content-language': 'en-US',
expires: '-1',
'x-ms-request-id': '10d7137e-57d5-4800-9a1e-071f9f8732fa',
'x-ms-client-request-id': '3cd4a26e-73f2-4896-8ca0-9d3a50943616',
'x-ms-request-id': 'b66c7f45-4df5-46bf-858c-e68c747f4eed',
'x-ms-client-request-id': '49e8914b-5109-4177-8ce6-6124a40e9dd4',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': 'c07de669-aa77-440f-a73c-f28b2941447a',
'x-ms-routing-request-id': 'WESTUS:20160511T224729Z:c07de669-aa77-440f-a73c-f28b2941447a',
date: 'Wed, 11 May 2016 22:47:29 GMT',
'x-ms-correlation-request-id': 'bfa58c18-8a86-427e-bd1f-4f0008861c70',
'x-ms-routing-request-id': 'WESTUS2:20161028T014525Z:bfa58c18-8a86-427e-bd1f-4f0008861c70',
date: 'Fri, 28 Oct 2016 01:45:24 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,52 +2,52 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618/purge?api-version=2016-04-02', '*')
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987/purge?api-version=2016-10-02', '*')
.reply(400, "{\r\n \"error\": {\r\n \"code\": \"BadRequest\",\r\n \"message\": \"The requested operation cannot be executed on the entity in the current state.\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '147',
'content-type': 'application/json; charset=utf-8',
'content-language': 'en-US',
expires: '-1',
'x-ms-request-id': '35da5c7b-a666-42d5-8bd7-5e22ee6af72e',
'x-ms-client-request-id': '229338e1-f559-4876-8415-163e18b6132d',
'x-ms-request-id': '51768272-f2fe-456d-bade-08c633c9b300',
'x-ms-client-request-id': '27ad9295-2ecc-44cc-bde3-0369f84c1099',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '2cad4cb7-98c5-44f8-88f8-1feb91eec620',
'x-ms-routing-request-id': 'WESTUS:20160511T224728Z:2cad4cb7-98c5-44f8-88f8-1feb91eec620',
date: 'Wed, 11 May 2016 22:47:28 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': '210d0f20-c4d5-4eb7-affe-9e8c7598e5d1',
'x-ms-routing-request-id': 'WESTUS2:20161028T014524Z:210d0f20-c4d5-4eb7-affe-9e8c7598e5d1',
date: 'Fri, 28 Oct 2016 01:45:23 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618/purge?api-version=2016-04-02', '*')
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987/purge?api-version=2016-10-02', '*')
.reply(400, "{\r\n \"error\": {\r\n \"code\": \"BadRequest\",\r\n \"message\": \"The requested operation cannot be executed on the entity in the current state.\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '147',
'content-type': 'application/json; charset=utf-8',
'content-language': 'en-US',
expires: '-1',
'x-ms-request-id': '35da5c7b-a666-42d5-8bd7-5e22ee6af72e',
'x-ms-client-request-id': '229338e1-f559-4876-8415-163e18b6132d',
'x-ms-request-id': '51768272-f2fe-456d-bade-08c633c9b300',
'x-ms-client-request-id': '27ad9295-2ecc-44cc-bde3-0369f84c1099',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '2cad4cb7-98c5-44f8-88f8-1feb91eec620',
'x-ms-routing-request-id': 'WESTUS:20160511T224728Z:2cad4cb7-98c5-44f8-88f8-1feb91eec620',
date: 'Wed, 11 May 2016 22:47:28 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': '210d0f20-c4d5-4eb7-affe-9e8c7598e5d1',
'x-ms-routing-request-id': 'WESTUS2:20161028T014524Z:210d0f20-c4d5-4eb7-affe-9e8c7598e5d1',
date: 'Fri, 28 Oct 2016 01:45:23 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,42 +2,42 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/someFakeEndpoint/load?api-version=2016-04-02', '*')
.reply(404, "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource 'Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/someFakeEndpoint' under resource group 'cdnTestGroup107' was not found.\"}}", { 'cache-control': 'no-cache',
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/someFakeEndpoint/load?api-version=2016-10-02', '*')
.reply(404, "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource 'Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/someFakeEndpoint' under resource group 'cdnTestGroup2266' was not found.\"}}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-type': 'application/json; charset=utf-8',
expires: '-1',
'x-ms-failure-cause': 'gateway',
'x-ms-request-id': '37165423-3275-4d1d-b830-3723c0d0f1e9',
'x-ms-correlation-request-id': '37165423-3275-4d1d-b830-3723c0d0f1e9',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224654Z:37165423-3275-4d1d-b830-3723c0d0f1e9',
'x-ms-request-id': '2546c958-32a1-4398-8922-aa6e978749a5',
'x-ms-correlation-request-id': '2546c958-32a1-4398-8922-aa6e978749a5',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014450Z:2546c958-32a1-4398-8922-aa6e978749a5',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
date: 'Wed, 11 May 2016 22:46:53 GMT',
date: 'Fri, 28 Oct 2016 01:44:49 GMT',
connection: 'close',
'content-length': '187' });
'content-length': '188' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/someFakeEndpoint/load?api-version=2016-04-02', '*')
.reply(404, "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource 'Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/someFakeEndpoint' under resource group 'cdnTestGroup107' was not found.\"}}", { 'cache-control': 'no-cache',
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/someFakeEndpoint/load?api-version=2016-10-02', '*')
.reply(404, "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource 'Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/someFakeEndpoint' under resource group 'cdnTestGroup2266' was not found.\"}}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-type': 'application/json; charset=utf-8',
expires: '-1',
'x-ms-failure-cause': 'gateway',
'x-ms-request-id': '37165423-3275-4d1d-b830-3723c0d0f1e9',
'x-ms-correlation-request-id': '37165423-3275-4d1d-b830-3723c0d0f1e9',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224654Z:37165423-3275-4d1d-b830-3723c0d0f1e9',
'x-ms-request-id': '2546c958-32a1-4398-8922-aa6e978749a5',
'x-ms-correlation-request-id': '2546c958-32a1-4398-8922-aa6e978749a5',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014450Z:2546c958-32a1-4398-8922-aa6e978749a5',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
date: 'Wed, 11 May 2016 22:46:53 GMT',
date: 'Fri, 28 Oct 2016 01:44:49 GMT',
connection: 'close',
'content-length': '187' });
'content-length': '188' });
return result; }]];

Просмотреть файл

@ -2,52 +2,52 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618/load?api-version=2016-04-02', '*')
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987/load?api-version=2016-10-02', '*')
.reply(400, "{\r\n \"error\": {\r\n \"code\": \"BadRequest\",\r\n \"message\": \"Invalid ContentPath \\\"/movies/*\\\". ContentPath for load action must be a relative path for a single resource \\\"/path/pic.jpg\\\".\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '196',
'content-type': 'application/json; charset=utf-8',
'content-language': 'en-US',
expires: '-1',
'x-ms-request-id': '1f574b62-01b0-4b21-bd79-8e892cfed824',
'x-ms-client-request-id': 'ba98823d-111a-4db7-bfee-3413b508cd0e',
'x-ms-request-id': '0d509f38-7999-470a-881c-08932994b701',
'x-ms-client-request-id': 'ce6ed68e-5a5e-4364-bac2-d51015968e8e',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-correlation-request-id': 'db4a8300-076c-4711-bbad-a026a5c532b9',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224654Z:db4a8300-076c-4711-bbad-a026a5c532b9',
date: 'Wed, 11 May 2016 22:46:54 GMT',
'x-ms-correlation-request-id': '90232098-edb0-4955-b248-44d7017880b9',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014450Z:90232098-edb0-4955-b248-44d7017880b9',
date: 'Fri, 28 Oct 2016 01:44:50 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618/load?api-version=2016-04-02', '*')
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987/load?api-version=2016-10-02', '*')
.reply(400, "{\r\n \"error\": {\r\n \"code\": \"BadRequest\",\r\n \"message\": \"Invalid ContentPath \\\"/movies/*\\\". ContentPath for load action must be a relative path for a single resource \\\"/path/pic.jpg\\\".\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '196',
'content-type': 'application/json; charset=utf-8',
'content-language': 'en-US',
expires: '-1',
'x-ms-request-id': '1f574b62-01b0-4b21-bd79-8e892cfed824',
'x-ms-client-request-id': 'ba98823d-111a-4db7-bfee-3413b508cd0e',
'x-ms-request-id': '0d509f38-7999-470a-881c-08932994b701',
'x-ms-client-request-id': 'ce6ed68e-5a5e-4364-bac2-d51015968e8e',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-correlation-request-id': 'db4a8300-076c-4711-bbad-a026a5c532b9',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224654Z:db4a8300-076c-4711-bbad-a026a5c532b9',
date: 'Wed, 11 May 2016 22:46:54 GMT',
'x-ms-correlation-request-id': '90232098-edb0-4955-b248-44d7017880b9',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014450Z:90232098-edb0-4955-b248-44d7017880b9',
date: 'Fri, 28 Oct 2016 01:44:50 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,52 +2,52 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618/purge?api-version=2016-04-02', '*')
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987/purge?api-version=2016-10-02', '*')
.reply(400, "{\r\n \"error\": {\r\n \"code\": \"BadRequest\",\r\n \"message\": \"Invalid ContentPath \\\"invalidPath!\\\". ContentPath for purge action must be a relative path: either for a single resource \\\"/path/pic.jpg\\\" or a wild card \\\"/path/*\\\".\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '235',
'content-type': 'application/json; charset=utf-8',
'content-language': 'en-US',
expires: '-1',
'x-ms-request-id': '137362ca-6402-4ebe-a97d-591d4c6a1cf8',
'x-ms-client-request-id': '3ba7d98a-a522-4fb1-b5f4-2ee931692e67',
'x-ms-request-id': 'd94d562a-6db7-4cfd-a8aa-14251b0725b2',
'x-ms-client-request-id': '7f1f963d-f6ec-4d30-8020-96a76a0e3195',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '8e840fed-03a9-4481-8fc8-c41554002077',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224622Z:8e840fed-03a9-4481-8fc8-c41554002077',
date: 'Wed, 11 May 2016 22:46:21 GMT',
'x-ms-correlation-request-id': '22afbecb-1cca-479a-a21a-13b34d11e7a2',
'x-ms-routing-request-id': 'WESTUS2:20161028T014114Z:22afbecb-1cca-479a-a21a-13b34d11e7a2',
date: 'Fri, 28 Oct 2016 01:41:13 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618/purge?api-version=2016-04-02', '*')
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987/purge?api-version=2016-10-02', '*')
.reply(400, "{\r\n \"error\": {\r\n \"code\": \"BadRequest\",\r\n \"message\": \"Invalid ContentPath \\\"invalidPath!\\\". ContentPath for purge action must be a relative path: either for a single resource \\\"/path/pic.jpg\\\" or a wild card \\\"/path/*\\\".\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '235',
'content-type': 'application/json; charset=utf-8',
'content-language': 'en-US',
expires: '-1',
'x-ms-request-id': '137362ca-6402-4ebe-a97d-591d4c6a1cf8',
'x-ms-client-request-id': '3ba7d98a-a522-4fb1-b5f4-2ee931692e67',
'x-ms-request-id': 'd94d562a-6db7-4cfd-a8aa-14251b0725b2',
'x-ms-client-request-id': '7f1f963d-f6ec-4d30-8020-96a76a0e3195',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '8e840fed-03a9-4481-8fc8-c41554002077',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224622Z:8e840fed-03a9-4481-8fc8-c41554002077',
date: 'Wed, 11 May 2016 22:46:21 GMT',
'x-ms-correlation-request-id': '22afbecb-1cca-479a-a21a-13b34d11e7a2',
'x-ms-routing-request-id': 'WESTUS2:20161028T014114Z:22afbecb-1cca-479a-a21a-13b34d11e7a2',
date: 'Fri, 28 Oct 2016 01:41:13 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,42 +2,42 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/someFakeEndpoint/purge?api-version=2016-04-02', '*')
.reply(404, "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource 'Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/someFakeEndpoint' under resource group 'cdnTestGroup107' was not found.\"}}", { 'cache-control': 'no-cache',
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/someFakeEndpoint/purge?api-version=2016-10-02', '*')
.reply(404, "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource 'Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/someFakeEndpoint' under resource group 'cdnTestGroup2266' was not found.\"}}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-type': 'application/json; charset=utf-8',
expires: '-1',
'x-ms-failure-cause': 'gateway',
'x-ms-request-id': 'bfd273c9-2357-40a8-a879-1e7f6049d298',
'x-ms-correlation-request-id': 'bfd273c9-2357-40a8-a879-1e7f6049d298',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224621Z:bfd273c9-2357-40a8-a879-1e7f6049d298',
'x-ms-request-id': '65af945a-4e51-46e8-84c8-fc5d7df82473',
'x-ms-correlation-request-id': '65af945a-4e51-46e8-84c8-fc5d7df82473',
'x-ms-routing-request-id': 'WESTUS2:20161028T014113Z:65af945a-4e51-46e8-84c8-fc5d7df82473',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
date: 'Wed, 11 May 2016 22:46:20 GMT',
date: 'Fri, 28 Oct 2016 01:41:13 GMT',
connection: 'close',
'content-length': '187' });
'content-length': '188' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/someFakeEndpoint/purge?api-version=2016-04-02', '*')
.reply(404, "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource 'Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/someFakeEndpoint' under resource group 'cdnTestGroup107' was not found.\"}}", { 'cache-control': 'no-cache',
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/someFakeEndpoint/purge?api-version=2016-10-02', '*')
.reply(404, "{\"error\":{\"code\":\"ResourceNotFound\",\"message\":\"The Resource 'Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/someFakeEndpoint' under resource group 'cdnTestGroup2266' was not found.\"}}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-type': 'application/json; charset=utf-8',
expires: '-1',
'x-ms-failure-cause': 'gateway',
'x-ms-request-id': 'bfd273c9-2357-40a8-a879-1e7f6049d298',
'x-ms-correlation-request-id': 'bfd273c9-2357-40a8-a879-1e7f6049d298',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224621Z:bfd273c9-2357-40a8-a879-1e7f6049d298',
'x-ms-request-id': '65af945a-4e51-46e8-84c8-fc5d7df82473',
'x-ms-correlation-request-id': '65af945a-4e51-46e8-84c8-fc5d7df82473',
'x-ms-routing-request-id': 'WESTUS2:20161028T014113Z:65af945a-4e51-46e8-84c8-fc5d7df82473',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
date: 'Wed, 11 May 2016 22:46:20 GMT',
date: 'Fri, 28 Oct 2016 01:41:13 GMT',
connection: 'close',
'content-length': '187' });
'content-length': '188' });
return result; }]];

Просмотреть файл

@ -2,188 +2,232 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.put('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498?api-version=2016-04-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestProfile3498\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n }\r\n}", { 'cache-control': 'no-cache',
.put('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758?api-version=2016-10-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestProfile6758\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '403',
'content-length': '404',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'retry-after': '10',
'x-ms-request-id': '4cafb140-3b41-4dc6-8460-4fe4b54407bf',
'x-ms-client-request-id': '82c4c6d1-c95d-4de1-80ed-5acf76af94c5',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/4190c7df-6cbe-4e53-808a-3521320facc9?api-version=2016-04-02',
'x-ms-request-id': '4aacff37-5393-44c3-af63-c62eaf37ecd0',
'x-ms-client-request-id': '58f41125-af8d-447d-8f10-096c79f62bb2',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/8906dcd3-9c42-4181-bd2f-569a65ba1e8d?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': 'f1f0a2a5-2fa3-4523-9242-bd55bb6ed92a',
'x-ms-routing-request-id': 'WESTUS:20160511T224337Z:f1f0a2a5-2fa3-4523-9242-bd55bb6ed92a',
date: 'Wed, 11 May 2016 22:43:37 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-correlation-request-id': 'ed4cf122-f99e-44f5-a599-52a4d6e30e01',
'x-ms-routing-request-id': 'CENTRALUS:20161028T013759Z:ed4cf122-f99e-44f5-a599-52a4d6e30e01',
date: 'Fri, 28 Oct 2016 01:37:59 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.put('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498?api-version=2016-04-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestProfile3498\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n }\r\n}", { 'cache-control': 'no-cache',
.put('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758?api-version=2016-10-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestProfile6758\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '403',
'content-length': '404',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'retry-after': '10',
'x-ms-request-id': '4cafb140-3b41-4dc6-8460-4fe4b54407bf',
'x-ms-client-request-id': '82c4c6d1-c95d-4de1-80ed-5acf76af94c5',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/4190c7df-6cbe-4e53-808a-3521320facc9?api-version=2016-04-02',
'x-ms-request-id': '4aacff37-5393-44c3-af63-c62eaf37ecd0',
'x-ms-client-request-id': '58f41125-af8d-447d-8f10-096c79f62bb2',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/8906dcd3-9c42-4181-bd2f-569a65ba1e8d?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': 'f1f0a2a5-2fa3-4523-9242-bd55bb6ed92a',
'x-ms-routing-request-id': 'WESTUS:20160511T224337Z:f1f0a2a5-2fa3-4523-9242-bd55bb6ed92a',
date: 'Wed, 11 May 2016 22:43:37 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-correlation-request-id': 'ed4cf122-f99e-44f5-a599-52a4d6e30e01',
'x-ms-routing-request-id': 'CENTRALUS:20161028T013759Z:ed4cf122-f99e-44f5-a599-52a4d6e30e01',
date: 'Fri, 28 Oct 2016 01:37:59 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/4190c7df-6cbe-4e53-808a-3521320facc9?api-version=2016-04-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/8906dcd3-9c42-4181-bd2f-569a65ba1e8d?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-length': '78',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '4a260814-df3e-49fe-9a5f-5da58814af75',
'x-ms-client-request-id': '0a2b611a-5998-4624-90c8-9b7a2bf90966',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14995',
'x-ms-correlation-request-id': 'f0988174-bf76-4f63-86a7-091fe8b74bb7',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224408Z:f0988174-bf76-4f63-86a7-091fe8b74bb7',
date: 'Wed, 11 May 2016 22:44:08 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/4190c7df-6cbe-4e53-808a-3521320facc9?api-version=2016-04-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '4a260814-df3e-49fe-9a5f-5da58814af75',
'x-ms-client-request-id': '0a2b611a-5998-4624-90c8-9b7a2bf90966',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14995',
'x-ms-correlation-request-id': 'f0988174-bf76-4f63-86a7-091fe8b74bb7',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224408Z:f0988174-bf76-4f63-86a7-091fe8b74bb7',
date: 'Wed, 11 May 2016 22:44:08 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498?api-version=2016-04-02')
.reply(200, "{\r\n \"name\":\"cdnTestProfile3498\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '402',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'a2359b24-af59-4f56-99a5-318b36b11769',
'x-ms-client-request-id': '781b3364-ea13-449c-a7c0-2e1a84593bdf',
'x-ms-request-id': 'c260ae6a-4122-4c29-b1a8-96ac8a61af49',
'x-ms-client-request-id': '828e8ddb-712a-4622-9d95-43e43ac9210f',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': '6fb9cb71-c428-4521-9da5-e22dc28595ab',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224408Z:6fb9cb71-c428-4521-9da5-e22dc28595ab',
date: 'Wed, 11 May 2016 22:44:08 GMT',
'x-ms-correlation-request-id': '4e60bc65-02c4-4444-bd13-893943ab8b70',
'x-ms-routing-request-id': 'CENTRALUS:20161028T013830Z:4e60bc65-02c4-4444-bd13-893943ab8b70',
date: 'Fri, 28 Oct 2016 01:38:30 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498?api-version=2016-04-02')
.reply(200, "{\r\n \"name\":\"cdnTestProfile3498\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/8906dcd3-9c42-4181-bd2f-569a65ba1e8d?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '402',
'content-length': '78',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'a2359b24-af59-4f56-99a5-318b36b11769',
'x-ms-client-request-id': '781b3364-ea13-449c-a7c0-2e1a84593bdf',
'x-ms-request-id': 'c260ae6a-4122-4c29-b1a8-96ac8a61af49',
'x-ms-client-request-id': '828e8ddb-712a-4622-9d95-43e43ac9210f',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': '6fb9cb71-c428-4521-9da5-e22dc28595ab',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224408Z:6fb9cb71-c428-4521-9da5-e22dc28595ab',
date: 'Wed, 11 May 2016 22:44:08 GMT',
'x-ms-correlation-request-id': '4e60bc65-02c4-4444-bd13-893943ab8b70',
'x-ms-routing-request-id': 'CENTRALUS:20161028T013830Z:4e60bc65-02c4-4444-bd13-893943ab8b70',
date: 'Fri, 28 Oct 2016 01:38:30 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints?api-version=2016-04-02')
.reply(200, "{\r\n \"value\":[\r\n \r\n ]\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/8906dcd3-9c42-4181-bd2f-569a65ba1e8d?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '28',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '46f55c4a-3b5e-478a-a51e-acbc2711c495',
'x-ms-client-request-id': '8d174a3f-9a16-47a1-b60d-b2f3dc76f851',
'x-ms-request-id': 'b06628d7-f642-4296-9636-76f1d3f5d657',
'x-ms-client-request-id': '1fb18ba7-6288-4fb9-b1fa-e7ac9ef19c9f',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14998',
'x-ms-correlation-request-id': 'a1ba2998-d144-407a-9c20-e9f9ea252cf4',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224409Z:a1ba2998-d144-407a-9c20-e9f9ea252cf4',
date: 'Wed, 11 May 2016 22:44:09 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14995',
'x-ms-correlation-request-id': 'c140a162-ff7d-4cba-bc97-37674d11d778',
'x-ms-routing-request-id': 'WESTUS2:20161028T013901Z:c140a162-ff7d-4cba-bc97-37674d11d778',
date: 'Fri, 28 Oct 2016 01:39:00 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints?api-version=2016-04-02')
.reply(200, "{\r\n \"value\":[\r\n \r\n ]\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/8906dcd3-9c42-4181-bd2f-569a65ba1e8d?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '28',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '46f55c4a-3b5e-478a-a51e-acbc2711c495',
'x-ms-client-request-id': '8d174a3f-9a16-47a1-b60d-b2f3dc76f851',
'x-ms-request-id': 'b06628d7-f642-4296-9636-76f1d3f5d657',
'x-ms-client-request-id': '1fb18ba7-6288-4fb9-b1fa-e7ac9ef19c9f',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14998',
'x-ms-correlation-request-id': 'a1ba2998-d144-407a-9c20-e9f9ea252cf4',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224409Z:a1ba2998-d144-407a-9c20-e9f9ea252cf4',
date: 'Wed, 11 May 2016 22:44:09 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14995',
'x-ms-correlation-request-id': 'c140a162-ff7d-4cba-bc97-37674d11d778',
'x-ms-routing-request-id': 'WESTUS2:20161028T013901Z:c140a162-ff7d-4cba-bc97-37674d11d778',
date: 'Fri, 28 Oct 2016 01:39:00 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestProfile6758\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '403',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '160d9a8b-d519-497a-b447-08ff12599d79',
'x-ms-client-request-id': '4715c424-c0b1-4fd0-867d-7c15ec23552a',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': 'b3a79d51-d7a8-45f6-8761-ebe6024316f0',
'x-ms-routing-request-id': 'WESTUS2:20161028T013901Z:b3a79d51-d7a8-45f6-8761-ebe6024316f0',
date: 'Fri, 28 Oct 2016 01:39:00 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestProfile6758\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '403',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '160d9a8b-d519-497a-b447-08ff12599d79',
'x-ms-client-request-id': '4715c424-c0b1-4fd0-867d-7c15ec23552a',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': 'b3a79d51-d7a8-45f6-8761-ebe6024316f0',
'x-ms-routing-request-id': 'WESTUS2:20161028T013901Z:b3a79d51-d7a8-45f6-8761-ebe6024316f0',
date: 'Fri, 28 Oct 2016 01:39:00 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n \r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '28',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '5811e4b8-e114-40b3-8dad-ed2d6bef464f',
'x-ms-client-request-id': '7631bb08-a271-44f5-ba94-6768cde36944',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': '90bbdc83-2a1d-4fc8-843c-f8c207b78bcd',
'x-ms-routing-request-id': 'WESTUS2:20161028T013902Z:90bbdc83-2a1d-4fc8-843c-f8c207b78bcd',
date: 'Fri, 28 Oct 2016 01:39:01 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n \r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '28',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '5811e4b8-e114-40b3-8dad-ed2d6bef464f',
'x-ms-client-request-id': '7631bb08-a271-44f5-ba94-6768cde36944',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': '90bbdc83-2a1d-4fc8-843c-f8c207b78bcd',
'x-ms-routing-request-id': 'WESTUS2:20161028T013902Z:90bbdc83-2a1d-4fc8-843c-f8c207b78bcd',
date: 'Fri, 28 Oct 2016 01:39:01 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,50 +2,50 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints?api-version=2016-04-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestEndpoint8618\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint8618.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestEndpoint4987\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint4987.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '886',
'content-length': '990',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '3b6861e5-191e-4e13-b8a6-52e1f7d56d82',
'x-ms-client-request-id': '74a71772-b820-4972-87f9-73e36ceca7d8',
'x-ms-request-id': '3d099518-50c2-41cf-87bb-5cf559ee8bf0',
'x-ms-client-request-id': '386e53c8-b5c1-49ed-8f6c-079f39a6da59',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': 'e4fa39f7-cd19-4dac-86d4-3bd87a22b937',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224444Z:e4fa39f7-cd19-4dac-86d4-3bd87a22b937',
date: 'Wed, 11 May 2016 22:44:44 GMT',
'x-ms-correlation-request-id': '1594695a-687f-4308-90ee-73543a986c27',
'x-ms-routing-request-id': 'WESTUS2:20161028T013937Z:1594695a-687f-4308-90ee-73543a986c27',
date: 'Fri, 28 Oct 2016 01:39:36 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints?api-version=2016-04-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestEndpoint8618\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint8618.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestEndpoint4987\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint4987.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '886',
'content-length': '990',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '3b6861e5-191e-4e13-b8a6-52e1f7d56d82',
'x-ms-client-request-id': '74a71772-b820-4972-87f9-73e36ceca7d8',
'x-ms-request-id': '3d099518-50c2-41cf-87bb-5cf559ee8bf0',
'x-ms-client-request-id': '386e53c8-b5c1-49ed-8f6c-079f39a6da59',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': 'e4fa39f7-cd19-4dac-86d4-3bd87a22b937',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224444Z:e4fa39f7-cd19-4dac-86d4-3bd87a22b937',
date: 'Wed, 11 May 2016 22:44:44 GMT',
'x-ms-correlation-request-id': '1594695a-687f-4308-90ee-73543a986c27',
'x-ms-routing-request-id': 'WESTUS2:20161028T013937Z:1594695a-687f-4308-90ee-73543a986c27',
date: 'Fri, 28 Oct 2016 01:39:36 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,98 +2,362 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618/load?api-version=2016-04-02', '*')
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987/load?api-version=2016-10-02', '*')
.reply(202, "", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '0',
expires: '-1',
location: 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/42fb9cf0-723d-4ffc-8605-9ad55da7dc30/profileresults/cdnTestProfile3498/endpointresults/cdnTestEndpoint8618?api-version=2016-04-02',
location: 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/4e7c20c4-5399-41df-bbf3-fabb12c773b2/profileresults/cdnTestProfile6758/endpointresults/cdnTestEndpoint4987?api-version=2016-10-02',
'retry-after': '10',
'x-ms-request-id': '5543f92d-2b77-49d5-923b-320b1caea07f',
'x-ms-client-request-id': '41b739cc-6cc2-4671-ad88-fb2ef73572ee',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/42fb9cf0-723d-4ffc-8605-9ad55da7dc30?api-version=2016-04-02',
'x-ms-request-id': '0a9ad2d1-6105-4d06-8298-021f2b3dd17d',
'x-ms-client-request-id': 'a7c30282-287c-4e5b-a196-332fcbed4587',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/4e7c20c4-5399-41df-bbf3-fabb12c773b2?api-version=2016-10-02',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '81f10145-c135-41ce-91d9-968a9181d191',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224623Z:81f10145-c135-41ce-91d9-968a9181d191',
date: 'Wed, 11 May 2016 22:46:22 GMT',
'x-ms-correlation-request-id': 'd7d38e9b-613d-47a7-93e3-3fe36bc66150',
'x-ms-routing-request-id': 'WESTUS2:20161028T014115Z:d7d38e9b-613d-47a7-93e3-3fe36bc66150',
date: 'Fri, 28 Oct 2016 01:41:14 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618/load?api-version=2016-04-02', '*')
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987/load?api-version=2016-10-02', '*')
.reply(202, "", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '0',
expires: '-1',
location: 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/42fb9cf0-723d-4ffc-8605-9ad55da7dc30/profileresults/cdnTestProfile3498/endpointresults/cdnTestEndpoint8618?api-version=2016-04-02',
location: 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/4e7c20c4-5399-41df-bbf3-fabb12c773b2/profileresults/cdnTestProfile6758/endpointresults/cdnTestEndpoint4987?api-version=2016-10-02',
'retry-after': '10',
'x-ms-request-id': '5543f92d-2b77-49d5-923b-320b1caea07f',
'x-ms-client-request-id': '41b739cc-6cc2-4671-ad88-fb2ef73572ee',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/42fb9cf0-723d-4ffc-8605-9ad55da7dc30?api-version=2016-04-02',
'x-ms-request-id': '0a9ad2d1-6105-4d06-8298-021f2b3dd17d',
'x-ms-client-request-id': 'a7c30282-287c-4e5b-a196-332fcbed4587',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/4e7c20c4-5399-41df-bbf3-fabb12c773b2?api-version=2016-10-02',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '81f10145-c135-41ce-91d9-968a9181d191',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224623Z:81f10145-c135-41ce-91d9-968a9181d191',
date: 'Wed, 11 May 2016 22:46:22 GMT',
'x-ms-correlation-request-id': 'd7d38e9b-613d-47a7-93e3-3fe36bc66150',
'x-ms-routing-request-id': 'WESTUS2:20161028T014115Z:d7d38e9b-613d-47a7-93e3-3fe36bc66150',
date: 'Fri, 28 Oct 2016 01:41:14 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/42fb9cf0-723d-4ffc-8605-9ad55da7dc30?api-version=2016-04-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/4e7c20c4-5399-41df-bbf3-fabb12c773b2?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-length': '78',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '07d741fa-531b-48a5-8ea7-5675e354016f',
'x-ms-client-request-id': '27776c70-24da-45ad-b527-e8341ac79cb4',
'x-ms-request-id': 'fff5b195-96ea-4350-8b34-86baa3798c41',
'x-ms-client-request-id': '2c2c74c0-5262-43cc-b761-9e1bfe6cf549',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': '1e9c70ce-d607-4356-970a-e5a8e9c08128',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224653Z:1e9c70ce-d607-4356-970a-e5a8e9c08128',
date: 'Wed, 11 May 2016 22:46:53 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14993',
'x-ms-correlation-request-id': 'c109ab43-5e05-42fa-888d-fdb6d659d8df',
'x-ms-routing-request-id': 'WESTUS2:20161028T014145Z:c109ab43-5e05-42fa-888d-fdb6d659d8df',
date: 'Fri, 28 Oct 2016 01:41:45 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/42fb9cf0-723d-4ffc-8605-9ad55da7dc30?api-version=2016-04-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/4e7c20c4-5399-41df-bbf3-fabb12c773b2?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-length': '78',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '07d741fa-531b-48a5-8ea7-5675e354016f',
'x-ms-client-request-id': '27776c70-24da-45ad-b527-e8341ac79cb4',
'x-ms-request-id': 'fff5b195-96ea-4350-8b34-86baa3798c41',
'x-ms-client-request-id': '2c2c74c0-5262-43cc-b761-9e1bfe6cf549',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14993',
'x-ms-correlation-request-id': 'c109ab43-5e05-42fa-888d-fdb6d659d8df',
'x-ms-routing-request-id': 'WESTUS2:20161028T014145Z:c109ab43-5e05-42fa-888d-fdb6d659d8df',
date: 'Fri, 28 Oct 2016 01:41:45 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/4e7c20c4-5399-41df-bbf3-fabb12c773b2?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '78',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '749d27b3-1d0c-4f35-9274-ab8c86c575cd',
'x-ms-client-request-id': 'c0a96f5c-0c1f-43a0-b741-00ae8a4dcac4',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14993',
'x-ms-correlation-request-id': '11d55ebf-6795-47a4-accf-571d86ad0a08',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014216Z:11d55ebf-6795-47a4-accf-571d86ad0a08',
date: 'Fri, 28 Oct 2016 01:42:15 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/4e7c20c4-5399-41df-bbf3-fabb12c773b2?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '78',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '749d27b3-1d0c-4f35-9274-ab8c86c575cd',
'x-ms-client-request-id': 'c0a96f5c-0c1f-43a0-b741-00ae8a4dcac4',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14993',
'x-ms-correlation-request-id': '11d55ebf-6795-47a4-accf-571d86ad0a08',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014216Z:11d55ebf-6795-47a4-accf-571d86ad0a08',
date: 'Fri, 28 Oct 2016 01:42:15 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/4e7c20c4-5399-41df-bbf3-fabb12c773b2?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '78',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '708174b6-4da9-4c98-8a52-881824350b7d',
'x-ms-client-request-id': '32ba4c5f-9822-4e6a-ac2c-ef0269252170',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': '1e9c70ce-d607-4356-970a-e5a8e9c08128',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224653Z:1e9c70ce-d607-4356-970a-e5a8e9c08128',
date: 'Wed, 11 May 2016 22:46:53 GMT',
'x-ms-correlation-request-id': 'a9327413-a28a-4f64-a282-acc490a9519f',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014247Z:a9327413-a28a-4f64-a282-acc490a9519f',
date: 'Fri, 28 Oct 2016 01:42:46 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/4e7c20c4-5399-41df-bbf3-fabb12c773b2?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '78',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '708174b6-4da9-4c98-8a52-881824350b7d',
'x-ms-client-request-id': '32ba4c5f-9822-4e6a-ac2c-ef0269252170',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': 'a9327413-a28a-4f64-a282-acc490a9519f',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014247Z:a9327413-a28a-4f64-a282-acc490a9519f',
date: 'Fri, 28 Oct 2016 01:42:46 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/4e7c20c4-5399-41df-bbf3-fabb12c773b2?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '78',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'f30557d6-a4b8-4c74-937c-2e82b10e5a3a',
'x-ms-client-request-id': '081fa009-fbe9-40cd-9c3d-9c1498a5495f',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': 'f20c860c-d76c-4bbf-8ae7-53f0bd85b922',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014317Z:f20c860c-d76c-4bbf-8ae7-53f0bd85b922',
date: 'Fri, 28 Oct 2016 01:43:17 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/4e7c20c4-5399-41df-bbf3-fabb12c773b2?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '78',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'f30557d6-a4b8-4c74-937c-2e82b10e5a3a',
'x-ms-client-request-id': '081fa009-fbe9-40cd-9c3d-9c1498a5495f',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': 'f20c860c-d76c-4bbf-8ae7-53f0bd85b922',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014317Z:f20c860c-d76c-4bbf-8ae7-53f0bd85b922',
date: 'Fri, 28 Oct 2016 01:43:17 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/4e7c20c4-5399-41df-bbf3-fabb12c773b2?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '78',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '26e6840c-4323-41ee-9be7-c1128a95f2fd',
'x-ms-client-request-id': '21e4ebbf-5242-4ff1-b68c-4e84faa2587f',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': 'fbbd59b5-9e7a-4608-ab39-90147112aac6',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014348Z:fbbd59b5-9e7a-4608-ab39-90147112aac6',
date: 'Fri, 28 Oct 2016 01:43:48 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/4e7c20c4-5399-41df-bbf3-fabb12c773b2?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '78',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '26e6840c-4323-41ee-9be7-c1128a95f2fd',
'x-ms-client-request-id': '21e4ebbf-5242-4ff1-b68c-4e84faa2587f',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': 'fbbd59b5-9e7a-4608-ab39-90147112aac6',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014348Z:fbbd59b5-9e7a-4608-ab39-90147112aac6',
date: 'Fri, 28 Oct 2016 01:43:48 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/4e7c20c4-5399-41df-bbf3-fabb12c773b2?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '78',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'cddfae1b-d7d5-4470-b470-687d744bea8c',
'x-ms-client-request-id': 'ce3a3d3f-cefc-4fa4-8090-12b3945b7d01',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': '9020717a-deee-46f3-87a7-6b5139af28eb',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014419Z:9020717a-deee-46f3-87a7-6b5139af28eb',
date: 'Fri, 28 Oct 2016 01:44:18 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/4e7c20c4-5399-41df-bbf3-fabb12c773b2?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '78',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'cddfae1b-d7d5-4470-b470-687d744bea8c',
'x-ms-client-request-id': 'ce3a3d3f-cefc-4fa4-8090-12b3945b7d01',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': '9020717a-deee-46f3-87a7-6b5139af28eb',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014419Z:9020717a-deee-46f3-87a7-6b5139af28eb',
date: 'Fri, 28 Oct 2016 01:44:18 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/4e7c20c4-5399-41df-bbf3-fabb12c773b2?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'bc6da579-a9ad-4522-88ff-4747f69d90e4',
'x-ms-client-request-id': '90347519-8cb5-4204-a9c4-ed2e2a68f48d',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14992',
'x-ms-correlation-request-id': 'ea6f8e22-de57-417a-97e3-67dbf00d2e2b',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014449Z:ea6f8e22-de57-417a-97e3-67dbf00d2e2b',
date: 'Fri, 28 Oct 2016 01:44:48 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/4e7c20c4-5399-41df-bbf3-fabb12c773b2?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'bc6da579-a9ad-4522-88ff-4747f69d90e4',
'x-ms-client-request-id': '90347519-8cb5-4204-a9c4-ed2e2a68f48d',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14992',
'x-ms-correlation-request-id': 'ea6f8e22-de57-417a-97e3-67dbf00d2e2b',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014449Z:ea6f8e22-de57-417a-97e3-67dbf00d2e2b',
date: 'Fri, 28 Oct 2016 01:44:48 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,50 +2,50 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n \r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '28',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'da6cfdd4-ca60-4cc4-a001-e9deecee2490',
'x-ms-client-request-id': '820c55f4-4287-4086-954f-a06841a9ecc9',
'x-ms-request-id': 'cba05b2d-f62b-44d7-b0c8-0e44a2ac527c',
'x-ms-client-request-id': '89383ab7-6a5b-4063-b948-c18482c05505',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14993',
'x-ms-correlation-request-id': '99f69a7c-b876-46ca-bbf1-d69701f8fb94',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224835Z:99f69a7c-b876-46ca-bbf1-d69701f8fb94',
date: 'Wed, 11 May 2016 22:48:34 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14995',
'x-ms-correlation-request-id': '01299ddb-0330-48b4-968d-cb652a307b71',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014630Z:01299ddb-0330-48b4-968d-cb652a307b71',
date: 'Fri, 28 Oct 2016 01:46:30 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n \r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '28',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'da6cfdd4-ca60-4cc4-a001-e9deecee2490',
'x-ms-client-request-id': '820c55f4-4287-4086-954f-a06841a9ecc9',
'x-ms-request-id': 'cba05b2d-f62b-44d7-b0c8-0e44a2ac527c',
'x-ms-client-request-id': '89383ab7-6a5b-4063-b948-c18482c05505',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14993',
'x-ms-correlation-request-id': '99f69a7c-b876-46ca-bbf1-d69701f8fb94',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224835Z:99f69a7c-b876-46ca-bbf1-d69701f8fb94',
date: 'Wed, 11 May 2016 22:48:34 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14995',
'x-ms-correlation-request-id': '01299ddb-0330-48b4-968d-cb652a307b71',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014630Z:01299ddb-0330-48b4-968d-cb652a307b71',
date: 'Fri, 28 Oct 2016 01:46:30 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,52 +2,52 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.patch('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618?api-version=2016-04-02', '*')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint8618\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint8618.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n }\r\n}", { 'cache-control': 'no-cache',
.patch('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987?api-version=2016-10-02', '*')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint4987\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint4987.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '802',
'content-length': '890',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'x-ms-request-id': '5bb97007-2823-4353-9e91-6b880c6ca9bd',
'x-ms-client-request-id': '197584ea-37b0-4013-a503-ec5933eaf563',
'x-ms-request-id': 'c2dcb07b-45cb-4d93-9cfa-41d5fa87606b',
'x-ms-client-request-id': 'de302ff5-a04d-4111-8964-8873335cf65f',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': '8cffb70e-2202-497e-bb54-f2ac7d58b482',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224445Z:8cffb70e-2202-497e-bb54-f2ac7d58b482',
date: 'Wed, 11 May 2016 22:44:44 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '0d56b496-af63-4046-912c-10c1e0320417',
'x-ms-routing-request-id': 'WESTUS2:20161028T013937Z:0d56b496-af63-4046-912c-10c1e0320417',
date: 'Fri, 28 Oct 2016 01:39:37 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.patch('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618?api-version=2016-04-02', '*')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint8618\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint8618.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n }\r\n}", { 'cache-control': 'no-cache',
.patch('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987?api-version=2016-10-02', '*')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint4987\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint4987.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '802',
'content-length': '890',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'x-ms-request-id': '5bb97007-2823-4353-9e91-6b880c6ca9bd',
'x-ms-client-request-id': '197584ea-37b0-4013-a503-ec5933eaf563',
'x-ms-request-id': 'c2dcb07b-45cb-4d93-9cfa-41d5fa87606b',
'x-ms-client-request-id': 'de302ff5-a04d-4111-8964-8873335cf65f',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': '8cffb70e-2202-497e-bb54-f2ac7d58b482',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224445Z:8cffb70e-2202-497e-bb54-f2ac7d58b482',
date: 'Wed, 11 May 2016 22:44:44 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '0d56b496-af63-4046-912c-10c1e0320417',
'x-ms-routing-request-id': 'WESTUS2:20161028T013937Z:0d56b496-af63-4046-912c-10c1e0320417',
date: 'Fri, 28 Oct 2016 01:39:37 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,186 +2,186 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618/purge?api-version=2016-04-02', '*')
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987/purge?api-version=2016-10-02', '*')
.reply(202, "", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '0',
expires: '-1',
location: 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/f4a976ab-0d74-42e5-ae74-709d361b262e/profileresults/cdnTestProfile3498/endpointresults/cdnTestEndpoint8618?api-version=2016-04-02',
location: 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/64c69ae1-8776-4e85-aa1f-00a21905d055/profileresults/cdnTestProfile6758/endpointresults/cdnTestEndpoint4987?api-version=2016-10-02',
'retry-after': '10',
'x-ms-request-id': '8405e8c4-6ab9-4b25-804b-02f4711a6db2',
'x-ms-client-request-id': '7f77397c-440d-486b-afb0-7523013058d8',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/f4a976ab-0d74-42e5-ae74-709d361b262e?api-version=2016-04-02',
'x-ms-request-id': '53ce4745-ab9a-49e2-95e6-5775149e8b68',
'x-ms-client-request-id': 'ade4925a-12d7-40ad-aa58-0b53c7982064',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/64c69ae1-8776-4e85-aa1f-00a21905d055?api-version=2016-10-02',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '8b7481fa-075c-4754-b16f-18f60fd79b5d',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224449Z:8b7481fa-075c-4754-b16f-18f60fd79b5d',
date: 'Wed, 11 May 2016 22:44:48 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-correlation-request-id': '92abafd2-cb52-48ad-9470-7718bfd5e213',
'x-ms-routing-request-id': 'WESTUS2:20161028T013941Z:92abafd2-cb52-48ad-9470-7718bfd5e213',
date: 'Fri, 28 Oct 2016 01:39:40 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618/purge?api-version=2016-04-02', '*')
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987/purge?api-version=2016-10-02', '*')
.reply(202, "", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '0',
expires: '-1',
location: 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/f4a976ab-0d74-42e5-ae74-709d361b262e/profileresults/cdnTestProfile3498/endpointresults/cdnTestEndpoint8618?api-version=2016-04-02',
location: 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/64c69ae1-8776-4e85-aa1f-00a21905d055/profileresults/cdnTestProfile6758/endpointresults/cdnTestEndpoint4987?api-version=2016-10-02',
'retry-after': '10',
'x-ms-request-id': '8405e8c4-6ab9-4b25-804b-02f4711a6db2',
'x-ms-client-request-id': '7f77397c-440d-486b-afb0-7523013058d8',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/f4a976ab-0d74-42e5-ae74-709d361b262e?api-version=2016-04-02',
'x-ms-request-id': '53ce4745-ab9a-49e2-95e6-5775149e8b68',
'x-ms-client-request-id': 'ade4925a-12d7-40ad-aa58-0b53c7982064',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/64c69ae1-8776-4e85-aa1f-00a21905d055?api-version=2016-10-02',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '8b7481fa-075c-4754-b16f-18f60fd79b5d',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224449Z:8b7481fa-075c-4754-b16f-18f60fd79b5d',
date: 'Wed, 11 May 2016 22:44:48 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-correlation-request-id': '92abafd2-cb52-48ad-9470-7718bfd5e213',
'x-ms-routing-request-id': 'WESTUS2:20161028T013941Z:92abafd2-cb52-48ad-9470-7718bfd5e213',
date: 'Fri, 28 Oct 2016 01:39:40 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/f4a976ab-0d74-42e5-ae74-709d361b262e?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/64c69ae1-8776-4e85-aa1f-00a21905d055?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '78',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '5f316c95-5f61-4dee-9311-12e0eca86b86',
'x-ms-client-request-id': '6fbd2c5b-3818-4210-bef9-6dce8c66d94f',
'x-ms-request-id': '11c2d2f9-7fd4-4d29-b57b-cb110e9ec4fc',
'x-ms-client-request-id': '9c196a60-0260-4c1a-8098-4fa4456560ec',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14999',
'x-ms-correlation-request-id': '383ffef6-4f1d-453b-81eb-829396675a2e',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224519Z:383ffef6-4f1d-453b-81eb-829396675a2e',
date: 'Wed, 11 May 2016 22:45:19 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14986',
'x-ms-correlation-request-id': '94e7fa95-ab95-488b-b395-c5451b84b6b9',
'x-ms-routing-request-id': 'WESTUS2:20161028T014011Z:94e7fa95-ab95-488b-b395-c5451b84b6b9',
date: 'Fri, 28 Oct 2016 01:40:11 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/f4a976ab-0d74-42e5-ae74-709d361b262e?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/64c69ae1-8776-4e85-aa1f-00a21905d055?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '78',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '5f316c95-5f61-4dee-9311-12e0eca86b86',
'x-ms-client-request-id': '6fbd2c5b-3818-4210-bef9-6dce8c66d94f',
'x-ms-request-id': '11c2d2f9-7fd4-4d29-b57b-cb110e9ec4fc',
'x-ms-client-request-id': '9c196a60-0260-4c1a-8098-4fa4456560ec',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14999',
'x-ms-correlation-request-id': '383ffef6-4f1d-453b-81eb-829396675a2e',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224519Z:383ffef6-4f1d-453b-81eb-829396675a2e',
date: 'Wed, 11 May 2016 22:45:19 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14986',
'x-ms-correlation-request-id': '94e7fa95-ab95-488b-b395-c5451b84b6b9',
'x-ms-routing-request-id': 'WESTUS2:20161028T014011Z:94e7fa95-ab95-488b-b395-c5451b84b6b9',
date: 'Fri, 28 Oct 2016 01:40:11 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/f4a976ab-0d74-42e5-ae74-709d361b262e?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/64c69ae1-8776-4e85-aa1f-00a21905d055?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '78',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'aae662dc-097b-4c43-9b13-e095a7d41c20',
'x-ms-client-request-id': '430abe02-a5a9-4061-a85a-bca53a65b97a',
'x-ms-request-id': 'cfc9de9b-67eb-420a-a151-2618e962a663',
'x-ms-client-request-id': 'f101dc4d-5fae-42a3-a4c2-666db88be79c',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': 'ddcc0a4d-c027-43e7-a9ed-d4915f19fb10',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224550Z:ddcc0a4d-c027-43e7-a9ed-d4915f19fb10',
date: 'Wed, 11 May 2016 22:45:49 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14993',
'x-ms-correlation-request-id': 'ab91f6c7-0b93-48bb-9095-cd3fac6ff757',
'x-ms-routing-request-id': 'WESTUS2:20161028T014042Z:ab91f6c7-0b93-48bb-9095-cd3fac6ff757',
date: 'Fri, 28 Oct 2016 01:40:42 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/f4a976ab-0d74-42e5-ae74-709d361b262e?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/64c69ae1-8776-4e85-aa1f-00a21905d055?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '78',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'aae662dc-097b-4c43-9b13-e095a7d41c20',
'x-ms-client-request-id': '430abe02-a5a9-4061-a85a-bca53a65b97a',
'x-ms-request-id': 'cfc9de9b-67eb-420a-a151-2618e962a663',
'x-ms-client-request-id': 'f101dc4d-5fae-42a3-a4c2-666db88be79c',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': 'ddcc0a4d-c027-43e7-a9ed-d4915f19fb10',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224550Z:ddcc0a4d-c027-43e7-a9ed-d4915f19fb10',
date: 'Wed, 11 May 2016 22:45:49 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14993',
'x-ms-correlation-request-id': 'ab91f6c7-0b93-48bb-9095-cd3fac6ff757',
'x-ms-routing-request-id': 'WESTUS2:20161028T014042Z:ab91f6c7-0b93-48bb-9095-cd3fac6ff757',
date: 'Fri, 28 Oct 2016 01:40:42 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/f4a976ab-0d74-42e5-ae74-709d361b262e?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/64c69ae1-8776-4e85-aa1f-00a21905d055?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'ba56e979-ac7b-4865-aaad-4865269e3f5c',
'x-ms-client-request-id': '1ccea24f-e89a-4011-85b8-a473fbfb9abe',
'x-ms-request-id': 'a4481b78-b9ac-4b6e-9235-f7b4a24c5076',
'x-ms-client-request-id': '34040d16-a70e-4b1c-a0e3-6715a9d5151e',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': '2900e704-d912-491c-8d4a-abbe75ddd5e7',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224620Z:2900e704-d912-491c-8d4a-abbe75ddd5e7',
date: 'Wed, 11 May 2016 22:46:20 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14992',
'x-ms-correlation-request-id': '7ba9cead-b298-4bb4-befb-2f5de29148e2',
'x-ms-routing-request-id': 'WESTUS2:20161028T014113Z:7ba9cead-b298-4bb4-befb-2f5de29148e2',
date: 'Fri, 28 Oct 2016 01:41:12 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/f4a976ab-0d74-42e5-ae74-709d361b262e?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/64c69ae1-8776-4e85-aa1f-00a21905d055?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'ba56e979-ac7b-4865-aaad-4865269e3f5c',
'x-ms-client-request-id': '1ccea24f-e89a-4011-85b8-a473fbfb9abe',
'x-ms-request-id': 'a4481b78-b9ac-4b6e-9235-f7b4a24c5076',
'x-ms-client-request-id': '34040d16-a70e-4b1c-a0e3-6715a9d5151e',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': '2900e704-d912-491c-8d4a-abbe75ddd5e7',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224620Z:2900e704-d912-491c-8d4a-abbe75ddd5e7',
date: 'Wed, 11 May 2016 22:46:20 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14992',
'x-ms-correlation-request-id': '7ba9cead-b298-4bb4-befb-2f5de29148e2',
'x-ms-routing-request-id': 'WESTUS2:20161028T014113Z:7ba9cead-b298-4bb4-befb-2f5de29148e2',
date: 'Fri, 28 Oct 2016 01:41:12 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,144 +2,144 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618/start?api-version=2016-04-02')
.reply(202, "{\r\n \"hostName\":\"cdnTestEndpoint8618.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Starting\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n}", { 'cache-control': 'no-cache',
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987/start?api-version=2016-10-02')
.reply(202, "{\r\n \"hostName\":\"cdnTestEndpoint4987.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Starting\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '466',
'content-length': '545',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
location: 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/500b428d-52ab-4f9c-9dc4-4eec1f01f764/profileresults/cdnTestProfile3498/endpointresults/cdnTestEndpoint8618?api-version=2016-04-02',
location: 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/d14df493-815a-4239-b082-6774c506926b/profileresults/cdnTestProfile6758/endpointresults/cdnTestEndpoint4987?api-version=2016-10-02',
'retry-after': '10',
'x-ms-request-id': 'e9d63180-9b04-456e-84b1-d82167b1849f',
'x-ms-client-request-id': '068c3635-fb77-4200-b33c-f35be4550e86',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/500b428d-52ab-4f9c-9dc4-4eec1f01f764?api-version=2016-04-02',
'x-ms-request-id': '85fc209a-7d4e-4ba7-9f37-0c54296a0deb',
'x-ms-client-request-id': 'e8866ff7-7005-45db-8263-882ca0a37441',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/d14df493-815a-4239-b082-6774c506926b?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': '1317293d-2ceb-404d-9ab2-f653ea413432',
'x-ms-routing-request-id': 'WESTUS:20160511T224730Z:1317293d-2ceb-404d-9ab2-f653ea413432',
date: 'Wed, 11 May 2016 22:47:29 GMT',
'x-ms-correlation-request-id': 'b51ba31a-714a-41c3-af75-d9e9349f2587',
'x-ms-routing-request-id': 'WESTUS2:20161028T014526Z:b51ba31a-714a-41c3-af75-d9e9349f2587',
date: 'Fri, 28 Oct 2016 01:45:26 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618/start?api-version=2016-04-02')
.reply(202, "{\r\n \"hostName\":\"cdnTestEndpoint8618.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Starting\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n}", { 'cache-control': 'no-cache',
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987/start?api-version=2016-10-02')
.reply(202, "{\r\n \"hostName\":\"cdnTestEndpoint4987.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Starting\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '466',
'content-length': '545',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
location: 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/500b428d-52ab-4f9c-9dc4-4eec1f01f764/profileresults/cdnTestProfile3498/endpointresults/cdnTestEndpoint8618?api-version=2016-04-02',
location: 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/d14df493-815a-4239-b082-6774c506926b/profileresults/cdnTestProfile6758/endpointresults/cdnTestEndpoint4987?api-version=2016-10-02',
'retry-after': '10',
'x-ms-request-id': 'e9d63180-9b04-456e-84b1-d82167b1849f',
'x-ms-client-request-id': '068c3635-fb77-4200-b33c-f35be4550e86',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/500b428d-52ab-4f9c-9dc4-4eec1f01f764?api-version=2016-04-02',
'x-ms-request-id': '85fc209a-7d4e-4ba7-9f37-0c54296a0deb',
'x-ms-client-request-id': 'e8866ff7-7005-45db-8263-882ca0a37441',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/d14df493-815a-4239-b082-6774c506926b?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': '1317293d-2ceb-404d-9ab2-f653ea413432',
'x-ms-routing-request-id': 'WESTUS:20160511T224730Z:1317293d-2ceb-404d-9ab2-f653ea413432',
date: 'Wed, 11 May 2016 22:47:29 GMT',
'x-ms-correlation-request-id': 'b51ba31a-714a-41c3-af75-d9e9349f2587',
'x-ms-routing-request-id': 'WESTUS2:20161028T014526Z:b51ba31a-714a-41c3-af75-d9e9349f2587',
date: 'Fri, 28 Oct 2016 01:45:26 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/500b428d-52ab-4f9c-9dc4-4eec1f01f764?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/d14df493-815a-4239-b082-6774c506926b?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '41459c9c-4213-4828-a7b9-616d1f469197',
'x-ms-client-request-id': 'bac57c54-17cb-48d9-81f1-5387e1d1d754',
'x-ms-request-id': 'a863a66a-0c9b-4aad-914b-95c5ae48612d',
'x-ms-client-request-id': 'dc6cf482-244e-469d-a3d5-aa2e72b2316d',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14995',
'x-ms-correlation-request-id': 'd69895d7-9d4b-4708-b307-b8ff29c667ef',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224802Z:d69895d7-9d4b-4708-b307-b8ff29c667ef',
date: 'Wed, 11 May 2016 22:48:01 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14990',
'x-ms-correlation-request-id': '6ff640d4-6f96-47e1-a4d1-0edf6fbe23df',
'x-ms-routing-request-id': 'WESTUS2:20161028T014557Z:6ff640d4-6f96-47e1-a4d1-0edf6fbe23df',
date: 'Fri, 28 Oct 2016 01:45:56 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/500b428d-52ab-4f9c-9dc4-4eec1f01f764?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/d14df493-815a-4239-b082-6774c506926b?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '41459c9c-4213-4828-a7b9-616d1f469197',
'x-ms-client-request-id': 'bac57c54-17cb-48d9-81f1-5387e1d1d754',
'x-ms-request-id': 'a863a66a-0c9b-4aad-914b-95c5ae48612d',
'x-ms-client-request-id': 'dc6cf482-244e-469d-a3d5-aa2e72b2316d',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14995',
'x-ms-correlation-request-id': 'd69895d7-9d4b-4708-b307-b8ff29c667ef',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224802Z:d69895d7-9d4b-4708-b307-b8ff29c667ef',
date: 'Wed, 11 May 2016 22:48:01 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14990',
'x-ms-correlation-request-id': '6ff640d4-6f96-47e1-a4d1-0edf6fbe23df',
'x-ms-routing-request-id': 'WESTUS2:20161028T014557Z:6ff640d4-6f96-47e1-a4d1-0edf6fbe23df',
date: 'Fri, 28 Oct 2016 01:45:56 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618?api-version=2016-04-02')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint8618\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val2\",\"tag2\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint8618.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n }\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint4987\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val2\",\"tag2\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint4987.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '816',
'content-length': '904',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '7920643f-d426-4cc4-a867-c42961f30503',
'x-ms-client-request-id': 'a506ac51-40f2-43d3-8126-0dbcf31a8d8a',
'x-ms-request-id': '447ad816-5574-477e-94c0-ee64d6092c95',
'x-ms-client-request-id': '8cffa898-558a-4e7d-b836-a0a9d1fc6de7',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': 'ae6750b1-f68d-4587-9bb0-4bb4df12323d',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224802Z:ae6750b1-f68d-4587-9bb0-4bb4df12323d',
date: 'Wed, 11 May 2016 22:48:02 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14992',
'x-ms-correlation-request-id': 'b7698cee-de0e-4a48-9b24-aabe08c8c457',
'x-ms-routing-request-id': 'WESTUS2:20161028T014557Z:b7698cee-de0e-4a48-9b24-aabe08c8c457',
date: 'Fri, 28 Oct 2016 01:45:57 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618?api-version=2016-04-02')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint8618\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val2\",\"tag2\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint8618.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n }\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint4987\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val2\",\"tag2\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint4987.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '816',
'content-length': '904',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '7920643f-d426-4cc4-a867-c42961f30503',
'x-ms-client-request-id': 'a506ac51-40f2-43d3-8126-0dbcf31a8d8a',
'x-ms-request-id': '447ad816-5574-477e-94c0-ee64d6092c95',
'x-ms-client-request-id': '8cffa898-558a-4e7d-b836-a0a9d1fc6de7',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': 'ae6750b1-f68d-4587-9bb0-4bb4df12323d',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224802Z:ae6750b1-f68d-4587-9bb0-4bb4df12323d',
date: 'Wed, 11 May 2016 22:48:02 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14992',
'x-ms-correlation-request-id': 'b7698cee-de0e-4a48-9b24-aabe08c8c457',
'x-ms-routing-request-id': 'WESTUS2:20161028T014557Z:b7698cee-de0e-4a48-9b24-aabe08c8c457',
date: 'Fri, 28 Oct 2016 01:45:57 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,144 +2,144 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618/stop?api-version=2016-04-02')
.reply(202, "{\r\n \"hostName\":\"cdnTestEndpoint8618.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Stopping\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n}", { 'cache-control': 'no-cache',
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987/stop?api-version=2016-10-02')
.reply(202, "{\r\n \"hostName\":\"cdnTestEndpoint4987.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Stopping\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '466',
'content-length': '545',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
location: 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/301a0820-54ff-45be-bbb5-32ca61eefd30/profileresults/cdnTestProfile3498/endpointresults/cdnTestEndpoint8618?api-version=2016-04-02',
location: 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/50e919bd-8eb4-4817-9ba5-b1fd01b108d5/profileresults/cdnTestProfile6758/endpointresults/cdnTestEndpoint4987?api-version=2016-10-02',
'retry-after': '10',
'x-ms-request-id': 'b97ad34d-10e5-40a2-9580-760e615cb7cb',
'x-ms-client-request-id': 'f523ae33-73e6-4d53-9d39-fc1839cf26aa',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/301a0820-54ff-45be-bbb5-32ca61eefd30?api-version=2016-04-02',
'x-ms-request-id': '403e5de0-b3d9-4e57-a19d-57250456f607',
'x-ms-client-request-id': 'bfc84860-a740-4b2d-8d2d-762f35063867',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/50e919bd-8eb4-4817-9ba5-b1fd01b108d5?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': 'b0c4201b-10f6-4522-bbc8-d2c037352bbc',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224655Z:b0c4201b-10f6-4522-bbc8-d2c037352bbc',
date: 'Wed, 11 May 2016 22:46:55 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-correlation-request-id': '6c53feaa-242a-4c1a-b007-7db7f5a91381',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014451Z:6c53feaa-242a-4c1a-b007-7db7f5a91381',
date: 'Fri, 28 Oct 2016 01:44:51 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618/stop?api-version=2016-04-02')
.reply(202, "{\r\n \"hostName\":\"cdnTestEndpoint8618.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Stopping\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n}", { 'cache-control': 'no-cache',
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987/stop?api-version=2016-10-02')
.reply(202, "{\r\n \"hostName\":\"cdnTestEndpoint4987.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Stopping\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '466',
'content-length': '545',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
location: 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/301a0820-54ff-45be-bbb5-32ca61eefd30/profileresults/cdnTestProfile3498/endpointresults/cdnTestEndpoint8618?api-version=2016-04-02',
location: 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/50e919bd-8eb4-4817-9ba5-b1fd01b108d5/profileresults/cdnTestProfile6758/endpointresults/cdnTestEndpoint4987?api-version=2016-10-02',
'retry-after': '10',
'x-ms-request-id': 'b97ad34d-10e5-40a2-9580-760e615cb7cb',
'x-ms-client-request-id': 'f523ae33-73e6-4d53-9d39-fc1839cf26aa',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/301a0820-54ff-45be-bbb5-32ca61eefd30?api-version=2016-04-02',
'x-ms-request-id': '403e5de0-b3d9-4e57-a19d-57250456f607',
'x-ms-client-request-id': 'bfc84860-a740-4b2d-8d2d-762f35063867',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/50e919bd-8eb4-4817-9ba5-b1fd01b108d5?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': 'b0c4201b-10f6-4522-bbc8-d2c037352bbc',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224655Z:b0c4201b-10f6-4522-bbc8-d2c037352bbc',
date: 'Wed, 11 May 2016 22:46:55 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-correlation-request-id': '6c53feaa-242a-4c1a-b007-7db7f5a91381',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014451Z:6c53feaa-242a-4c1a-b007-7db7f5a91381',
date: 'Fri, 28 Oct 2016 01:44:51 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/301a0820-54ff-45be-bbb5-32ca61eefd30?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/50e919bd-8eb4-4817-9ba5-b1fd01b108d5?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '726c09ba-33c5-4fad-92da-af2d5600647b',
'x-ms-client-request-id': '37b6efc3-e98f-4d4d-8483-0c0e5be381ad',
'x-ms-request-id': 'b3d1ccca-cb7e-457d-aaf4-84755be96b5b',
'x-ms-client-request-id': '3ab58d90-78d2-485d-9326-b025f96b647b',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14984',
'x-ms-correlation-request-id': '0adb0e41-224f-4c31-a470-8b3692c7373f',
'x-ms-routing-request-id': 'WESTUS:20160511T224726Z:0adb0e41-224f-4c31-a470-8b3692c7373f',
date: 'Wed, 11 May 2016 22:47:25 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': 'c7bfa9c4-f47a-44b1-a17b-300c961f31b1',
'x-ms-routing-request-id': 'WESTUS2:20161028T014522Z:c7bfa9c4-f47a-44b1-a17b-300c961f31b1',
date: 'Fri, 28 Oct 2016 01:45:22 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/operationresults/301a0820-54ff-45be-bbb5-32ca61eefd30?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/50e919bd-8eb4-4817-9ba5-b1fd01b108d5?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '726c09ba-33c5-4fad-92da-af2d5600647b',
'x-ms-client-request-id': '37b6efc3-e98f-4d4d-8483-0c0e5be381ad',
'x-ms-request-id': 'b3d1ccca-cb7e-457d-aaf4-84755be96b5b',
'x-ms-client-request-id': '3ab58d90-78d2-485d-9326-b025f96b647b',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14984',
'x-ms-correlation-request-id': '0adb0e41-224f-4c31-a470-8b3692c7373f',
'x-ms-routing-request-id': 'WESTUS:20160511T224726Z:0adb0e41-224f-4c31-a470-8b3692c7373f',
date: 'Wed, 11 May 2016 22:47:25 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': 'c7bfa9c4-f47a-44b1-a17b-300c961f31b1',
'x-ms-routing-request-id': 'WESTUS2:20161028T014522Z:c7bfa9c4-f47a-44b1-a17b-300c961f31b1',
date: 'Fri, 28 Oct 2016 01:45:22 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618?api-version=2016-04-02')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint8618\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val2\",\"tag2\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint8618.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Stopped\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n }\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint4987\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val2\",\"tag2\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint4987.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Stopped\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '816',
'content-length': '904',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'c6dfca33-cc06-46f9-8bcd-1a2c9e3d9e9a',
'x-ms-client-request-id': '5b303bd3-5f60-45f4-9493-aa6f65c78d5a',
'x-ms-request-id': '2916944d-d17b-4002-9848-ceab372e6807',
'x-ms-client-request-id': 'e9233e43-b881-43dd-9d5d-4599cd041390',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14986',
'x-ms-correlation-request-id': '45071f03-c46e-4105-8ed9-986c784f297c',
'x-ms-routing-request-id': 'WESTUS:20160511T224727Z:45071f03-c46e-4105-8ed9-986c784f297c',
date: 'Wed, 11 May 2016 22:47:26 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14992',
'x-ms-correlation-request-id': '282761c7-97a2-4a96-9fd5-9d25297a71b8',
'x-ms-routing-request-id': 'WESTUS2:20161028T014523Z:282761c7-97a2-4a96-9fd5-9d25297a71b8',
date: 'Fri, 28 Oct 2016 01:45:23 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618?api-version=2016-04-02')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint8618\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val2\",\"tag2\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint8618.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Stopped\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n }\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint4987\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val2\",\"tag2\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint4987.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Stopped\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '816',
'content-length': '904',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'c6dfca33-cc06-46f9-8bcd-1a2c9e3d9e9a',
'x-ms-client-request-id': '5b303bd3-5f60-45f4-9493-aa6f65c78d5a',
'x-ms-request-id': '2916944d-d17b-4002-9848-ceab372e6807',
'x-ms-client-request-id': 'e9233e43-b881-43dd-9d5d-4599cd041390',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14986',
'x-ms-correlation-request-id': '45071f03-c46e-4105-8ed9-986c784f297c',
'x-ms-routing-request-id': 'WESTUS:20160511T224727Z:45071f03-c46e-4105-8ed9-986c784f297c',
date: 'Wed, 11 May 2016 22:47:26 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14992',
'x-ms-correlation-request-id': '282761c7-97a2-4a96-9fd5-9d25297a71b8',
'x-ms-routing-request-id': 'WESTUS2:20161028T014523Z:282761c7-97a2-4a96-9fd5-9d25297a71b8',
date: 'Fri, 28 Oct 2016 01:45:23 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -0,0 +1,147 @@
// This file has been autogenerated.
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.patch('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile3513/endpoints/cdnTestEndpoint1321?api-version=2016-10-02', '*')
.reply(202, "{\r\n \"name\":\"cdnTestEndpoint1321\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile3513/endpoints/cdnTestEndpoint1321\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint1321.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newakamainame\",\"properties\":{\r\n \"hostName\":\"newakamainame.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n {\r\n \"relativePath\":\"/mycar\",\"action\":\"Allow\",\"countryCodes\":[\r\n \"DZ\"\r\n ]\r\n }\r\n ]\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '1006',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
location: 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/0850a2f1-61be-4fd1-aff9-f94fe32250ea/profileresults/cdnTestProfile3513/endpointresults/cdnTestEndpoint1321?api-version=2016-10-02',
'retry-after': '10',
'x-ms-request-id': '5780743e-f939-4745-bb10-a01220089fd9',
'x-ms-client-request-id': '20be9f70-8d70-4549-b1da-c836918d82c6',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/0850a2f1-61be-4fd1-aff9-f94fe32250ea?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-correlation-request-id': 'dfc643a5-f210-478b-a54c-583d01e880e8',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014739Z:dfc643a5-f210-478b-a54c-583d01e880e8',
date: 'Fri, 28 Oct 2016 01:47:39 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.patch('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile3513/endpoints/cdnTestEndpoint1321?api-version=2016-10-02', '*')
.reply(202, "{\r\n \"name\":\"cdnTestEndpoint1321\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile3513/endpoints/cdnTestEndpoint1321\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint1321.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newakamainame\",\"properties\":{\r\n \"hostName\":\"newakamainame.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n {\r\n \"relativePath\":\"/mycar\",\"action\":\"Allow\",\"countryCodes\":[\r\n \"DZ\"\r\n ]\r\n }\r\n ]\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '1006',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
location: 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/0850a2f1-61be-4fd1-aff9-f94fe32250ea/profileresults/cdnTestProfile3513/endpointresults/cdnTestEndpoint1321?api-version=2016-10-02',
'retry-after': '10',
'x-ms-request-id': '5780743e-f939-4745-bb10-a01220089fd9',
'x-ms-client-request-id': '20be9f70-8d70-4549-b1da-c836918d82c6',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/0850a2f1-61be-4fd1-aff9-f94fe32250ea?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-correlation-request-id': 'dfc643a5-f210-478b-a54c-583d01e880e8',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014739Z:dfc643a5-f210-478b-a54c-583d01e880e8',
date: 'Fri, 28 Oct 2016 01:47:39 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/0850a2f1-61be-4fd1-aff9-f94fe32250ea?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '9e0e7add-9802-44f0-9c3b-e8e295be66f8',
'x-ms-client-request-id': '1f004af5-c742-4afd-bd99-e8c79a30ad27',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': '96b55176-beb5-4a44-b3a6-7ce972d4c4c9',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014810Z:96b55176-beb5-4a44-b3a6-7ce972d4c4c9',
date: 'Fri, 28 Oct 2016 01:48:10 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/operationresults/0850a2f1-61be-4fd1-aff9-f94fe32250ea?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '9e0e7add-9802-44f0-9c3b-e8e295be66f8',
'x-ms-client-request-id': '1f004af5-c742-4afd-bd99-e8c79a30ad27',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': '96b55176-beb5-4a44-b3a6-7ce972d4c4c9',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014810Z:96b55176-beb5-4a44-b3a6-7ce972d4c4c9',
date: 'Fri, 28 Oct 2016 01:48:10 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile3513/endpoints/cdnTestEndpoint1321?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint1321\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile3513/endpoints/cdnTestEndpoint1321\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint1321.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newakamainame\",\"properties\":{\r\n \"hostName\":\"newakamainame.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n {\r\n \"relativePath\":\"/mycar\",\"action\":\"Allow\",\"countryCodes\":[\r\n \"DZ\"\r\n ]\r\n }\r\n ]\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '1006',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'fc82b4fa-d337-4139-a568-80ad95f82e0d',
'x-ms-client-request-id': 'b8c2dba3-e394-4a60-b26e-c9a28955afc9',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14990',
'x-ms-correlation-request-id': '5e0b8e2a-da8f-49db-a09a-9766acbad654',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014811Z:5e0b8e2a-da8f-49db-a09a-9766acbad654',
date: 'Fri, 28 Oct 2016 01:48:11 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile3513/endpoints/cdnTestEndpoint1321?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint1321\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile3513/endpoints/cdnTestEndpoint1321\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint1321.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newakamainame\",\"properties\":{\r\n \"hostName\":\"newakamainame.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n {\r\n \"relativePath\":\"/mycar\",\"action\":\"Allow\",\"countryCodes\":[\r\n \"DZ\"\r\n ]\r\n }\r\n ]\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '1006',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'fc82b4fa-d337-4139-a568-80ad95f82e0d',
'x-ms-client-request-id': 'b8c2dba3-e394-4a60-b26e-c9a28955afc9',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14990',
'x-ms-correlation-request-id': '5e0b8e2a-da8f-49db-a09a-9766acbad654',
'x-ms-routing-request-id': 'CENTRALUS:20161028T014811Z:5e0b8e2a-da8f-49db-a09a-9766acbad654',
date: 'Fri, 28 Oct 2016 01:48:11 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,52 +2,52 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.patch('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618?api-version=2016-04-02', '*')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint8618\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val2\",\"tag2\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint8618.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n }\r\n}", { 'cache-control': 'no-cache',
.patch('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987?api-version=2016-10-02', '*')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint4987\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val2\",\"tag2\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint4987.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '816',
'content-length': '904',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'x-ms-request-id': '0be55c22-9ba7-48e8-812d-e1172e7e0703',
'x-ms-client-request-id': '10f6ef0f-242d-46f3-a3de-199607bdeb1e',
'x-ms-request-id': '0cc39a78-47a3-42bf-9175-5acd12fa77cb',
'x-ms-client-request-id': '0c9d70ff-235b-483d-9c0e-c6a80d770937',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': 'b1e8510e-0de2-4a8e-98fc-0e4d01714ceb',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224446Z:b1e8510e-0de2-4a8e-98fc-0e4d01714ceb',
date: 'Wed, 11 May 2016 22:44:46 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-correlation-request-id': '34107107-07a0-4faa-ae82-db8839b71a4e',
'x-ms-routing-request-id': 'WESTUS2:20161028T013939Z:34107107-07a0-4faa-ae82-db8839b71a4e',
date: 'Fri, 28 Oct 2016 01:39:38 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.patch('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618?api-version=2016-04-02', '*')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint8618\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup107/providers/Microsoft.Cdn/profiles/cdnTestProfile3498/endpoints/cdnTestEndpoint8618\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val2\",\"tag2\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint8618.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false\r\n }\r\n}", { 'cache-control': 'no-cache',
.patch('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987?api-version=2016-10-02', '*')
.reply(200, "{\r\n \"name\":\"cdnTestEndpoint4987\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup2266/providers/Microsoft.Cdn/profiles/cdnTestProfile6758/endpoints/cdnTestEndpoint4987\",\"type\":\"Microsoft.Cdn/profiles/endpoints\",\"tags\":{\r\n \"tag1\":\"val2\",\"tag2\":\"val1\"\r\n },\"location\":\"WestUs\",\"properties\":{\r\n \"hostName\":\"cdnTestEndpoint4987.azureedge.net\",\"originHostHeader\":null,\"provisioningState\":\"Succeeded\",\"resourceState\":\"Running\",\"isHttpAllowed\":true,\"isHttpsAllowed\":true,\"queryStringCachingBehavior\":\"IgnoreQueryString\",\"originPath\":null,\"origins\":[\r\n {\r\n \"name\":\"newname\",\"properties\":{\r\n \"hostName\":\"newname.azure.com\",\"httpPort\":null,\"httpsPort\":null\r\n }\r\n }\r\n ],\"customDomains\":[\r\n \r\n ],\"contentTypesToCompress\":[\r\n \r\n ],\"isCompressionEnabled\":false,\"optimizationType\":null,\"geoFilters\":[\r\n \r\n ]\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '816',
'content-length': '904',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'x-ms-request-id': '0be55c22-9ba7-48e8-812d-e1172e7e0703',
'x-ms-client-request-id': '10f6ef0f-242d-46f3-a3de-199607bdeb1e',
'x-ms-request-id': '0cc39a78-47a3-42bf-9175-5acd12fa77cb',
'x-ms-client-request-id': '0c9d70ff-235b-483d-9c0e-c6a80d770937',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': 'b1e8510e-0de2-4a8e-98fc-0e4d01714ceb',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224446Z:b1e8510e-0de2-4a8e-98fc-0e4d01714ceb',
date: 'Wed, 11 May 2016 22:44:46 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-correlation-request-id': '34107107-07a0-4faa-ae82-db8839b71a4e',
'x-ms-routing-request-id': 'WESTUS2:20161028T013939Z:34107107-07a0-4faa-ae82-db8839b71a4e',
date: 'Fri, 28 Oct 2016 01:39:38 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,9 +2,9 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [];
exports.randomTestIdsGenerated = function() { return ['cdnTestGroup107','cdnTestProfile3498','cdnTestEndpoint8618'];};
exports.randomTestIdsGenerated = function() { return ['cdnTestGroup2266','cdnTestProfile6758','cdnTestEndpoint4987','cdnTestProfile3513','cdnTestEndpoint1321'];};

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -2,7 +2,7 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [];

Просмотреть файл

@ -2,188 +2,188 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.put('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup6808/providers/Microsoft.Cdn/profiles/cdnTestProfile1082?api-version=2016-04-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestProfile1082\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup6808/providers/Microsoft.Cdn/profiles/cdnTestProfile1082\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"EastUs\",\"sku\":{\r\n \"name\":\"Premium_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n }\r\n}", { 'cache-control': 'no-cache',
.put('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup1540/providers/Microsoft.Cdn/profiles/cdnTestProfile2130?api-version=2016-10-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestProfile2130\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1540/providers/Microsoft.Cdn/profiles/cdnTestProfile2130\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"EastUs\",\"sku\":{\r\n \"name\":\"Premium_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '403',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'retry-after': '10',
'x-ms-request-id': '023d6c06-9d4e-4f45-9936-2e50888c75ec',
'x-ms-client-request-id': 'd1528d93-85ea-43d4-ada2-44b0e95055c3',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup6808/providers/Microsoft.Cdn/operationresults/da2cae16-36b5-476a-b477-6fac7557e14d?api-version=2016-04-02',
'x-ms-request-id': '01085956-ce58-41b1-8297-382da4c5bc7c',
'x-ms-client-request-id': '2f01fb5c-d461-4d62-b0cf-37504c2c1888',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1540/providers/Microsoft.Cdn/operationresults/2fe54ad8-1b4d-474b-981e-1fc62471aacd?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '1d9a2191-54bb-47e6-983f-4927fc3f66bc',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223818Z:1d9a2191-54bb-47e6-983f-4927fc3f66bc',
date: 'Wed, 11 May 2016 22:38:18 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': '166a3f35-d0af-4edf-af6b-9d6e63841ad7',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225639Z:166a3f35-d0af-4edf-af6b-9d6e63841ad7',
date: 'Thu, 27 Oct 2016 22:56:38 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.put('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup6808/providers/Microsoft.Cdn/profiles/cdnTestProfile1082?api-version=2016-04-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestProfile1082\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup6808/providers/Microsoft.Cdn/profiles/cdnTestProfile1082\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"EastUs\",\"sku\":{\r\n \"name\":\"Premium_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n }\r\n}", { 'cache-control': 'no-cache',
.put('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup1540/providers/Microsoft.Cdn/profiles/cdnTestProfile2130?api-version=2016-10-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestProfile2130\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1540/providers/Microsoft.Cdn/profiles/cdnTestProfile2130\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"EastUs\",\"sku\":{\r\n \"name\":\"Premium_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '403',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'retry-after': '10',
'x-ms-request-id': '023d6c06-9d4e-4f45-9936-2e50888c75ec',
'x-ms-client-request-id': 'd1528d93-85ea-43d4-ada2-44b0e95055c3',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup6808/providers/Microsoft.Cdn/operationresults/da2cae16-36b5-476a-b477-6fac7557e14d?api-version=2016-04-02',
'x-ms-request-id': '01085956-ce58-41b1-8297-382da4c5bc7c',
'x-ms-client-request-id': '2f01fb5c-d461-4d62-b0cf-37504c2c1888',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1540/providers/Microsoft.Cdn/operationresults/2fe54ad8-1b4d-474b-981e-1fc62471aacd?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '1d9a2191-54bb-47e6-983f-4927fc3f66bc',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223818Z:1d9a2191-54bb-47e6-983f-4927fc3f66bc',
date: 'Wed, 11 May 2016 22:38:18 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': '166a3f35-d0af-4edf-af6b-9d6e63841ad7',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225639Z:166a3f35-d0af-4edf-af6b-9d6e63841ad7',
date: 'Thu, 27 Oct 2016 22:56:38 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup6808/providers/Microsoft.Cdn/operationresults/da2cae16-36b5-476a-b477-6fac7557e14d?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1540/providers/Microsoft.Cdn/operationresults/2fe54ad8-1b4d-474b-981e-1fc62471aacd?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '78',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'a24d84d6-8d46-4344-98ea-9d5accd14f69',
'x-ms-client-request-id': '3410aeab-16df-4d22-af32-dee1145b0d58',
'x-ms-request-id': '2333187f-2910-4ffb-b1d0-dee35d15f0d8',
'x-ms-client-request-id': '0f8d0132-9e64-44c0-8d9c-e278e377aed6',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': '057da4af-0b3e-4ddd-8fc2-fa571abc7d67',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223849Z:057da4af-0b3e-4ddd-8fc2-fa571abc7d67',
date: 'Wed, 11 May 2016 22:38:48 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14995',
'x-ms-correlation-request-id': 'a0d77c40-a46f-4c0c-a253-d62bdec681ca',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225709Z:a0d77c40-a46f-4c0c-a253-d62bdec681ca',
date: 'Thu, 27 Oct 2016 22:57:09 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup6808/providers/Microsoft.Cdn/operationresults/da2cae16-36b5-476a-b477-6fac7557e14d?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1540/providers/Microsoft.Cdn/operationresults/2fe54ad8-1b4d-474b-981e-1fc62471aacd?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '78',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'a24d84d6-8d46-4344-98ea-9d5accd14f69',
'x-ms-client-request-id': '3410aeab-16df-4d22-af32-dee1145b0d58',
'x-ms-request-id': '2333187f-2910-4ffb-b1d0-dee35d15f0d8',
'x-ms-client-request-id': '0f8d0132-9e64-44c0-8d9c-e278e377aed6',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': '057da4af-0b3e-4ddd-8fc2-fa571abc7d67',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223849Z:057da4af-0b3e-4ddd-8fc2-fa571abc7d67',
date: 'Wed, 11 May 2016 22:38:48 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14995',
'x-ms-correlation-request-id': 'a0d77c40-a46f-4c0c-a253-d62bdec681ca',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225709Z:a0d77c40-a46f-4c0c-a253-d62bdec681ca',
date: 'Thu, 27 Oct 2016 22:57:09 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup6808/providers/Microsoft.Cdn/operationresults/da2cae16-36b5-476a-b477-6fac7557e14d?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1540/providers/Microsoft.Cdn/operationresults/2fe54ad8-1b4d-474b-981e-1fc62471aacd?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'a67aef61-50a4-46c7-ab8c-465250e7dd1d',
'x-ms-client-request-id': '99c43e4c-f107-441e-93c1-07e0bf352aeb',
'x-ms-request-id': 'edd470f2-a92e-4834-ab76-c7c087c0824a',
'x-ms-client-request-id': '8a3546e3-211c-475b-a679-f99d576a62fb',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': '9bcc63cd-5509-429d-95ba-433dfe84c98f',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223919Z:9bcc63cd-5509-429d-95ba-433dfe84c98f',
date: 'Wed, 11 May 2016 22:39:19 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': 'c071ccc3-6ece-4219-9458-bae51ff60d78',
'x-ms-routing-request-id': 'WESTUS2:20161027T225741Z:c071ccc3-6ece-4219-9458-bae51ff60d78',
date: 'Thu, 27 Oct 2016 22:57:41 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup6808/providers/Microsoft.Cdn/operationresults/da2cae16-36b5-476a-b477-6fac7557e14d?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1540/providers/Microsoft.Cdn/operationresults/2fe54ad8-1b4d-474b-981e-1fc62471aacd?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'a67aef61-50a4-46c7-ab8c-465250e7dd1d',
'x-ms-client-request-id': '99c43e4c-f107-441e-93c1-07e0bf352aeb',
'x-ms-request-id': 'edd470f2-a92e-4834-ab76-c7c087c0824a',
'x-ms-client-request-id': '8a3546e3-211c-475b-a679-f99d576a62fb',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': '9bcc63cd-5509-429d-95ba-433dfe84c98f',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223919Z:9bcc63cd-5509-429d-95ba-433dfe84c98f',
date: 'Wed, 11 May 2016 22:39:19 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': 'c071ccc3-6ece-4219-9458-bae51ff60d78',
'x-ms-routing-request-id': 'WESTUS2:20161027T225741Z:c071ccc3-6ece-4219-9458-bae51ff60d78',
date: 'Thu, 27 Oct 2016 22:57:41 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup6808/providers/Microsoft.Cdn/profiles/cdnTestProfile1082?api-version=2016-04-02')
.reply(200, "{\r\n \"name\":\"cdnTestProfile1082\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup6808/providers/Microsoft.Cdn/profiles/cdnTestProfile1082\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"EastUs\",\"sku\":{\r\n \"name\":\"Premium_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup1540/providers/Microsoft.Cdn/profiles/cdnTestProfile2130?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestProfile2130\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1540/providers/Microsoft.Cdn/profiles/cdnTestProfile2130\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"EastUs\",\"sku\":{\r\n \"name\":\"Premium_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '402',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '4f1d4640-1d94-43d7-848b-804833082438',
'x-ms-client-request-id': '8e0d54a4-0a37-4c16-a4cc-f19aa36bf6a3',
'x-ms-request-id': '5882be25-56be-4f9d-bce6-9410f91a56bf',
'x-ms-client-request-id': '4e6f4740-9c8f-42a3-b323-e1bbb3e7bdf5',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14993',
'x-ms-correlation-request-id': '76bcc586-4786-4ce4-812b-409e152fcf52',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223920Z:76bcc586-4786-4ce4-812b-409e152fcf52',
date: 'Wed, 11 May 2016 22:39:19 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': 'abeeb0be-ce14-485f-93e2-e79299315ba0',
'x-ms-routing-request-id': 'WESTUS2:20161027T225742Z:abeeb0be-ce14-485f-93e2-e79299315ba0',
date: 'Thu, 27 Oct 2016 22:57:42 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup6808/providers/Microsoft.Cdn/profiles/cdnTestProfile1082?api-version=2016-04-02')
.reply(200, "{\r\n \"name\":\"cdnTestProfile1082\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup6808/providers/Microsoft.Cdn/profiles/cdnTestProfile1082\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"EastUs\",\"sku\":{\r\n \"name\":\"Premium_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup1540/providers/Microsoft.Cdn/profiles/cdnTestProfile2130?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestProfile2130\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1540/providers/Microsoft.Cdn/profiles/cdnTestProfile2130\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"EastUs\",\"sku\":{\r\n \"name\":\"Premium_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '402',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '4f1d4640-1d94-43d7-848b-804833082438',
'x-ms-client-request-id': '8e0d54a4-0a37-4c16-a4cc-f19aa36bf6a3',
'x-ms-request-id': '5882be25-56be-4f9d-bce6-9410f91a56bf',
'x-ms-client-request-id': '4e6f4740-9c8f-42a3-b323-e1bbb3e7bdf5',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14993',
'x-ms-correlation-request-id': '76bcc586-4786-4ce4-812b-409e152fcf52',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223920Z:76bcc586-4786-4ce4-812b-409e152fcf52',
date: 'Wed, 11 May 2016 22:39:19 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': 'abeeb0be-ce14-485f-93e2-e79299315ba0',
'x-ms-routing-request-id': 'WESTUS2:20161027T225742Z:abeeb0be-ce14-485f-93e2-e79299315ba0',
date: 'Thu, 27 Oct 2016 22:57:42 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,144 +2,144 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.put('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles/cdnTestProfile3413?api-version=2016-04-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestProfile3413\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles/cdnTestProfile3413\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"EastUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n }\r\n}", { 'cache-control': 'no-cache',
.put('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles/cdnTestProfile7789?api-version=2016-10-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestProfile7789\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles/cdnTestProfile7789\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"EastUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '403',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'retry-after': '10',
'x-ms-request-id': '8f7d3dc4-5f59-4877-9bc6-eef4bd98c68d',
'x-ms-client-request-id': '967199e6-ef2f-4ff2-b10a-7121b99894cd',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/operationresults/a3a76571-df73-4478-984c-b11c169eab00?api-version=2016-04-02',
'x-ms-request-id': '5af6fc96-3a61-4199-8900-9d124632ccb3',
'x-ms-client-request-id': 'aee86ba1-cc27-49f2-93ef-696886a6d2a7',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/operationresults/0ed55386-022e-479a-ad63-d411ff384b84?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '57db5ec3-6568-4332-824e-d4695409b17f',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224029Z:57db5ec3-6568-4332-824e-d4695409b17f',
date: 'Wed, 11 May 2016 22:40:28 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-correlation-request-id': '317e9cb2-815e-404b-9681-e989a5932680',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225903Z:317e9cb2-815e-404b-9681-e989a5932680',
date: 'Thu, 27 Oct 2016 22:59:02 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.put('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles/cdnTestProfile3413?api-version=2016-04-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestProfile3413\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles/cdnTestProfile3413\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"EastUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n }\r\n}", { 'cache-control': 'no-cache',
.put('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles/cdnTestProfile7789?api-version=2016-10-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestProfile7789\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles/cdnTestProfile7789\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"EastUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '403',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'retry-after': '10',
'x-ms-request-id': '8f7d3dc4-5f59-4877-9bc6-eef4bd98c68d',
'x-ms-client-request-id': '967199e6-ef2f-4ff2-b10a-7121b99894cd',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/operationresults/a3a76571-df73-4478-984c-b11c169eab00?api-version=2016-04-02',
'x-ms-request-id': '5af6fc96-3a61-4199-8900-9d124632ccb3',
'x-ms-client-request-id': 'aee86ba1-cc27-49f2-93ef-696886a6d2a7',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/operationresults/0ed55386-022e-479a-ad63-d411ff384b84?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '57db5ec3-6568-4332-824e-d4695409b17f',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224029Z:57db5ec3-6568-4332-824e-d4695409b17f',
date: 'Wed, 11 May 2016 22:40:28 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-correlation-request-id': '317e9cb2-815e-404b-9681-e989a5932680',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225903Z:317e9cb2-815e-404b-9681-e989a5932680',
date: 'Thu, 27 Oct 2016 22:59:02 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/operationresults/a3a76571-df73-4478-984c-b11c169eab00?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/operationresults/0ed55386-022e-479a-ad63-d411ff384b84?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '9fa30958-1da6-46f7-9f58-5424d71fbfec',
'x-ms-client-request-id': 'be5e70b9-2c4a-4a35-bb65-cccc8e41e460',
'x-ms-request-id': '292dcfbb-99de-4830-863d-5c1f064b42ba',
'x-ms-client-request-id': '8c3d1fae-d637-40db-b2e0-c9a12eae7cda',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14998',
'x-ms-correlation-request-id': '51618d32-847a-478c-a006-ef4e20538b9f',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224059Z:51618d32-847a-478c-a006-ef4e20538b9f',
date: 'Wed, 11 May 2016 22:40:59 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': '1617861f-3414-40e5-ae6e-b21b00deef85',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225933Z:1617861f-3414-40e5-ae6e-b21b00deef85',
date: 'Thu, 27 Oct 2016 22:59:33 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/operationresults/a3a76571-df73-4478-984c-b11c169eab00?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/operationresults/0ed55386-022e-479a-ad63-d411ff384b84?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '9fa30958-1da6-46f7-9f58-5424d71fbfec',
'x-ms-client-request-id': 'be5e70b9-2c4a-4a35-bb65-cccc8e41e460',
'x-ms-request-id': '292dcfbb-99de-4830-863d-5c1f064b42ba',
'x-ms-client-request-id': '8c3d1fae-d637-40db-b2e0-c9a12eae7cda',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14998',
'x-ms-correlation-request-id': '51618d32-847a-478c-a006-ef4e20538b9f',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224059Z:51618d32-847a-478c-a006-ef4e20538b9f',
date: 'Wed, 11 May 2016 22:40:59 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': '1617861f-3414-40e5-ae6e-b21b00deef85',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225933Z:1617861f-3414-40e5-ae6e-b21b00deef85',
date: 'Thu, 27 Oct 2016 22:59:33 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles/cdnTestProfile3413?api-version=2016-04-02')
.reply(200, "{\r\n \"name\":\"cdnTestProfile3413\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles/cdnTestProfile3413\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"EastUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles/cdnTestProfile7789?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestProfile7789\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles/cdnTestProfile7789\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"EastUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '402',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'ed0dd748-be68-4dc9-ae3f-ab11e999c9c2',
'x-ms-client-request-id': '906d8392-aff9-46f3-8cd7-7ca91ba4f15d',
'x-ms-request-id': 'c9838257-560a-4fda-8dc1-d3247c687c3e',
'x-ms-client-request-id': '0a2462cc-175b-4be7-b7f2-bc486735710d',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': '4aa2c57e-c118-4244-a6c4-63b7cd1d1c60',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224100Z:4aa2c57e-c118-4244-a6c4-63b7cd1d1c60',
date: 'Wed, 11 May 2016 22:40:59 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': 'cae3e702-421d-4e63-b102-41538d727db6',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225934Z:cae3e702-421d-4e63-b102-41538d727db6',
date: 'Thu, 27 Oct 2016 22:59:34 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles/cdnTestProfile3413?api-version=2016-04-02')
.reply(200, "{\r\n \"name\":\"cdnTestProfile3413\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles/cdnTestProfile3413\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"EastUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles/cdnTestProfile7789?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestProfile7789\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles/cdnTestProfile7789\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"EastUs\",\"sku\":{\r\n \"name\":\"Standard_Akamai\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '402',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'ed0dd748-be68-4dc9-ae3f-ab11e999c9c2',
'x-ms-client-request-id': '906d8392-aff9-46f3-8cd7-7ca91ba4f15d',
'x-ms-request-id': 'c9838257-560a-4fda-8dc1-d3247c687c3e',
'x-ms-client-request-id': '0a2462cc-175b-4be7-b7f2-bc486735710d',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': '4aa2c57e-c118-4244-a6c4-63b7cd1d1c60',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224100Z:4aa2c57e-c118-4244-a6c4-63b7cd1d1c60',
date: 'Wed, 11 May 2016 22:40:59 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': 'cae3e702-421d-4e63-b102-41538d727db6',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225934Z:cae3e702-421d-4e63-b102-41538d727db6',
date: 'Thu, 27 Oct 2016 22:59:34 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,188 +2,144 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.put('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles/cdnTestProfile4304?api-version=2016-04-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestProfile4304\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles/cdnTestProfile4304\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n }\r\n}", { 'cache-control': 'no-cache',
.put('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles/cdnTestProfile2165?api-version=2016-10-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestProfile2165\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles/cdnTestProfile2165\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '404',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'retry-after': '10',
'x-ms-request-id': '99e6e00d-84ee-44e7-ada2-03d35af97acd',
'x-ms-client-request-id': '6fbf0662-2b07-4b78-ba80-b164951dcfca',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/operationresults/bac3f495-53da-4398-b28b-a848dfa5d79b?api-version=2016-04-02',
'x-ms-request-id': '7565b34c-5ddf-4062-ad04-40da451bfb32',
'x-ms-client-request-id': '4df66888-091c-4f9d-9a86-2392e91bccbc',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/operationresults/7681f77f-f79e-4349-ab3a-fdfa22b6095c?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '4070aabc-3e40-486d-8920-b0c8e0db99f9',
'x-ms-routing-request-id': 'WESTUS:20160511T223639Z:4070aabc-3e40-486d-8920-b0c8e0db99f9',
date: 'Wed, 11 May 2016 22:36:38 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-correlation-request-id': '1ec28c8e-22e2-44ab-9810-8be94d8716bc',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225529Z:1ec28c8e-22e2-44ab-9810-8be94d8716bc',
date: 'Thu, 27 Oct 2016 22:55:28 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.filteringRequestBody(function (path) { return '*';})
.put('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles/cdnTestProfile4304?api-version=2016-04-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestProfile4304\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles/cdnTestProfile4304\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n }\r\n}", { 'cache-control': 'no-cache',
.put('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles/cdnTestProfile2165?api-version=2016-10-02', '*')
.reply(201, "{\r\n \"name\":\"cdnTestProfile2165\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles/cdnTestProfile2165\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Creating\",\"resourceState\":\"Creating\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '404',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'retry-after': '10',
'x-ms-request-id': '99e6e00d-84ee-44e7-ada2-03d35af97acd',
'x-ms-client-request-id': '6fbf0662-2b07-4b78-ba80-b164951dcfca',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/operationresults/bac3f495-53da-4398-b28b-a848dfa5d79b?api-version=2016-04-02',
'x-ms-request-id': '7565b34c-5ddf-4062-ad04-40da451bfb32',
'x-ms-client-request-id': '4df66888-091c-4f9d-9a86-2392e91bccbc',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/operationresults/7681f77f-f79e-4349-ab3a-fdfa22b6095c?api-version=2016-10-02',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '4070aabc-3e40-486d-8920-b0c8e0db99f9',
'x-ms-routing-request-id': 'WESTUS:20160511T223639Z:4070aabc-3e40-486d-8920-b0c8e0db99f9',
date: 'Wed, 11 May 2016 22:36:38 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-correlation-request-id': '1ec28c8e-22e2-44ab-9810-8be94d8716bc',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225529Z:1ec28c8e-22e2-44ab-9810-8be94d8716bc',
date: 'Thu, 27 Oct 2016 22:55:28 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/operationresults/bac3f495-53da-4398-b28b-a848dfa5d79b?api-version=2016-04-02')
.reply(200, "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '78',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '430a6970-6c2e-47ab-a8f8-6892386143a1',
'x-ms-client-request-id': 'a22dc2c2-5ed6-4f04-b4f4-2747a0806692',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14995',
'x-ms-correlation-request-id': '2d2e905f-90b7-4e08-8d90-1ab27b7e15ad',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223709Z:2d2e905f-90b7-4e08-8d90-1ab27b7e15ad',
date: 'Wed, 11 May 2016 22:37:08 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/operationresults/bac3f495-53da-4398-b28b-a848dfa5d79b?api-version=2016-04-02')
.reply(200, "{\r\n \"status\":\"InProgress\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '78',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '430a6970-6c2e-47ab-a8f8-6892386143a1',
'x-ms-client-request-id': 'a22dc2c2-5ed6-4f04-b4f4-2747a0806692',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14995',
'x-ms-correlation-request-id': '2d2e905f-90b7-4e08-8d90-1ab27b7e15ad',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223709Z:2d2e905f-90b7-4e08-8d90-1ab27b7e15ad',
date: 'Wed, 11 May 2016 22:37:08 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/operationresults/bac3f495-53da-4398-b28b-a848dfa5d79b?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/operationresults/7681f77f-f79e-4349-ab3a-fdfa22b6095c?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '562acf94-3a01-4fa6-9ffa-07440fcf1430',
'x-ms-client-request-id': 'f3709a28-c1c9-4ea2-ade5-4f199190207e',
'x-ms-request-id': '8891b779-9656-4bf7-9bf5-8731819c3f38',
'x-ms-client-request-id': '27fad4ee-6518-4189-a4ce-4e4f6c195281',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': '0da3ada1-dd00-4e73-aeb6-07ceac86f895',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223740Z:0da3ada1-dd00-4e73-aeb6-07ceac86f895',
date: 'Wed, 11 May 2016 22:37:40 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14999',
'x-ms-correlation-request-id': '0dcab0f7-05bd-4c61-bdc2-5e2f6a5031e9',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225559Z:0dcab0f7-05bd-4c61-bdc2-5e2f6a5031e9',
date: 'Thu, 27 Oct 2016 22:55:59 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/operationresults/bac3f495-53da-4398-b28b-a848dfa5d79b?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/operationresults/7681f77f-f79e-4349-ab3a-fdfa22b6095c?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '562acf94-3a01-4fa6-9ffa-07440fcf1430',
'x-ms-client-request-id': 'f3709a28-c1c9-4ea2-ade5-4f199190207e',
'x-ms-request-id': '8891b779-9656-4bf7-9bf5-8731819c3f38',
'x-ms-client-request-id': '27fad4ee-6518-4189-a4ce-4e4f6c195281',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': '0da3ada1-dd00-4e73-aeb6-07ceac86f895',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223740Z:0da3ada1-dd00-4e73-aeb6-07ceac86f895',
date: 'Wed, 11 May 2016 22:37:40 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14999',
'x-ms-correlation-request-id': '0dcab0f7-05bd-4c61-bdc2-5e2f6a5031e9',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225559Z:0dcab0f7-05bd-4c61-bdc2-5e2f6a5031e9',
date: 'Thu, 27 Oct 2016 22:55:59 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles/cdnTestProfile4304?api-version=2016-04-02')
.reply(200, "{\r\n \"name\":\"cdnTestProfile4304\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles/cdnTestProfile4304\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles/cdnTestProfile2165?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestProfile2165\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles/cdnTestProfile2165\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '403',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'ba05b55b-7599-4241-9873-12d662a97705',
'x-ms-client-request-id': '1368f28b-e3c7-40e2-b3d8-06b4d3a17d05',
'x-ms-request-id': 'c8ede1ab-42c3-4ac9-a7b9-2f6ea72c0f21',
'x-ms-client-request-id': 'cdc69f32-a464-4d5f-9ae7-7c1d41e99f60',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14995',
'x-ms-correlation-request-id': '95e80cc6-98d2-4def-9661-cc87f60fd1fc',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223741Z:95e80cc6-98d2-4def-9661-cc87f60fd1fc',
date: 'Wed, 11 May 2016 22:37:40 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': 'f3cb81fc-a682-47a6-bbde-391ba7109dbe',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225600Z:f3cb81fc-a682-47a6-bbde-391ba7109dbe',
date: 'Thu, 27 Oct 2016 22:56:00 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles/cdnTestProfile4304?api-version=2016-04-02')
.reply(200, "{\r\n \"name\":\"cdnTestProfile4304\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles/cdnTestProfile4304\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles/cdnTestProfile2165?api-version=2016-10-02')
.reply(200, "{\r\n \"name\":\"cdnTestProfile2165\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles/cdnTestProfile2165\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '403',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'ba05b55b-7599-4241-9873-12d662a97705',
'x-ms-client-request-id': '1368f28b-e3c7-40e2-b3d8-06b4d3a17d05',
'x-ms-request-id': 'c8ede1ab-42c3-4ac9-a7b9-2f6ea72c0f21',
'x-ms-client-request-id': 'cdc69f32-a464-4d5f-9ae7-7c1d41e99f60',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14995',
'x-ms-correlation-request-id': '95e80cc6-98d2-4def-9661-cc87f60fd1fc',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223741Z:95e80cc6-98d2-4def-9661-cc87f60fd1fc',
date: 'Wed, 11 May 2016 22:37:40 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': 'f3cb81fc-a682-47a6-bbde-391ba7109dbe',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225600Z:f3cb81fc-a682-47a6-bbde-391ba7109dbe',
date: 'Thu, 27 Oct 2016 22:56:00 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,96 +2,96 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.delete('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles/cdnTestProfile3413?api-version=2016-04-02')
.delete('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles/cdnTestProfile7789?api-version=2016-10-02')
.reply(202, "", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '0',
expires: '-1',
location: 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/operationresults/4be8adc3-c672-4236-af36-284f450bb0b3/profileresults/cdnTestProfile3413?api-version=2016-04-02',
location: 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/operationresults/07777bff-4bb8-4aec-b079-f0920335d7da/profileresults/cdnTestProfile7789?api-version=2016-10-02',
'retry-after': '10',
'x-ms-request-id': 'b364906c-7314-4d69-a313-5e6fe969967e',
'x-ms-client-request-id': '84406d4a-8a13-4a9c-9988-a1dd445eccb1',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/operationresults/4be8adc3-c672-4236-af36-284f450bb0b3?api-version=2016-04-02',
'x-ms-request-id': '8ce9e8ab-2341-45f5-a248-d66f65f5e051',
'x-ms-client-request-id': '24638a64-dca9-427c-9c4a-b56fc958fc2c',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/operationresults/07777bff-4bb8-4aec-b079-f0920335d7da?api-version=2016-10-02',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': 'f1104f30-3940-4bc1-956b-0d5442bfccfe',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224101Z:f1104f30-3940-4bc1-956b-0d5442bfccfe',
date: 'Wed, 11 May 2016 22:41:01 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': '8070b5ef-99ef-48b3-bcb3-a1320a1593e5',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225935Z:8070b5ef-99ef-48b3-bcb3-a1320a1593e5',
date: 'Thu, 27 Oct 2016 22:59:35 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.delete('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles/cdnTestProfile3413?api-version=2016-04-02')
.delete('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles/cdnTestProfile7789?api-version=2016-10-02')
.reply(202, "", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '0',
expires: '-1',
location: 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/operationresults/4be8adc3-c672-4236-af36-284f450bb0b3/profileresults/cdnTestProfile3413?api-version=2016-04-02',
location: 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/operationresults/07777bff-4bb8-4aec-b079-f0920335d7da/profileresults/cdnTestProfile7789?api-version=2016-10-02',
'retry-after': '10',
'x-ms-request-id': 'b364906c-7314-4d69-a313-5e6fe969967e',
'x-ms-client-request-id': '84406d4a-8a13-4a9c-9988-a1dd445eccb1',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/operationresults/4be8adc3-c672-4236-af36-284f450bb0b3?api-version=2016-04-02',
'x-ms-request-id': '8ce9e8ab-2341-45f5-a248-d66f65f5e051',
'x-ms-client-request-id': '24638a64-dca9-427c-9c4a-b56fc958fc2c',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/operationresults/07777bff-4bb8-4aec-b079-f0920335d7da?api-version=2016-10-02',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': 'f1104f30-3940-4bc1-956b-0d5442bfccfe',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224101Z:f1104f30-3940-4bc1-956b-0d5442bfccfe',
date: 'Wed, 11 May 2016 22:41:01 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': '8070b5ef-99ef-48b3-bcb3-a1320a1593e5',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225935Z:8070b5ef-99ef-48b3-bcb3-a1320a1593e5',
date: 'Thu, 27 Oct 2016 22:59:35 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/operationresults/4be8adc3-c672-4236-af36-284f450bb0b3?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/operationresults/07777bff-4bb8-4aec-b079-f0920335d7da?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'ae72de36-4bef-4253-952b-98424720993b',
'x-ms-client-request-id': '4bb1000a-c950-4bbe-9dc0-c60eaba2d8d9',
'x-ms-request-id': '7568440d-0c33-492e-8c3f-b92a308af3d1',
'x-ms-client-request-id': '1b6e949b-23b5-465b-a45e-e27466507461',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': '44d24f2e-d2b1-48fc-86b5-de7f940dcc08',
'x-ms-routing-request-id': 'WESTUS:20160511T224132Z:44d24f2e-d2b1-48fc-86b5-de7f940dcc08',
date: 'Wed, 11 May 2016 22:41:32 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': '80a35153-ab2a-4120-8870-4eee3a596026',
'x-ms-routing-request-id': 'CENTRALUS:20161027T230007Z:80a35153-ab2a-4120-8870-4eee3a596026',
date: 'Thu, 27 Oct 2016 23:00:07 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/operationresults/4be8adc3-c672-4236-af36-284f450bb0b3?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/operationresults/07777bff-4bb8-4aec-b079-f0920335d7da?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'ae72de36-4bef-4253-952b-98424720993b',
'x-ms-client-request-id': '4bb1000a-c950-4bbe-9dc0-c60eaba2d8d9',
'x-ms-request-id': '7568440d-0c33-492e-8c3f-b92a308af3d1',
'x-ms-client-request-id': '1b6e949b-23b5-465b-a45e-e27466507461',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': '44d24f2e-d2b1-48fc-86b5-de7f940dcc08',
'x-ms-routing-request-id': 'WESTUS:20160511T224132Z:44d24f2e-d2b1-48fc-86b5-de7f940dcc08',
date: 'Wed, 11 May 2016 22:41:32 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': '80a35153-ab2a-4120-8870-4eee3a596026',
'x-ms-routing-request-id': 'CENTRALUS:20161027T230007Z:80a35153-ab2a-4120-8870-4eee3a596026',
date: 'Thu, 27 Oct 2016 23:00:07 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,96 +2,96 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.delete('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles/cdnTestProfile4304?api-version=2016-04-02')
.delete('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles/cdnTestProfile2165?api-version=2016-10-02')
.reply(202, "", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '0',
expires: '-1',
location: 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/operationresults/6477e88d-a48f-4cf3-81bc-1a6ae01d684f/profileresults/cdnTestProfile4304?api-version=2016-04-02',
location: 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/operationresults/a9fbc851-e924-4846-ba5a-fa477335296f/profileresults/cdnTestProfile2165?api-version=2016-10-02',
'retry-after': '10',
'x-ms-request-id': '799101d2-79c4-40b7-84b3-c9d1a85f1ec5',
'x-ms-client-request-id': '4c65d6d8-7768-47b5-b59a-4a188a57518b',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/operationresults/6477e88d-a48f-4cf3-81bc-1a6ae01d684f?api-version=2016-04-02',
'x-ms-request-id': '97de9959-80c1-4131-99d3-9a65d2e2bf10',
'x-ms-client-request-id': '5d09e9cc-61be-4fe3-9274-35cbd504be1f',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/operationresults/a9fbc851-e924-4846-ba5a-fa477335296f?api-version=2016-10-02',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '5f0f6a10-d0fc-44b2-9422-a5becf1b4ce7',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223923Z:5f0f6a10-d0fc-44b2-9422-a5becf1b4ce7',
date: 'Wed, 11 May 2016 22:39:22 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': '3bb766c5-638b-4687-8b70-8baa598adc97',
'x-ms-routing-request-id': 'WESTUS2:20161027T225750Z:3bb766c5-638b-4687-8b70-8baa598adc97',
date: 'Thu, 27 Oct 2016 22:57:50 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.delete('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles/cdnTestProfile4304?api-version=2016-04-02')
.delete('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles/cdnTestProfile2165?api-version=2016-10-02')
.reply(202, "", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '0',
expires: '-1',
location: 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/operationresults/6477e88d-a48f-4cf3-81bc-1a6ae01d684f/profileresults/cdnTestProfile4304?api-version=2016-04-02',
location: 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/operationresults/a9fbc851-e924-4846-ba5a-fa477335296f/profileresults/cdnTestProfile2165?api-version=2016-10-02',
'retry-after': '10',
'x-ms-request-id': '799101d2-79c4-40b7-84b3-c9d1a85f1ec5',
'x-ms-client-request-id': '4c65d6d8-7768-47b5-b59a-4a188a57518b',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/operationresults/6477e88d-a48f-4cf3-81bc-1a6ae01d684f?api-version=2016-04-02',
'x-ms-request-id': '97de9959-80c1-4131-99d3-9a65d2e2bf10',
'x-ms-client-request-id': '5d09e9cc-61be-4fe3-9274-35cbd504be1f',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/operationresults/a9fbc851-e924-4846-ba5a-fa477335296f?api-version=2016-10-02',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '5f0f6a10-d0fc-44b2-9422-a5becf1b4ce7',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223923Z:5f0f6a10-d0fc-44b2-9422-a5becf1b4ce7',
date: 'Wed, 11 May 2016 22:39:22 GMT',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': '3bb766c5-638b-4687-8b70-8baa598adc97',
'x-ms-routing-request-id': 'WESTUS2:20161027T225750Z:3bb766c5-638b-4687-8b70-8baa598adc97',
date: 'Thu, 27 Oct 2016 22:57:50 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/operationresults/6477e88d-a48f-4cf3-81bc-1a6ae01d684f?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/operationresults/a9fbc851-e924-4846-ba5a-fa477335296f?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '2492fe41-cd39-4edd-b79a-13f5c44b8323',
'x-ms-client-request-id': '0e61be5d-2c4a-48bb-a793-8ff1b60ad2d9',
'x-ms-request-id': 'bc09373e-8050-4de6-8612-b55d01dd91cf',
'x-ms-client-request-id': 'e5b48dad-61e6-429a-8d35-a9fa7eb52340',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14995',
'x-ms-correlation-request-id': '903aec25-6c9f-48e5-867d-d37fa35f67d2',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223954Z:903aec25-6c9f-48e5-867d-d37fa35f67d2',
date: 'Wed, 11 May 2016 22:39:53 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14998',
'x-ms-correlation-request-id': '9a219388-8ede-46b1-891b-af8302efa4f0',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225821Z:9a219388-8ede-46b1-891b-af8302efa4f0',
date: 'Thu, 27 Oct 2016 22:58:20 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/operationresults/6477e88d-a48f-4cf3-81bc-1a6ae01d684f?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/operationresults/a9fbc851-e924-4846-ba5a-fa477335296f?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '2492fe41-cd39-4edd-b79a-13f5c44b8323',
'x-ms-client-request-id': '0e61be5d-2c4a-48bb-a793-8ff1b60ad2d9',
'x-ms-request-id': 'bc09373e-8050-4de6-8612-b55d01dd91cf',
'x-ms-client-request-id': 'e5b48dad-61e6-429a-8d35-a9fa7eb52340',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14995',
'x-ms-correlation-request-id': '903aec25-6c9f-48e5-867d-d37fa35f67d2',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223954Z:903aec25-6c9f-48e5-867d-d37fa35f67d2',
date: 'Wed, 11 May 2016 22:39:53 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14998',
'x-ms-correlation-request-id': '9a219388-8ede-46b1-891b-af8302efa4f0',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225821Z:9a219388-8ede-46b1-891b-af8302efa4f0',
date: 'Thu, 27 Oct 2016 22:58:20 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,96 +2,96 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.delete('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup6808/providers/Microsoft.Cdn/profiles/cdnTestProfile1082?api-version=2016-04-02')
.delete('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup1540/providers/Microsoft.Cdn/profiles/cdnTestProfile2130?api-version=2016-10-02')
.reply(202, "", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '0',
expires: '-1',
location: 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup6808/providers/Microsoft.Cdn/operationresults/ef562424-ede6-4c42-a93c-c16b76fa6259/profileresults/cdnTestProfile1082?api-version=2016-04-02',
location: 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1540/providers/Microsoft.Cdn/operationresults/2dc98197-b78d-463f-9c0e-9d418175dccf/profileresults/cdnTestProfile2130?api-version=2016-10-02',
'retry-after': '10',
'x-ms-request-id': '1fe83879-6c5c-44f6-a3cc-57652eede592',
'x-ms-client-request-id': '1847d044-bc50-4c8a-a95d-31d341715a80',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup6808/providers/Microsoft.Cdn/operationresults/ef562424-ede6-4c42-a93c-c16b76fa6259?api-version=2016-04-02',
'x-ms-request-id': 'c402e6cb-f60f-4cf1-96aa-e3d8c3767a41',
'x-ms-client-request-id': 'b7cf41d9-33e1-4be1-89cc-30b568b97fb2',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1540/providers/Microsoft.Cdn/operationresults/2dc98197-b78d-463f-9c0e-9d418175dccf?api-version=2016-10-02',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': '812a62a2-146e-49ca-90f7-2060ff36058d',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223956Z:812a62a2-146e-49ca-90f7-2060ff36058d',
date: 'Wed, 11 May 2016 22:39:55 GMT',
'x-ms-correlation-request-id': '9a97a562-d83c-41bf-97ce-bf9eaba85950',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225830Z:9a97a562-d83c-41bf-97ce-bf9eaba85950',
date: 'Thu, 27 Oct 2016 22:58:30 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.delete('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup6808/providers/Microsoft.Cdn/profiles/cdnTestProfile1082?api-version=2016-04-02')
.delete('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup1540/providers/Microsoft.Cdn/profiles/cdnTestProfile2130?api-version=2016-10-02')
.reply(202, "", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '0',
expires: '-1',
location: 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup6808/providers/Microsoft.Cdn/operationresults/ef562424-ede6-4c42-a93c-c16b76fa6259/profileresults/cdnTestProfile1082?api-version=2016-04-02',
location: 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1540/providers/Microsoft.Cdn/operationresults/2dc98197-b78d-463f-9c0e-9d418175dccf/profileresults/cdnTestProfile2130?api-version=2016-10-02',
'retry-after': '10',
'x-ms-request-id': '1fe83879-6c5c-44f6-a3cc-57652eede592',
'x-ms-client-request-id': '1847d044-bc50-4c8a-a95d-31d341715a80',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup6808/providers/Microsoft.Cdn/operationresults/ef562424-ede6-4c42-a93c-c16b76fa6259?api-version=2016-04-02',
'x-ms-request-id': 'c402e6cb-f60f-4cf1-96aa-e3d8c3767a41',
'x-ms-client-request-id': 'b7cf41d9-33e1-4be1-89cc-30b568b97fb2',
'azure-asyncoperation': 'https://management.azure.com/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1540/providers/Microsoft.Cdn/operationresults/2dc98197-b78d-463f-9c0e-9d418175dccf?api-version=2016-10-02',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1198',
'x-ms-correlation-request-id': '812a62a2-146e-49ca-90f7-2060ff36058d',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223956Z:812a62a2-146e-49ca-90f7-2060ff36058d',
date: 'Wed, 11 May 2016 22:39:55 GMT',
'x-ms-correlation-request-id': '9a97a562-d83c-41bf-97ce-bf9eaba85950',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225830Z:9a97a562-d83c-41bf-97ce-bf9eaba85950',
date: 'Thu, 27 Oct 2016 22:58:30 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup6808/providers/Microsoft.Cdn/operationresults/ef562424-ede6-4c42-a93c-c16b76fa6259?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1540/providers/Microsoft.Cdn/operationresults/2dc98197-b78d-463f-9c0e-9d418175dccf?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '127b73a3-8292-4c91-802c-f4249d67f112',
'x-ms-client-request-id': '72db993c-1d2b-41cc-be25-bb94053cd875',
'x-ms-request-id': '2f1cade5-4a31-4a56-bf23-7e561e42ab40',
'x-ms-client-request-id': '6ef68a86-c36b-4b13-95ab-7e9675a8b893',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': '2ec03607-1adc-4242-b668-51fcf1aed49d',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224027Z:2ec03607-1adc-4242-b668-51fcf1aed49d',
date: 'Wed, 11 May 2016 22:40:26 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': '36203cd4-0aa1-43a7-b7af-fd40169c1f48',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225901Z:36203cd4-0aa1-43a7-b7af-fd40169c1f48',
date: 'Thu, 27 Oct 2016 22:59:00 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup6808/providers/Microsoft.Cdn/operationresults/ef562424-ede6-4c42-a93c-c16b76fa6259?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1540/providers/Microsoft.Cdn/operationresults/2dc98197-b78d-463f-9c0e-9d418175dccf?api-version=2016-10-02')
.reply(200, "{\r\n \"status\":\"Succeeded\",\"error\":{\r\n \"code\":\"None\",\"message\":null\r\n }\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '77',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '127b73a3-8292-4c91-802c-f4249d67f112',
'x-ms-client-request-id': '72db993c-1d2b-41cc-be25-bb94053cd875',
'x-ms-request-id': '2f1cade5-4a31-4a56-bf23-7e561e42ab40',
'x-ms-client-request-id': '6ef68a86-c36b-4b13-95ab-7e9675a8b893',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': '2ec03607-1adc-4242-b668-51fcf1aed49d',
'x-ms-routing-request-id': 'CENTRALUS:20160511T224027Z:2ec03607-1adc-4242-b668-51fcf1aed49d',
date: 'Wed, 11 May 2016 22:40:26 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': '36203cd4-0aa1-43a7-b7af-fd40169c1f48',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225901Z:36203cd4-0aa1-43a7-b7af-fd40169c1f48',
date: 'Thu, 27 Oct 2016 22:59:00 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,50 +2,50 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles/cdnTestProfile4304/generateSsoUri?api-version=2016-04-02')
.reply(200, "{\r\n \"ssoUriValue\":\"https://cdn.windowsazure.com/account/loginexternal/?token=QScMRcqkej3HzFPKyGS2mblDatfFfITO1MTi%2bfhsSh8%3d&timestamp=2016-05-11T22:38:15.2919473Z&cdnAccountId=31191&userCustomId=SSO-6679a33b-4b9f-482c-ab4c-d03dd5e9f482&restEndpointId=0\"\r\n}", { 'cache-control': 'no-cache',
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles/cdnTestProfile2165/generateSsoUri?api-version=2016-10-02')
.reply(200, "{\r\n \"ssoUriValue\":\"https://cdn.windowsazure.com/account/loginexternal/?token=TdwLc59PmZOJag2xV6hWMhxwgaVzrB1dol1%2bJgQ9lwc%3d&timestamp=2016-10-27T22:56:37.5838466Z&cdnAccountId=408FA&userCustomId=SSO-8fda9e97-89dc-4f59-8639-d1b05b2bdded&restEndpointId=0\"\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '259',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'x-ms-request-id': 'c44fec81-48ee-4cc3-a7eb-fcf2414e01fc',
'x-ms-client-request-id': '3dfe34f1-8687-442b-a5f7-ba5a6ad57e31',
'x-ms-request-id': '32581714-a8e8-408c-b6c3-b0d2f90864b3',
'x-ms-client-request-id': '20f8f435-910b-45c4-bb9a-52198f9b9bc8',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '66b63096-69fc-41b3-bab5-a50f9bdab15a',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223816Z:66b63096-69fc-41b3-bab5-a50f9bdab15a',
date: 'Wed, 11 May 2016 22:38:15 GMT',
'x-ms-correlation-request-id': 'cd29f1bd-d157-43a7-85d8-867f33ac122d',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225637Z:cd29f1bd-d157-43a7-85d8-867f33ac122d',
date: 'Thu, 27 Oct 2016 22:56:37 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.post('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles/cdnTestProfile4304/generateSsoUri?api-version=2016-04-02')
.reply(200, "{\r\n \"ssoUriValue\":\"https://cdn.windowsazure.com/account/loginexternal/?token=QScMRcqkej3HzFPKyGS2mblDatfFfITO1MTi%2bfhsSh8%3d&timestamp=2016-05-11T22:38:15.2919473Z&cdnAccountId=31191&userCustomId=SSO-6679a33b-4b9f-482c-ab4c-d03dd5e9f482&restEndpointId=0\"\r\n}", { 'cache-control': 'no-cache',
.post('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles/cdnTestProfile2165/generateSsoUri?api-version=2016-10-02')
.reply(200, "{\r\n \"ssoUriValue\":\"https://cdn.windowsazure.com/account/loginexternal/?token=TdwLc59PmZOJag2xV6hWMhxwgaVzrB1dol1%2bJgQ9lwc%3d&timestamp=2016-10-27T22:56:37.5838466Z&cdnAccountId=408FA&userCustomId=SSO-8fda9e97-89dc-4f59-8639-d1b05b2bdded&restEndpointId=0\"\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '259',
'content-type': 'application/json; odata.metadata=minimal',
expires: '-1',
'x-ms-request-id': 'c44fec81-48ee-4cc3-a7eb-fcf2414e01fc',
'x-ms-client-request-id': '3dfe34f1-8687-442b-a5f7-ba5a6ad57e31',
'x-ms-request-id': '32581714-a8e8-408c-b6c3-b0d2f90864b3',
'x-ms-client-request-id': '20f8f435-910b-45c4-bb9a-52198f9b9bc8',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-correlation-request-id': '66b63096-69fc-41b3-bab5-a50f9bdab15a',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223816Z:66b63096-69fc-41b3-bab5-a50f9bdab15a',
date: 'Wed, 11 May 2016 22:38:15 GMT',
'x-ms-correlation-request-id': 'cd29f1bd-d157-43a7-85d8-867f33ac122d',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225637Z:cd29f1bd-d157-43a7-85d8-867f33ac122d',
date: 'Thu, 27 Oct 2016 22:56:37 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,50 +2,50 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n \r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '28',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '961de473-28b5-4486-b756-299f3bf3a07a',
'x-ms-client-request-id': 'ceaf0a4b-a28d-4704-b169-d726b5c6da54',
'x-ms-request-id': '7ebb3b9c-4020-4600-9961-1131299a8eb2',
'x-ms-client-request-id': '8029c144-ec8b-4e1f-b119-0736504792f7',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14991',
'x-ms-correlation-request-id': 'db314f6e-a1e0-4c9d-a5d5-6c7f18148c0b',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223954Z:db314f6e-a1e0-4c9d-a5d5-6c7f18148c0b',
date: 'Wed, 11 May 2016 22:39:54 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': '6af0081c-e607-4a34-be9d-90d886e7e8b3',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225821Z:6af0081c-e607-4a34-be9d-90d886e7e8b3',
date: 'Thu, 27 Oct 2016 22:58:21 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n \r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '28',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '961de473-28b5-4486-b756-299f3bf3a07a',
'x-ms-client-request-id': 'ceaf0a4b-a28d-4704-b169-d726b5c6da54',
'x-ms-request-id': '7ebb3b9c-4020-4600-9961-1131299a8eb2',
'x-ms-client-request-id': '8029c144-ec8b-4e1f-b119-0736504792f7',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14991',
'x-ms-correlation-request-id': 'db314f6e-a1e0-4c9d-a5d5-6c7f18148c0b',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223954Z:db314f6e-a1e0-4c9d-a5d5-6c7f18148c0b',
date: 'Wed, 11 May 2016 22:39:54 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': '6af0081c-e607-4a34-be9d-90d886e7e8b3',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225821Z:6af0081c-e607-4a34-be9d-90d886e7e8b3',
date: 'Thu, 27 Oct 2016 22:58:21 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,50 +2,50 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles?api-version=2016-04-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestProfile4304\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles/cdnTestProfile4304\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestProfile2165\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles/cdnTestProfile2165\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '463',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '351c7ea9-e52e-406d-8d0d-0f8456b90f06',
'x-ms-client-request-id': '03917547-44d3-4411-b75c-7633ae9cf96b',
'x-ms-request-id': 'bae23fc6-bf0f-4505-a903-93aa8a88b278',
'x-ms-client-request-id': 'dc3825dd-7b54-4410-bb60-2b71a23ff252',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': '144fc41b-dfb9-49b1-937b-a77c81fcc2b6',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223742Z:144fc41b-dfb9-49b1-937b-a77c81fcc2b6',
date: 'Wed, 11 May 2016 22:37:42 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': 'b194a239-3520-4920-bdad-7e1f636f0028',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225601Z:b194a239-3520-4920-bdad-7e1f636f0028',
date: 'Thu, 27 Oct 2016 22:56:01 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles?api-version=2016-04-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestProfile4304\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles/cdnTestProfile4304\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestProfile2165\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles/cdnTestProfile2165\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '463',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '351c7ea9-e52e-406d-8d0d-0f8456b90f06',
'x-ms-client-request-id': '03917547-44d3-4411-b75c-7633ae9cf96b',
'x-ms-request-id': 'bae23fc6-bf0f-4505-a903-93aa8a88b278',
'x-ms-client-request-id': 'dc3825dd-7b54-4410-bb60-2b71a23ff252',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': '144fc41b-dfb9-49b1-937b-a77c81fcc2b6',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223742Z:144fc41b-dfb9-49b1-937b-a77c81fcc2b6',
date: 'Wed, 11 May 2016 22:37:42 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': 'b194a239-3520-4920-bdad-7e1f636f0028',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225601Z:b194a239-3520-4920-bdad-7e1f636f0028',
date: 'Thu, 27 Oct 2016 22:56:01 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,50 +2,50 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup6808/providers/Microsoft.Cdn/profiles?api-version=2016-04-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestProfile1082\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup6808/providers/Microsoft.Cdn/profiles/cdnTestProfile1082\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"EastUs\",\"sku\":{\r\n \"name\":\"Premium_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup1540/providers/Microsoft.Cdn/profiles?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestProfile2130\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1540/providers/Microsoft.Cdn/profiles/cdnTestProfile2130\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"EastUs\",\"sku\":{\r\n \"name\":\"Premium_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '462',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '298bf2ac-c187-4f88-be0d-3b1f8fbb714e',
'x-ms-client-request-id': 'bf3feb5a-2fb3-4d66-9c50-9a8e790adba3',
'x-ms-request-id': 'a6c23079-1126-4112-a06d-6766da6de0fb',
'x-ms-client-request-id': '2d12634e-e2d3-4e4e-a361-e0627108a27f',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': 'e8c14b6c-e8a5-4755-b5af-1c00dc3a5c91',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223922Z:e8c14b6c-e8a5-4755-b5af-1c00dc3a5c91',
date: 'Wed, 11 May 2016 22:39:21 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': 'ec80e3ca-5479-4131-a154-8e97e607a2a4',
'x-ms-routing-request-id': 'WESTUS2:20161027T225746Z:ec80e3ca-5479-4131-a154-8e97e607a2a4',
date: 'Thu, 27 Oct 2016 22:57:46 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup6808/providers/Microsoft.Cdn/profiles?api-version=2016-04-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestProfile1082\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup6808/providers/Microsoft.Cdn/profiles/cdnTestProfile1082\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"EastUs\",\"sku\":{\r\n \"name\":\"Premium_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup1540/providers/Microsoft.Cdn/profiles?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestProfile2130\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1540/providers/Microsoft.Cdn/profiles/cdnTestProfile2130\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"EastUs\",\"sku\":{\r\n \"name\":\"Premium_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '462',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '298bf2ac-c187-4f88-be0d-3b1f8fbb714e',
'x-ms-client-request-id': 'bf3feb5a-2fb3-4d66-9c50-9a8e790adba3',
'x-ms-request-id': 'a6c23079-1126-4112-a06d-6766da6de0fb',
'x-ms-client-request-id': '2d12634e-e2d3-4e4e-a361-e0627108a27f',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': 'e8c14b6c-e8a5-4755-b5af-1c00dc3a5c91',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223922Z:e8c14b6c-e8a5-4755-b5af-1c00dc3a5c91',
date: 'Wed, 11 May 2016 22:39:21 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': 'ec80e3ca-5479-4131-a154-8e97e607a2a4',
'x-ms-routing-request-id': 'WESTUS2:20161027T225746Z:ec80e3ca-5479-4131-a154-8e97e607a2a4',
date: 'Thu, 27 Oct 2016 22:57:46 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,50 +2,50 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n \r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '28',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'b1778165-1bed-41c6-a865-194ac22fda31',
'x-ms-client-request-id': '04aef816-1e7e-4d20-8875-7b0b1e7c81d2',
'x-ms-request-id': '13901a3f-2a3b-474d-8c37-1083697facd3',
'x-ms-client-request-id': '14f3385b-73d1-46b8-b130-38cb411ceeeb',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': '2464add8-c7d0-4c4c-bcab-ed0658a1aa68',
'x-ms-routing-request-id': 'WESTUS:20160511T223637Z:2464add8-c7d0-4c4c-bcab-ed0658a1aa68',
date: 'Wed, 11 May 2016 22:36:37 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14999',
'x-ms-correlation-request-id': 'ffd32fb8-3bd2-4d14-b74c-4c71b2c34b45',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225526Z:ffd32fb8-3bd2-4d14-b74c-4c71b2c34b45',
date: 'Thu, 27 Oct 2016 22:55:26 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n \r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '28',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'b1778165-1bed-41c6-a865-194ac22fda31',
'x-ms-client-request-id': '04aef816-1e7e-4d20-8875-7b0b1e7c81d2',
'x-ms-request-id': '13901a3f-2a3b-474d-8c37-1083697facd3',
'x-ms-client-request-id': '14f3385b-73d1-46b8-b130-38cb411ceeeb',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': '2464add8-c7d0-4c4c-bcab-ed0658a1aa68',
'x-ms-routing-request-id': 'WESTUS:20160511T223637Z:2464add8-c7d0-4c4c-bcab-ed0658a1aa68',
date: 'Wed, 11 May 2016 22:36:37 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14999',
'x-ms-correlation-request-id': 'ffd32fb8-3bd2-4d14-b74c-4c71b2c34b45',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225526Z:ffd32fb8-3bd2-4d14-b74c-4c71b2c34b45',
date: 'Thu, 27 Oct 2016 22:55:26 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,50 +2,50 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/providers/Microsoft.Cdn/profiles?api-version=2016-04-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestProfile1082\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup6808/providers/Microsoft.Cdn/profiles/cdnTestProfile1082\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"EastUs\",\"sku\":{\r\n \"name\":\"Premium_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/providers/Microsoft.Cdn/profiles?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestProfile2130\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1540/providers/Microsoft.Cdn/profiles/cdnTestProfile2130\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"EastUs\",\"sku\":{\r\n \"name\":\"Premium_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '462',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '02ef6a60-4b21-4764-808b-b0e86ccd72a3',
'x-ms-client-request-id': '534e1f07-3ab0-401b-b0cf-6dd6df2dcfce',
'x-ms-request-id': '7ea8392c-fb39-4667-a605-1ba704ef73ad',
'x-ms-client-request-id': 'c1e5a976-acec-4123-8627-ba35d25b0585',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': '0f208187-c4e7-4cbe-b2a5-3075c5c914f8',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223955Z:0f208187-c4e7-4cbe-b2a5-3075c5c914f8',
date: 'Wed, 11 May 2016 22:39:55 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': '227b2b81-4602-4ed4-ace8-d03a3fd97354',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225829Z:227b2b81-4602-4ed4-ace8-d03a3fd97354',
date: 'Thu, 27 Oct 2016 22:58:28 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/providers/Microsoft.Cdn/profiles?api-version=2016-04-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestProfile1082\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup6808/providers/Microsoft.Cdn/profiles/cdnTestProfile1082\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"EastUs\",\"sku\":{\r\n \"name\":\"Premium_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/providers/Microsoft.Cdn/profiles?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestProfile2130\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1540/providers/Microsoft.Cdn/profiles/cdnTestProfile2130\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"EastUs\",\"sku\":{\r\n \"name\":\"Premium_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '462',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '02ef6a60-4b21-4764-808b-b0e86ccd72a3',
'x-ms-client-request-id': '534e1f07-3ab0-401b-b0cf-6dd6df2dcfce',
'x-ms-request-id': '7ea8392c-fb39-4667-a605-1ba704ef73ad',
'x-ms-client-request-id': 'c1e5a976-acec-4123-8627-ba35d25b0585',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14994',
'x-ms-correlation-request-id': '0f208187-c4e7-4cbe-b2a5-3075c5c914f8',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223955Z:0f208187-c4e7-4cbe-b2a5-3075c5c914f8',
date: 'Wed, 11 May 2016 22:39:55 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': '227b2b81-4602-4ed4-ace8-d03a3fd97354',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225829Z:227b2b81-4602-4ed4-ace8-d03a3fd97354',
date: 'Thu, 27 Oct 2016 22:58:28 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,50 +2,50 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/providers/Microsoft.Cdn/profiles?api-version=2016-04-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestProfile1082\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup6808/providers/Microsoft.Cdn/profiles/cdnTestProfile1082\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"EastUs\",\"sku\":{\r\n \"name\":\"Premium_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n },{\r\n \"name\":\"cdnTestProfile4304\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles/cdnTestProfile4304\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\",\"tag3\":\"val3\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/providers/Microsoft.Cdn/profiles?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestProfile2130\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1540/providers/Microsoft.Cdn/profiles/cdnTestProfile2130\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"EastUs\",\"sku\":{\r\n \"name\":\"Premium_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n },{\r\n \"name\":\"cdnTestProfile2165\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles/cdnTestProfile2165\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\",\"tag3\":\"val3\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '912',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '313d2703-0db6-4087-86f1-946029c3ecfa',
'x-ms-client-request-id': '1e2df7da-add2-44ac-8f66-afc2d2d1a000',
'x-ms-request-id': 'da9a43a6-715f-4e00-918e-0b0b62889cca',
'x-ms-client-request-id': '70855964-2f4e-4e21-b257-cc70a17e4402',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': '6e2ee85b-5996-4d1c-a7db-4afde831e022',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223921Z:6e2ee85b-5996-4d1c-a7db-4afde831e022',
date: 'Wed, 11 May 2016 22:39:20 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14992',
'x-ms-correlation-request-id': 'd79e7a9c-f24b-44dc-bf48-8d3b67fb9518',
'x-ms-routing-request-id': 'WESTUS2:20161027T225745Z:d79e7a9c-f24b-44dc-bf48-8d3b67fb9518',
date: 'Thu, 27 Oct 2016 22:57:44 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/providers/Microsoft.Cdn/profiles?api-version=2016-04-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestProfile1082\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup6808/providers/Microsoft.Cdn/profiles/cdnTestProfile1082\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"EastUs\",\"sku\":{\r\n \"name\":\"Premium_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n },{\r\n \"name\":\"cdnTestProfile4304\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles/cdnTestProfile4304\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\",\"tag3\":\"val3\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/providers/Microsoft.Cdn/profiles?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestProfile2130\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup1540/providers/Microsoft.Cdn/profiles/cdnTestProfile2130\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"EastUs\",\"sku\":{\r\n \"name\":\"Premium_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n },{\r\n \"name\":\"cdnTestProfile2165\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles/cdnTestProfile2165\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\",\"tag3\":\"val3\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '912',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': '313d2703-0db6-4087-86f1-946029c3ecfa',
'x-ms-client-request-id': '1e2df7da-add2-44ac-8f66-afc2d2d1a000',
'x-ms-request-id': 'da9a43a6-715f-4e00-918e-0b0b62889cca',
'x-ms-client-request-id': '70855964-2f4e-4e21-b257-cc70a17e4402',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': '6e2ee85b-5996-4d1c-a7db-4afde831e022',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223921Z:6e2ee85b-5996-4d1c-a7db-4afde831e022',
date: 'Wed, 11 May 2016 22:39:20 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14992',
'x-ms-correlation-request-id': 'd79e7a9c-f24b-44dc-bf48-8d3b67fb9518',
'x-ms-routing-request-id': 'WESTUS2:20161027T225745Z:d79e7a9c-f24b-44dc-bf48-8d3b67fb9518',
date: 'Thu, 27 Oct 2016 22:57:44 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,50 +2,50 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/providers/Microsoft.Cdn/profiles?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/providers/Microsoft.Cdn/profiles?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n \r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '28',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'fbb73887-3696-41a2-985c-372ea1602f32',
'x-ms-client-request-id': '0e8c7405-c658-4f6b-a2f6-86f5ca8c8217',
'x-ms-request-id': '43b3ce77-5978-4c24-bbdd-f038cc579c13',
'x-ms-client-request-id': 'ff714dbd-7905-4b0b-90dc-b24ec487e268',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14988',
'x-ms-correlation-request-id': 'ef234fcf-97dd-469e-b37d-b97f46bf3ab9',
'x-ms-routing-request-id': 'WESTUS:20160511T223637Z:ef234fcf-97dd-469e-b37d-b97f46bf3ab9',
date: 'Wed, 11 May 2016 22:36:36 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': '05375cba-4e12-413a-b909-caa313222fa9',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225526Z:05375cba-4e12-413a-b909-caa313222fa9',
date: 'Thu, 27 Oct 2016 22:55:25 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/providers/Microsoft.Cdn/profiles?api-version=2016-04-02')
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/providers/Microsoft.Cdn/profiles?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n \r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '28',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'fbb73887-3696-41a2-985c-372ea1602f32',
'x-ms-client-request-id': '0e8c7405-c658-4f6b-a2f6-86f5ca8c8217',
'x-ms-request-id': '43b3ce77-5978-4c24-bbdd-f038cc579c13',
'x-ms-client-request-id': 'ff714dbd-7905-4b0b-90dc-b24ec487e268',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14988',
'x-ms-correlation-request-id': 'ef234fcf-97dd-469e-b37d-b97f46bf3ab9',
'x-ms-routing-request-id': 'WESTUS:20160511T223637Z:ef234fcf-97dd-469e-b37d-b97f46bf3ab9',
date: 'Wed, 11 May 2016 22:36:36 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14996',
'x-ms-correlation-request-id': '05375cba-4e12-413a-b909-caa313222fa9',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225526Z:05375cba-4e12-413a-b909-caa313222fa9',
date: 'Thu, 27 Oct 2016 22:55:25 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,50 +2,50 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/providers/Microsoft.Cdn/profiles?api-version=2016-04-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestProfile4304\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles/cdnTestProfile4304\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/providers/Microsoft.Cdn/profiles?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestProfile2165\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles/cdnTestProfile2165\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '463',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'a7032c17-ed58-4c20-ae71-f7f838665322',
'x-ms-client-request-id': '4466154f-a73a-4176-a002-6d721e058add',
'x-ms-request-id': '60b2f550-115a-4c16-96b4-6f6ff9788ae0',
'x-ms-client-request-id': '7945f27c-341c-4d6a-9145-82b925f8be26',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14992',
'x-ms-correlation-request-id': 'b83ec200-b444-44e0-96c9-e6c9216edbca',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223742Z:b83ec200-b444-44e0-96c9-e6c9216edbca',
date: 'Wed, 11 May 2016 22:37:41 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': '85308243-d8be-4ead-8f78-452326eb4cbc',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225601Z:85308243-d8be-4ead-8f78-452326eb4cbc',
date: 'Thu, 27 Oct 2016 22:56:00 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.get('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/providers/Microsoft.Cdn/profiles?api-version=2016-04-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestProfile4304\",\"id\":\"/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourcegroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles/cdnTestProfile4304\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
.get('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/providers/Microsoft.Cdn/profiles?api-version=2016-10-02')
.reply(200, "{\r\n \"value\":[\r\n {\r\n \"name\":\"cdnTestProfile2165\",\"id\":\"/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourcegroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles/cdnTestProfile2165\",\"type\":\"Microsoft.Cdn/profiles\",\"tags\":{\r\n \"tag1\":\"val1\",\"tag2\":\"val2\"\r\n },\"location\":\"WestUs\",\"sku\":{\r\n \"name\":\"Standard_Verizon\"\r\n },\"properties\":{\r\n \"provisioningState\":\"Succeeded\",\"resourceState\":\"Active\"\r\n }\r\n }\r\n ]\r\n}", { 'cache-control': 'no-cache',
pragma: 'no-cache',
'content-length': '463',
'content-type': 'application/json; odata.metadata=minimal; odata.streaming=true',
expires: '-1',
'x-ms-request-id': 'a7032c17-ed58-4c20-ae71-f7f838665322',
'x-ms-client-request-id': '4466154f-a73a-4176-a002-6d721e058add',
'x-ms-request-id': '60b2f550-115a-4c16-96b4-6f6ff9788ae0',
'x-ms-client-request-id': '7945f27c-341c-4d6a-9145-82b925f8be26',
'odata-version': '4.0',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
server: 'Microsoft-IIS/8.5',
'x-aspnet-version': '4.0.30319',
'x-powered-by': 'ASP.NET',
'x-ms-ratelimit-remaining-subscription-reads': '14992',
'x-ms-correlation-request-id': 'b83ec200-b444-44e0-96c9-e6c9216edbca',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223742Z:b83ec200-b444-44e0-96c9-e6c9216edbca',
date: 'Wed, 11 May 2016 22:37:41 GMT',
'x-ms-ratelimit-remaining-subscription-reads': '14997',
'x-ms-correlation-request-id': '85308243-d8be-4ead-8f78-452326eb4cbc',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225601Z:85308243-d8be-4ead-8f78-452326eb4cbc',
date: 'Thu, 27 Oct 2016 22:56:00 GMT',
connection: 'close' });
return result; }]];

Просмотреть файл

@ -2,36 +2,36 @@
exports.setEnvironment = function() {
process.env['AZURE_TEST_LOCATION'] = 'West US';
process.env['AZURE_SUBSCRIPTION_ID'] = 'b4871d65-b439-4433-8702-08fa2cc15808';
process.env['AZURE_SUBSCRIPTION_ID'] = '8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4';
};
exports.scopes = [[function (nock) {
var result =
nock('http://management.azure.com:443')
.delete('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles/cdnTestProfile4304?api-version=2016-04-02')
.delete('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles/cdnTestProfile2165?api-version=2016-10-02')
.reply(204, "", { 'cache-control': 'no-cache',
pragma: 'no-cache',
expires: '-1',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-request-id': 'fe0f7c5d-83e4-4def-a385-9849d1fb80da',
'x-ms-correlation-request-id': 'fe0f7c5d-83e4-4def-a385-9849d1fb80da',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223955Z:fe0f7c5d-83e4-4def-a385-9849d1fb80da',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-request-id': '82d86584-6b0a-419d-bc75-2fae2f11c890',
'x-ms-correlation-request-id': '82d86584-6b0a-419d-bc75-2fae2f11c890',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225829Z:82d86584-6b0a-419d-bc75-2fae2f11c890',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
date: 'Wed, 11 May 2016 22:39:55 GMT',
date: 'Thu, 27 Oct 2016 22:58:28 GMT',
connection: 'close' });
return result; },
function (nock) {
var result =
nock('https://management.azure.com:443')
.delete('/subscriptions/b4871d65-b439-4433-8702-08fa2cc15808/resourceGroups/cdnTestGroup7477/providers/Microsoft.Cdn/profiles/cdnTestProfile4304?api-version=2016-04-02')
.delete('/subscriptions/8fbd19e9-e8e0-4224-89f6-b1d5d86fb4c4/resourceGroups/cdnTestGroup3471/providers/Microsoft.Cdn/profiles/cdnTestProfile2165?api-version=2016-10-02')
.reply(204, "", { 'cache-control': 'no-cache',
pragma: 'no-cache',
expires: '-1',
'x-ms-ratelimit-remaining-subscription-writes': '1199',
'x-ms-request-id': 'fe0f7c5d-83e4-4def-a385-9849d1fb80da',
'x-ms-correlation-request-id': 'fe0f7c5d-83e4-4def-a385-9849d1fb80da',
'x-ms-routing-request-id': 'CENTRALUS:20160511T223955Z:fe0f7c5d-83e4-4def-a385-9849d1fb80da',
'x-ms-ratelimit-remaining-subscription-writes': '1197',
'x-ms-request-id': '82d86584-6b0a-419d-bc75-2fae2f11c890',
'x-ms-correlation-request-id': '82d86584-6b0a-419d-bc75-2fae2f11c890',
'x-ms-routing-request-id': 'CENTRALUS:20161027T225829Z:82d86584-6b0a-419d-bc75-2fae2f11c890',
'strict-transport-security': 'max-age=31536000; includeSubDomains',
date: 'Wed, 11 May 2016 22:39:55 GMT',
date: 'Thu, 27 Oct 2016 22:58:28 GMT',
connection: 'close' });
return result; }]];

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше