зеркало из
1
0
Форкнуть 0

adding another credscan suppression and fixing tests for the refrence Microsoft.Azure.Management.ResourceManager version 1.9.0-preview, Tests earliet had 1.6.0-preview version reference

This commit is contained in:
Bala Ganapathy 2018-08-28 16:13:54 -07:00
Родитель 5e6a01dd86
Коммит 6a4047c853
2 изменённых файлов: 8 добавлений и 23 удалений

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

@ -47,11 +47,6 @@
<Reference Include="Microsoft.Azure.Insights">
<HintPath>..\..\..\packages\Microsoft.Azure.Insights.0.10.0-preview\lib\net45\Microsoft.Azure.Insights.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.Management.ResourceManager, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\packages\Microsoft.Azure.Management.ResourceManager.1.6.0-preview\lib\net452\Microsoft.Azure.Management.ResourceManager.dll</HintPath>
</Reference>
<!-- <Reference Include="Hyak.Common">
<HintPath>..\..\..\..\packages\Hyak.Common.1.0.3\lib\portable-net403+win+wpa81\Hyak.Common.dll</HintPath>
</Reference>

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

@ -416,10 +416,7 @@ namespace Microsoft.Azure.Commands.Resources.Test.Models
new CancellationToken()))
.Returns(Task.Factory.StartNew(() => new AzureOperationResponse<DeploymentExtended>()
{
Body = new DeploymentExtended
{
Id = requestId
}
Body = new DeploymentExtended(name: deploymentName, id: requestId)
}))
.Callback(
(string name, string dName, Deployment bDeploy,
@ -617,10 +614,8 @@ namespace Microsoft.Azure.Commands.Resources.Test.Models
{
return new AzureOperationResponse<DeploymentExtended>()
{
Body = new DeploymentExtended()
Body = new DeploymentExtended(name: getDeploymentName, id: requestId)
{
Name = getDeploymentName,
Id = requestId,
Properties = new DeploymentPropertiesExtended(
mode: DeploymentMode.Incremental,
correlationId: "123",
@ -647,9 +642,8 @@ namespace Microsoft.Azure.Commands.Resources.Test.Models
return new AzureOperationResponse<DeploymentExtended>()
{
Body = new DeploymentExtended
Body = new DeploymentExtended(name: createDeploymentName, id: requestId)
{
Id = requestId
}
};
});
@ -669,9 +663,8 @@ namespace Microsoft.Azure.Commands.Resources.Test.Models
return new AzureOperationResponse<DeploymentExtended>()
{
Body = new DeploymentExtended
Body = new DeploymentExtended(name: createDeploymentName, id: requestId)
{
Id = requestId
}
};
});
@ -777,9 +770,8 @@ namespace Microsoft.Azure.Commands.Resources.Test.Models
deploymentsMock.Setup(f => f.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, deploymentName, It.IsAny<Deployment>(), null, new CancellationToken()))
.Returns(Task.Factory.StartNew(() => new AzureOperationResponse<DeploymentExtended>()
{
Body = new DeploymentExtended
Body = new DeploymentExtended(name: deploymentName, id: requestId)
{
Id = requestId
}
}))
.Callback((string name, string dName, Deployment bDeploy, Dictionary<string, List<string>> customHeaders, CancellationToken token) =>
@ -874,9 +866,8 @@ namespace Microsoft.Azure.Commands.Resources.Test.Models
.Returns(Task.Factory.StartNew(() => CreateAzureOperationResponse(new ResourceGroup() { Location = resourceGroupLocation })
));
deploymentsMock.Setup(f => f.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, deploymentName, It.IsAny<Deployment>(), null, new CancellationToken()))
.Returns(Task.Factory.StartNew(() => CreateAzureOperationResponse(new DeploymentExtended
.Returns(Task.Factory.StartNew(() => CreateAzureOperationResponse(new DeploymentExtended(name: deploymentName, id: requestId)
{
Id = requestId
})))
.Callback((string name, string dName, Deployment bDeploy, Dictionary<string, List<string>> customHeaders, CancellationToken token) => { deploymentFromGet = bDeploy; });
deploymentsMock.Setup(f => f.GetWithHttpMessagesAsync(resourceGroupName, deploymentName, null, new CancellationToken()))
@ -975,9 +966,8 @@ namespace Microsoft.Azure.Commands.Resources.Test.Models
new CancellationToken()))
.Returns(Task.Factory.StartNew(() => new AzureOperationResponse<DeploymentExtended>()
{
Body = new DeploymentExtended
{
Id = requestId
Body = new DeploymentExtended(name: deploymentName, id: requestId)
{
}
}))
.Callback((string name, string dName, Deployment bDeploy, Dictionary<string, List<string>> customHeaders,