Skip to content

Commit 36346ee

Browse files
authored
Merge pull request #6283 from afedyashov/preview
Adding AzureRM.StorageSync module
2 parents 19ac69e + 3f7704a commit 36346ee

File tree

87 files changed

+7335
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+7335
-0
lines changed

ModuleMappings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@
194194
"src/Storage/Commands.Storage/": [
195195
"Azure.Storage"
196196
],
197+
"src/ResourceManager/StorageSync/": [
198+
"AzureRM.StorageSync"
199+
],
197200
"tools/": [
198201
]
199202
}

TestMappings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@
179179
"src/ResourceManager/Storage/Commands.Management.Storage.Test/": [
180180
".\\src\\ResourceManager\\Storage\\Commands.Management.Storage.Test\\bin\\Debug\\Microsoft.Azure.Commands.Management.Storage.Test.dll"
181181
],
182+
"src/ResourceManager/StorageSync": [
183+
".\\src\\ResourceManager\\StorageSync\\Commands.StorageSync.Test\\bin\\Debug\\Microsoft.Azure.Commands.StorageSync.Test.dll"
184+
],
182185
"src/ResourceManager/StreamAnalytics/": [
183186
".\\src\\ResourceManager\\StreamAnalytics\\Commands.StreamAnalytics.Test\\bin\\Debug\\Microsoft.Azure.Commands.StreamAnalytics.Test.dll"
184187
],
Lines changed: 217 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,217 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="..\..\..\packages\xunit.runner.visualstudio.2.1.0\build\net20\xunit.runner.visualstudio.props" Condition="Exists('..\..\..\packages\xunit.runner.visualstudio.2.1.0\build\net20\xunit.runner.visualstudio.props')" />
4+
<Import Project="..\..\..\packages\xunit.core.2.1.0\build\portable-net45+win8+wp8+wpa81\xunit.core.props" Condition="Exists('..\..\..\packages\xunit.core.2.1.0\build\portable-net45+win8+wp8+wpa81\xunit.core.props')" />
5+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
6+
<PropertyGroup>
7+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
8+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
9+
<ProjectGuid>{04542E7D-F411-4972-A5C7-25240A4A5D31}</ProjectGuid>
10+
<OutputType>Library</OutputType>
11+
<AppDesignerFolder>Properties</AppDesignerFolder>
12+
<RootNamespace>Microsoft.Azure.Commands.StorageSync.Test</RootNamespace>
13+
<AssemblyName>Microsoft.Azure.Commands.StorageSync.Test</AssemblyName>
14+
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
15+
<FileAlignment>512</FileAlignment>
16+
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\..\..\</SolutionDir>
17+
<RestorePackages>true</RestorePackages>
18+
<TargetFrameworkProfile />
19+
</PropertyGroup>
20+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
21+
<DebugSymbols>true</DebugSymbols>
22+
<DebugType>full</DebugType>
23+
<Optimize>false</Optimize>
24+
<OutputPath>bin\Debug\</OutputPath>
25+
<DefineConstants>DEBUG;TRACE</DefineConstants>
26+
<ErrorReport>prompt</ErrorReport>
27+
<WarningLevel>4</WarningLevel>
28+
</PropertyGroup>
29+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
30+
<DebugType>pdbonly</DebugType>
31+
<Optimize>true</Optimize>
32+
<OutputPath>bin\Release\</OutputPath>
33+
<DefineConstants>TRACE</DefineConstants>
34+
<ErrorReport>prompt</ErrorReport>
35+
<WarningLevel>4</WarningLevel>
36+
</PropertyGroup>
37+
<ItemGroup>
38+
<Reference Include="Castle.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
39+
<HintPath>..\..\..\packages\Castle.Core.4.2.1\lib\net45\Castle.Core.dll</HintPath>
40+
<Private>True</Private>
41+
</Reference>
42+
<Reference Include="Hyak.Common">
43+
<HintPath>..\..\..\packages\Hyak.Common.1.0.3\lib\net45\Hyak.Common.dll</HintPath>
44+
</Reference>
45+
<Reference Include="Microsoft.Azure.Common">
46+
<HintPath>..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.dll</HintPath>
47+
</Reference>
48+
<Reference Include="Microsoft.Azure.Common.NetFramework">
49+
<HintPath>..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.NetFramework.dll</HintPath>
50+
</Reference>
51+
<Reference Include="Microsoft.Azure.Gallery">
52+
<HintPath>..\..\..\packages\Microsoft.Azure.Gallery.2.6.2-preview\lib\net40\Microsoft.Azure.Gallery.dll</HintPath>
53+
</Reference>
54+
<Reference Include="Microsoft.Azure.Management.Authorization">
55+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Authorization.2.0.0\lib\net40\Microsoft.Azure.Management.Authorization.dll</HintPath>
56+
</Reference>
57+
<Reference Include="Microsoft.Azure.Management.Storage, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
58+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Storage.7.1.0-preview\lib\net452\Microsoft.Azure.Management.Storage.dll</HintPath>
59+
</Reference>
60+
<Reference Include="Microsoft.Azure.ResourceManager, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
61+
<SpecificVersion>False</SpecificVersion>
62+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Resources.2.20.0-preview\lib\net40\Microsoft.Azure.ResourceManager.dll</HintPath>
63+
</Reference>
64+
<Reference Include="Microsoft.Azure.Test.Framework">
65+
<HintPath>..\..\..\packages\Microsoft.Azure.Test.Framework.1.0.6179.26854-prerelease\lib\net45\Microsoft.Azure.Test.Framework.dll</HintPath>
66+
</Reference>
67+
<Reference Include="Microsoft.Azure.Test.HttpRecorder">
68+
<HintPath>..\..\..\packages\Microsoft.Azure.Test.HttpRecorder.1.6.7-preview\lib\net45\Microsoft.Azure.Test.HttpRecorder.dll</HintPath>
69+
<Private>True</Private>
70+
</Reference>
71+
<Reference Include="Microsoft.Data.Edm, Version=5.8.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
72+
<HintPath>..\..\..\packages\Microsoft.Data.Edm.5.8.2\lib\net40\Microsoft.Data.Edm.dll</HintPath>
73+
</Reference>
74+
<Reference Include="Microsoft.Data.OData, Version=5.8.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
75+
<HintPath>..\..\..\packages\Microsoft.Data.OData.5.8.2\lib\net40\Microsoft.Data.OData.dll</HintPath>
76+
</Reference>
77+
<Reference Include="Microsoft.Data.Services.Client, Version=5.8.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
78+
<HintPath>..\..\..\packages\Microsoft.Data.Services.Client.5.8.2\lib\net40\Microsoft.Data.Services.Client.dll</HintPath>
79+
</Reference>
80+
<Reference Include="Microsoft.IdentityModel.Clients.ActiveDirectory, Version=2.28.3.860, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
81+
<HintPath>..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.28.3\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll</HintPath>
82+
</Reference>
83+
<Reference Include="Microsoft.IdentityModel.Clients.ActiveDirectory.WindowsForms, Version=2.28.3.860, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
84+
<HintPath>..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.28.3\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.WindowsForms.dll</HintPath>
85+
</Reference>
86+
<Reference Include="Microsoft.Rest.ClientRuntime.Azure.Authentication, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
87+
<HintPath>..\..\..\packages\Microsoft.Rest.ClientRuntime.Azure.Authentication.2.2.9-preview\lib\net45\Microsoft.Rest.ClientRuntime.Azure.Authentication.dll</HintPath>
88+
<Private>True</Private>
89+
</Reference>
90+
<Reference Include="Microsoft.Rest.ClientRuntime.Azure.TestFramework">
91+
<HintPath>..\..\..\packages\Microsoft.Rest.ClientRuntime.Azure.TestFramework.1.5.0-preview\lib\net45\Microsoft.Rest.ClientRuntime.Azure.TestFramework.dll</HintPath>
92+
<Private>True</Private>
93+
</Reference>
94+
<Reference Include="Microsoft.Threading.Tasks">
95+
<HintPath>..\..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.dll</HintPath>
96+
</Reference>
97+
<Reference Include="Microsoft.Threading.Tasks.Extensions">
98+
<HintPath>..\..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.dll</HintPath>
99+
</Reference>
100+
<Reference Include="Microsoft.Threading.Tasks.Extensions.Desktop">
101+
<HintPath>..\..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.Desktop.dll</HintPath>
102+
</Reference>
103+
<Reference Include="Microsoft.WindowsAzure.Storage, Version=8.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
104+
<HintPath>..\..\..\packages\WindowsAzure.Storage.8.1.1\lib\net45\Microsoft.WindowsAzure.Storage.dll</HintPath>
105+
</Reference>
106+
<Reference Include="Moq, Version=4.8.0.0, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
107+
<HintPath>..\..\..\packages\Moq.4.8.1\lib\net45\Moq.dll</HintPath>
108+
<Private>True</Private>
109+
</Reference>
110+
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
111+
<SpecificVersion>False</SpecificVersion>
112+
<HintPath>..\..\..\packages\Newtonsoft.Json.6.0.8\lib\net45\Newtonsoft.Json.dll</HintPath>
113+
</Reference>
114+
<Reference Include="System" />
115+
<Reference Include="System.Configuration" />
116+
<Reference Include="System.Core" />
117+
<Reference Include="System.Net" />
118+
<Reference Include="System.Net.Http" />
119+
<Reference Include="System.Net.Http.WebRequest" />
120+
<Reference Include="System.Runtime.Serialization" />
121+
<Reference Include="System.Spatial, Version=5.8.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
122+
<HintPath>..\..\..\packages\System.Spatial.5.8.2\lib\net40\System.Spatial.dll</HintPath>
123+
</Reference>
124+
<Reference Include="System.Threading.Tasks.Extensions, Version=4.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
125+
<HintPath>..\..\..\packages\System.Threading.Tasks.Extensions.4.3.0\lib\portable-net45+win8+wp8+wpa81\System.Threading.Tasks.Extensions.dll</HintPath>
126+
<Private>True</Private>
127+
</Reference>
128+
<Reference Include="System.ValueTuple, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
129+
<HintPath>..\..\..\packages\System.ValueTuple.4.3.0\lib\netstandard1.0\System.ValueTuple.dll</HintPath>
130+
<Private>True</Private>
131+
</Reference>
132+
<Reference Include="System.Xml.Linq" />
133+
<Reference Include="System.Data.DataSetExtensions" />
134+
<Reference Include="Microsoft.CSharp" />
135+
<Reference Include="System.Data" />
136+
<Reference Include="System.Xml" />
137+
<Reference Include="xunit.abstractions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
138+
<HintPath>..\..\..\packages\xunit.abstractions.2.0.0\lib\net35\xunit.abstractions.dll</HintPath>
139+
<Private>True</Private>
140+
</Reference>
141+
<Reference Include="xunit.assert, Version=2.1.0.3179, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
142+
<HintPath>..\..\..\packages\xunit.assert.2.1.0\lib\portable-net45+win8+wp8+wpa81\xunit.assert.dll</HintPath>
143+
<Private>True</Private>
144+
</Reference>
145+
<Reference Include="xunit.core, Version=2.1.0.3179, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
146+
<HintPath>..\..\..\packages\xunit.extensibility.core.2.1.0\lib\portable-net45+win8+wp8+wpa81\xunit.core.dll</HintPath>
147+
<Private>True</Private>
148+
</Reference>
149+
<Reference Include="xunit.execution.desktop, Version=2.1.0.3179, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
150+
<HintPath>..\..\..\packages\xunit.extensibility.execution.2.1.0\lib\net45\xunit.execution.desktop.dll</HintPath>
151+
<Private>True</Private>
152+
</Reference>
153+
</ItemGroup>
154+
<ItemGroup>
155+
<Compile Include="Properties\AssemblyInfo.cs" />
156+
<Compile Include="ScenarioTests\StorageSyncTests.cs" />
157+
<Compile Include="TestController.cs" />
158+
<Compile Include="UnitTests\AfsPathTests.cs" />
159+
<Compile Include="UnitTests\AssertExtension.cs" />
160+
<Compile Include="UnitTests\FilenamesCharactersValidationTest.cs" />
161+
<Compile Include="UnitTests\FileSystemValidationTest.cs" />
162+
<Compile Include="UnitTests\FunctionalTest.cs" />
163+
<Compile Include="UnitTests\InvalidFilenameValidationTest.cs" />
164+
<Compile Include="UnitTests\ListFilesTests.cs" />
165+
<Compile Include="UnitTests\MaximumDatasetSizeValidationTest.cs" />
166+
<Compile Include="UnitTests\MaximumFilenameLengthValidationTest.cs" />
167+
<Compile Include="UnitTests\MaximumFileSizeValidationTest.cs" />
168+
<Compile Include="UnitTests\MaximumPathLengthValidationTest.cs" />
169+
<Compile Include="UnitTests\MaximumTreeDepthValidationTest.cs" />
170+
<Compile Include="UnitTests\MockFactory.cs" />
171+
<Compile Include="UnitTests\NamespaceEnumeratorTests.cs" />
172+
<Compile Include="UnitTests\OSVersionValidationTest.cs" />
173+
<Compile Include="UnitTests\SystemValidationsProcessorTest.cs" />
174+
</ItemGroup>
175+
<ItemGroup>
176+
<ProjectReference Include="..\..\..\Common\Commands.Common.Authentication.Abstractions\Commands.Common.Authentication.Abstractions.csproj">
177+
<Project>{70527617-7598-4aef-b5bd-db9186b8184b}</Project>
178+
<Name>Commands.Common.Authentication.Abstractions</Name>
179+
</ProjectReference>
180+
<ProjectReference Include="..\..\..\Common\Commands.Common.Authentication\Commands.Common.Authentication.csproj">
181+
<Project>{d3804b64-c0d3-48f8-82ec-1f632f833c9e}</Project>
182+
<Name>Commands.Common.Authentication</Name>
183+
</ProjectReference>
184+
<ProjectReference Include="..\..\Common\Commands.ScenarioTests.ResourceManager.Common\Commands.ScenarioTests.ResourceManager.Common.csproj">
185+
<Project>{3436a126-edc9-4060-8952-9a1be34cdd95}</Project>
186+
<Name>Commands.ScenarioTests.ResourceManager.Common</Name>
187+
</ProjectReference>
188+
<ProjectReference Include="..\Commands.StorageSync\Commands.StorageSync.csproj">
189+
<Project>{fa564d6f-0ee0-4ac8-abaf-65d8d79259f2}</Project>
190+
<Name>Commands.StorageSync</Name>
191+
</ProjectReference>
192+
</ItemGroup>
193+
<ItemGroup>
194+
<None Include="packages.config">
195+
<SubType>Designer</SubType>
196+
</None>
197+
<None Include="ScenarioTests\Common.ps1">
198+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
199+
</None>
200+
<None Include="..\..\Common\Commands.ScenarioTests.ResourceManager.Common\AzureRM.Resources.ps1">
201+
<Link>ScenarioTests\AzureRM.Resources.ps1</Link>
202+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
203+
</None>
204+
<None Include="ScenarioTests\StorageSyncTests.ps1">
205+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
206+
</None>
207+
<None Include="SessionRecords\Microsoft.Azure.Commands.StorageSync.Test.ScenarioTests.StorageSyncTests\TestStorageSync.json">
208+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
209+
</None>
210+
</ItemGroup>
211+
<ItemGroup>
212+
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
213+
</ItemGroup>
214+
<ItemGroup />
215+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
216+
<Import Project="..\..\..\..\tools\Common.Dependencies.Test.targets" />
217+
</Project>
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using System.Reflection;
16+
using System.Runtime.CompilerServices;
17+
using System.Runtime.InteropServices;
18+
19+
// General Information about an assembly is controlled through the following
20+
// set of attributes. Change these attribute values to modify the information
21+
// associated with an assembly.
22+
[assembly: AssemblyTitle("Commands.StorageSync.Test")]
23+
[assembly: AssemblyDescription("")]
24+
[assembly: AssemblyConfiguration("")]
25+
[assembly: AssemblyCompany("")]
26+
[assembly: AssemblyProduct("Commands.StorageSync.Test")]
27+
[assembly: AssemblyCopyright("Copyright © 2018")]
28+
[assembly: AssemblyTrademark("")]
29+
[assembly: AssemblyCulture("")]
30+
31+
// Setting ComVisible to false makes the types in this assembly not visible
32+
// to COM components. If you need to access a type in this assembly from
33+
// COM, set the ComVisible attribute to true on that type.
34+
[assembly: ComVisible(false)]
35+
36+
// The following GUID is for the ID of the typelib if this project is exposed to COM
37+
[assembly: Guid("04542e7d-f411-4972-a5c7-25240a4a5d31")]
38+
39+
// Version information for an assembly consists of the following four values:
40+
//
41+
// Major Version
42+
// Minor Version
43+
// Build Number
44+
// Revision
45+
//
46+
// You can specify all the values or you can default the Build and Revision Numbers
47+
// by using the '*' as shown below:
48+
// [assembly: AssemblyVersion("1.0.*")]
49+
[assembly: AssemblyVersion("1.0.0.0")]
50+
[assembly: AssemblyFileVersion("1.0.0.0")]

0 commit comments

Comments
 (0)